|
|
||||||||||
| 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.SpinnerNumberOption
public class SpinnerNumberOption
An option that uses a JSpinner control to edit its value.
| Field Summary | |
|---|---|
protected Integer |
max
Maximum value for the spinner control. |
protected Integer |
min
Minimum value for the spinner control. |
protected JLabel |
spinnerLabel
Label associated with the text field. |
| 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 | |
|---|---|
SpinnerNumberOption()
Constructor provided as a convenience to facilitate the creation of option elements through reflexion. |
|
SpinnerNumberOption(String name,
String label,
String tooltip,
Integer value,
Integer min,
Integer max)
Initialize this spinner option with the specified parameters. |
|
| Method Summary | |
|---|---|
void |
createUI()
Create the UI components for this option. |
Integer |
getMax()
Get the maximum value for the spinner control. |
Integer |
getMin()
Get the minimum value for the spinner control. |
Object |
getValue()
Get the current value for this option. |
void |
setEnabled(boolean enabled)
Enable or disable this option. |
void |
setMax(Integer max)
Set the maximum value for the spinner control. |
void |
setMin(Integer min)
Set the minimum value for the spinner control. |
protected void |
setupValueChangeNotifications()
Propagate the selection changes in the underlying combo box to the listeners to this option. |
void |
setValue(Object value)
Set the current value for this option. |
| Methods inherited from class org.jppf.ui.options.AbstractOption |
|---|
addValueChangeListener, fireValueChanged, 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 JLabel spinnerLabel
protected Integer min
protected Integer max
| Constructor Detail |
|---|
public SpinnerNumberOption()
public SpinnerNumberOption(String name,
String label,
String tooltip,
Integer value,
Integer min,
Integer max)
name - this component's name.label - the label displayed with the checkbox.tooltip - the tooltip associated with the combobox.value - the initial value of this component.min - the minimum value that can be set in the spinner.max - the maximum value that can be set in the spinner.| Method Detail |
|---|
public void createUI()
createUI in class AbstractOptionPropertiespublic Object getValue()
getValue in interface OptiongetValue in class AbstractOptionNumber instance.AbstractOption.getValue()public void setValue(Object value)
setValue in class AbstractOptionvalue - a Number instance.AbstractOption.setValue(java.lang.Object)protected void setupValueChangeNotifications()
setupValueChangeNotifications in class AbstractOptionAbstractOption.setupValueChangeNotifications()public void setEnabled(boolean enabled)
enabled - true to enable this option, false to disable it.OptionProperties.setEnabled(boolean)public Integer getMax()
public void setMax(Integer max)
max - the value as an Integer value.public Integer getMin()
public void setMin(Integer min)
min - the value as an Integer value.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||