|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.options.AbstractOptionProperties
org.jppf.ui.options.AbstractOptionElement
org.jppf.ui.options.AbstractOption
org.jppf.ui.options.ListOption
public class ListOption
Option holding a JList as its UI component. The list selection mode can be either simple selection or multiple interval selection.
| Field Summary | |
|---|---|
protected List |
items
The items contained in the list. |
protected JList |
list
The underlying JList component. |
protected ListSelectionListener |
selectionListener
Selection listener set on the list and used to propagate selection changes as value change events. |
protected int |
selMode
The selection mode for the list. |
| Fields inherited from class org.jppf.ui.options.AbstractOption |
|---|
listeners, persistent, value |
| Fields inherited from class org.jppf.ui.options.AbstractOptionElement |
|---|
parent, root |
| Fields inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent |
| Constructor Summary | |
|---|---|
ListOption()
Default constructor. |
|
ListOption(String name,
String label,
String tooltip,
List<Object> value,
List<Object> items,
int selMode)
Initialize this combo box option with the specified parameters. |
|
| Method Summary | |
|---|---|
void |
createUI()
Create the UI components for this option. |
List |
getItems()
Get the items in the list. |
JList |
getList()
Get the list component. |
int |
getSelMode()
Get the selection mode for the list. |
void |
setEnabled(boolean enabled)
Enable or disable this option. |
void |
setItems(List items)
Set the items in the list. |
void |
setSelMode(int selMode)
Set the selection mode for the list. |
protected void |
setupValueChangeNotifications()
Define a selection listener that will forward selection changes to all value change listeners that registered with this option. |
void |
setValue(Object value)
Set the value of this option. |
| Methods inherited from class org.jppf.ui.options.AbstractOption |
|---|
addValueChangeListener, fireValueChanged, getValue, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent |
| Methods inherited from class org.jppf.ui.options.AbstractOptionElement |
|---|
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParent, toString |
| Methods inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setBordered, setComponentConstraints, setEditable, setEventsEnabled, setFinalizer, setIconPath, setInitializer, setLabel, setLayoutConstraints, setName, setScrollable, setToolTipText, setUIComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.options.OptionElement |
|---|
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPath |
| Methods inherited from interface org.jppf.ui.options.OptionProperties |
|---|
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setEventsEnabled, setLayoutConstraints |
| Field Detail |
|---|
protected JList list
protected List items
protected int selMode
protected transient ListSelectionListener selectionListener
| Constructor Detail |
|---|
public ListOption()
public ListOption(String name,
String label,
String tooltip,
List<Object> value,
List<Object> items,
int selMode)
name - this component's name.label - the label displayed with the checkbox.tooltip - the tooltip associated with the combobox.value - the initially selected value of this component.items - the initial list of items in the combo box.selMode - the mode of selection for the list, can be either
SINGLE_SELECTION or
MULTIPLE_INTERVAL_SELECTION.| Method Detail |
|---|
protected void setupValueChangeNotifications()
setupValueChangeNotifications in class AbstractOptionAbstractOption.setupValueChangeNotifications()public void createUI()
createUI in class AbstractOptionPropertiesAbstractOptionProperties.createUI()public void setEnabled(boolean enabled)
enabled - true to enable this option, false to disable it.OptionProperties.setEnabled(boolean)public void setValue(Object value)
setValue in class AbstractOptionvalue - the value as an Object instance.AbstractOption.setValue(java.lang.Object)public List getItems()
Object instances.public void setItems(List items)
items - a list of Object instances.public int getSelMode()
public void setSelMode(int selMode)
selMode - the selection mode as an int value.public JList getList()
JList instance.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||