|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.options.AbstractOptionProperties
public abstract class AbstractOptionProperties
Default abstract implementation of the OptionElement interface.
| Field Summary | |
|---|---|
protected boolean |
bordered
Determines whether this option has a border around it. |
protected String |
componentConstraints
Mig layout constraints for a component. |
protected boolean |
eventsEnabled
Determines whether firing events is enabled or not. |
protected ValueChangeListener |
finalizer
The action to fire immediately when the page is disposed. |
protected String |
iconPath
Path to an eventual icon displayed in the button. |
protected ValueChangeListener |
initializer
The action to fire immediately after the page is built, allowing to perform initializations before the page is displayed and used. |
protected String |
label
The label or title displayed with the UI component. |
protected String |
layoutConstraints
Mig layout constraints for the entire layout. |
protected String |
name
The name of this option element. |
protected List<OptionDescriptor.ScriptDescriptor> |
scripts
Scripts used by this option or its children. |
protected boolean |
scrollable
Determines whether this page should be enclosed within a scroll pane. |
protected String |
toolTipText
The tooltip text displayed with the UI component. |
protected JComponent |
UIComponent
Get the UI component for this option element. |
| Constructor Summary | |
|---|---|
protected |
AbstractOptionProperties()
Constructor provided as a convenience to facilitate the creation of option elements through reflexion. |
| Method Summary | |
|---|---|
abstract void |
createUI()
Create the UI components for this option. |
String |
getComponentConstraints()
Get the Mig layout constraints for a component. |
ValueChangeListener |
getFinalizer()
Get the finalizer for this option. |
String |
getIconPath()
Get the path to an eventual icon displayed in the button. |
ValueChangeListener |
getInitializer()
Get the initializer for this option. |
String |
getLabel()
Get the label displayed with the UI component. |
String |
getLayoutConstraints()
Get the Mig layout constraints for the entire layout. |
String |
getName()
Get the name of this option. |
List<OptionDescriptor.ScriptDescriptor> |
getScripts()
Get the scripts used by this option or its children. |
String |
getToolTipText()
Get the tooltip text displayed with the UI component. |
JComponent |
getUIComponent()
Get the UI component for this option. |
boolean |
isBordered()
Determine whether this page has a border around it. |
boolean |
isEventsEnabled()
Determine whether the events firing in this option and/or its children are enabled. |
boolean |
isScrollable()
Determine whether this page should be enclosed within a scroll pane. |
void |
setBordered(boolean bordered)
Determine whether this page has a border around it. |
void |
setComponentConstraints(String componentConstraints)
Set the Mig layout constraints for a component. |
void |
setEditable(boolean editable)
Enable or disable this option. |
void |
setEventsEnabled(boolean enabled)
Enable or disable the events firing in this otpion and/or its children. |
void |
setFinalizer(ValueChangeListener finalizer)
Set the finalizer for this option. |
void |
setIconPath(String iconPath)
Set the path to an eventual icon displayed in the button. |
void |
setInitializer(ValueChangeListener initializer)
Set the initializer for this option. |
void |
setLabel(String label)
Set the label displayed with the UI component. |
void |
setLayoutConstraints(String layoutConstraints)
Set the Mig layout constraints for the entire layout. |
void |
setName(String name)
Set the name of this option. |
void |
setScrollable(boolean scrollable)
Determine whether this page should be enclosed within a scroll pane. |
void |
setToolTipText(String tooltip)
Set the tooltip text displayed with the UI component. |
void |
setUIComponent(JComponent component)
Set the UI component for this option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jppf.ui.options.OptionProperties |
|---|
getRoot, setEnabled |
| Field Detail |
|---|
protected String label
protected String name
protected String toolTipText
protected transient JComponent UIComponent
protected String iconPath
protected boolean scrollable
protected boolean bordered
protected List<OptionDescriptor.ScriptDescriptor> scripts
protected ValueChangeListener initializer
protected ValueChangeListener finalizer
protected boolean eventsEnabled
protected String layoutConstraints
protected String componentConstraints
| Constructor Detail |
|---|
protected AbstractOptionProperties()
| Method Detail |
|---|
public abstract void createUI()
public String getLabel()
getLabel in interface OptionPropertiesOptionProperties.getLabel()public void setLabel(String label)
label - the label as a string.public String getName()
getName in interface OptionPropertiesOptionProperties.getName()public void setName(String name)
name - the name as a string.public JComponent getUIComponent()
getUIComponent in interface OptionPropertiesJComponent instance.OptionProperties.getUIComponent()public void setUIComponent(JComponent component)
component - a JComponent instance.public String getToolTipText()
getToolTipText in interface OptionPropertiesOptionProperties.getToolTipText()public void setToolTipText(String tooltip)
tooltip - the tooltip as a string.public boolean isScrollable()
isScrollable in interface OptionPropertiesOptionProperties.isScrollable()public void setScrollable(boolean scrollable)
scrollable - true if the page is to be enclosed in a scroll pane, false otherwise.public boolean isBordered()
isBordered in interface OptionPropertiesOptionProperties.isBordered()public void setBordered(boolean bordered)
bordered - true if the page has a border, false otherwise.public List<OptionDescriptor.ScriptDescriptor> getScripts()
getScripts in interface OptionPropertiesScriptDescriptor instances.OptionProperties.getScripts()public ValueChangeListener getInitializer()
getInitializer in interface OptionPropertiesValueChangeListener instance.OptionProperties.getInitializer()public void setInitializer(ValueChangeListener initializer)
initializer - a ValueChangeListener instance.public ValueChangeListener getFinalizer()
getFinalizer in interface OptionPropertiesValueChangeListener instance.OptionProperties.getFinalizer()public void setFinalizer(ValueChangeListener finalizer)
finalizer - a ValueChangeListener instance.public String getIconPath()
getIconPath in interface OptionPropertiespublic void setIconPath(String iconPath)
iconPath - the path as a string.public boolean isEventsEnabled()
isEventsEnabled in interface OptionPropertiesOptionProperties.isEventsEnabled()public void setEventsEnabled(boolean enabled)
setEventsEnabled in interface OptionPropertiesenabled - true to enable the events, false to disable them.OptionProperties.setEventsEnabled(boolean)public String getLayoutConstraints()
getLayoutConstraints in interface OptionPropertiesOptionProperties.getLayoutConstraints()public void setLayoutConstraints(String layoutConstraints)
setLayoutConstraints in interface OptionPropertieslayoutConstraints - - the constraints as a string.OptionProperties.setLayoutConstraints(java.lang.String)public String getComponentConstraints()
getComponentConstraints in interface OptionPropertiesOptionProperties.getComponentConstraints()public void setComponentConstraints(String componentConstraints)
setComponentConstraints in interface OptionPropertiescomponentConstraints - - the constraints as a string.OptionProperties.setComponentConstraints(java.lang.String)public void setEditable(boolean editable)
setEditable in interface OptionPropertieseditable - true to make this option editable, false otherwise.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||