public class FilterableDoubleListModel<O> extends org.jdesktop.beans.AbstractSerializableBean implements ModelToBean
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addEnabled
Can use select action ?
|
protected Object |
bean
Optional bean where to push data.
|
protected boolean |
objectIsAdjusting
Internal flag to avoid reentrant code while firing some events.
|
static String |
PROPERTY_ADD_ENABLED |
static String |
PROPERTY_BEAN |
static String |
PROPERTY_REMOVE_ENABLED |
static String |
PROPERTY_SELECTED |
static String |
PROPERTY_SELECTED_DOWN_ENABLED |
static String |
PROPERTY_SELECTED_UP_ENABLED |
protected boolean |
removeEnabled
Can use unselect action ?
|
protected boolean |
selectedDownEnabled
Can use select down action ?
|
protected JaxxDefaultListModel<O> |
selectedModel
Model containing the selected items.
|
protected boolean |
selectedUpEnabled
Can use select up action ?
|
protected List<O> |
universe
Universe of items useables in not-selected and selected lists.
|
protected JaxxFilterableListModel<O> |
universeModel
Model containing the remaining available items.
|
| Constructor and Description |
|---|
FilterableDoubleListModel(FilterableDoubleListConfig<O> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToSelected(Iterable<O> items) |
Object |
getBean() |
Class<O> |
getBeanType() |
FilterableDoubleListConfig<O> |
getConfig() |
String |
getI18nPrefix() |
String |
getProperty() |
List<O> |
getSelected() |
int |
getSelectedListSize() |
JaxxDefaultListModel<O> |
getSelectedModel() |
JaxxFilterableListModel<O> |
getUniverseModel() |
boolean |
isAddEnabled() |
boolean |
isRemoveEnabled() |
boolean |
isSelectedDownEnabled() |
boolean |
isSelectedUpEnabled() |
boolean |
isUseMultiSelect() |
void |
moveDownSelected(O item)
Move down a selected item.
|
void |
moveUpSelected(O item)
Move up a selected item.
|
void |
removeFromSelected(Iterable<O> items) |
void |
setAddEnabled(boolean addEnabled) |
void |
setBean(Object bean) |
void |
setRemoveEnabled(boolean removeEnabled) |
void |
setSelected(Collection<O> selected) |
void |
setSelectedDownEnabled(boolean selectedDownEnabled) |
void |
setSelectedUpEnabled(boolean selectedUpEnabled) |
void |
setUniverse(Collection<O> universe) |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic static final String PROPERTY_ADD_ENABLED
public static final String PROPERTY_REMOVE_ENABLED
public static final String PROPERTY_SELECTED_UP_ENABLED
public static final String PROPERTY_SELECTED_DOWN_ENABLED
public static final String PROPERTY_BEAN
public static final String PROPERTY_SELECTED
protected boolean addEnabled
protected boolean removeEnabled
protected boolean selectedUpEnabled
protected boolean selectedDownEnabled
protected Object bean
protected boolean objectIsAdjusting
protected final List<O> universe
protected final JaxxFilterableListModel<O> universeModel
protected final JaxxDefaultListModel<O> selectedModel
public FilterableDoubleListModel(FilterableDoubleListConfig<O> config)
public JaxxDefaultListModel<O> getSelectedModel()
public JaxxFilterableListModel<O> getUniverseModel()
public FilterableDoubleListConfig<O> getConfig()
public boolean isUseMultiSelect()
public String getProperty()
public String getI18nPrefix()
public int getSelectedListSize()
public void setUniverse(Collection<O> universe)
public void setSelected(Collection<O> selected)
public void moveUpSelected(O item)
item - the selected itempublic void moveDownSelected(O item)
item - the selected itempublic boolean isAddEnabled()
public void setAddEnabled(boolean addEnabled)
public boolean isRemoveEnabled()
public void setRemoveEnabled(boolean removeEnabled)
public boolean isSelectedUpEnabled()
public void setSelectedUpEnabled(boolean selectedUpEnabled)
public boolean isSelectedDownEnabled()
public void setSelectedDownEnabled(boolean selectedDownEnabled)
public Object getBean()
getBean in interface ModelToBeanpublic void setBean(Object bean)
Copyright © 2008–2020 Ultreia.io. All rights reserved.