public class ListSelectorModel<B> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addEnabled |
protected GenericListModel<B> |
fromModel |
protected PropertyChangeSupport |
pcs |
static String |
PROPERTY_ADD_ENABLED |
static String |
PROPERTY_REMOVE_ENABLED |
static String |
PROPERTY_SELECTED_VALUES |
static String |
PROPERTY_VALUES |
protected boolean |
removeEnabled |
protected GenericListModel<B> |
toModel |
| Modifier | Constructor and Description |
|---|---|
protected |
ListSelectorModel() |
protected final PropertyChangeSupport pcs
public static final String PROPERTY_ADD_ENABLED
public static final String PROPERTY_REMOVE_ENABLED
public static final String PROPERTY_SELECTED_VALUES
public static final String PROPERTY_VALUES
protected boolean addEnabled
protected boolean removeEnabled
protected GenericListModel<B> fromModel
protected GenericListModel<B> toModel
public boolean isAddEnabled()
public void setAddEnabled(boolean addEnabled)
public boolean isRemoveEnabled()
public void setRemoveEnabled(boolean removeEnabled)
public GenericListModel<B> getFromModel()
public GenericListModel<B> getToModel()
public Collection<B> getValues()
public void setValues(Collection<B> values)
public void addValues(Collection<B> values)
public void removeValues(Collection<B> values)
public Collection<B> getSelectedValues()
public void setSelectedValues(Collection<B> selectedValues)
public void add()
public void remove()
protected void moveSelect(GenericListModel<B> from, GenericListModel<B> to)
public void addGenericListListener(GenericListListener l)
public void removeGenericListListener(GenericListListener l)
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
Copyright © 2008–2013 CodeLutin. All rights reserved.