Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package info.joseluismartin.gui.bind;
 
 
Binder for Selector

Author(s):
Jose Luis Martin - (jlm@joseluismartin.info)
public class SelectorBinder extends AbstractBinder implements ActionListener{

	protected void doBind(Object component) {
		Selector<?> selector = (Selector<?>) component;
		selector.addActionListener(this);
	}

	public void actionPerformed(ActionEvent e) {
	}
	@SuppressWarnings("unchecked")
	public void doRefresh() {
		List values = new ArrayList((CollectiongetValue());
		Selector selector = (Selector;
		selector.setSelected(values);
	}
	public void doUpdate() {
		Selector<?> selector = (Selector<?>) ;
		setValue(selector.getSelected());
	}
New to GrepCode? Check out our FAQ X