|
|
||||||||||
| 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
public abstract class AbstractOptionElement
Default abstract implementation of the OptionElement interface.
| Field Summary | |
|---|---|
protected OptionElement |
parent
The parent panel for this option element. |
protected OptionElement |
root
The root of the option tree this option belongs to. |
| Fields inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent |
| Constructor Summary | |
|---|---|
protected |
AbstractOptionElement()
Constructor provided as a convenience to facilitate the creation of option elements through reflexion. |
| Method Summary | |
|---|---|
protected void |
findAll(String name,
List<OptionElement> list)
Find all the elements with the specified name in the subtree of which this element is the root. |
List<OptionElement> |
findAllWithName(String name)
Find all the elements with the specified name in the subtree of which this element is the root. |
OptionElement |
findElement(String path)
Find the element with the specified path in the options tree. |
OptionElement |
findFirstWithName(String name)
Find the first element with the specified name in the subtree of which this element is the root. |
OptionElement |
findLastWithName(String name)
Find the last element with the specified name in the subtree of which this element is the root. |
protected OptionElement |
getChildForName(String childName)
Find the child element of this option element with the specified name. |
OptionElement |
getParent()
Get the parent panel for this option. |
TreePath |
getPath()
Get the path of this element in the option tree. |
OptionElement |
getRoot()
Get the root of the option tree this option belongs to. |
String |
getStringPath()
Get the path of this element in the option tree. |
void |
setParent(OptionElement parent)
Set the parent panel for this option. |
String |
toString()
Get a string representation of this element. |
| Methods inherited from class org.jppf.ui.options.AbstractOptionProperties |
|---|
createUI, 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.OptionProperties |
|---|
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setEnabled, setEventsEnabled, setLayoutConstraints |
| Field Detail |
|---|
protected OptionElement parent
protected OptionElement root
| Constructor Detail |
|---|
protected AbstractOptionElement()
| Method Detail |
|---|
public OptionElement getParent()
getParent in interface OptionElementElementOption instance.OptionElement.getParent()public void setParent(OptionElement parent)
parent - an ElementOption instance.public OptionElement getRoot()
getRoot in interface OptionElementgetRoot in interface OptionPropertiesOptionElement instance.OptionElement.getRoot()public TreePath getPath()
getPath in interface OptionElementTreePath whose components are OptionElement instances.OptionElement.getPath()public String getStringPath()
getStringPath in interface OptionElementTreePath whose components are OptionElement instances.OptionElement.getPath()public OptionElement findElement(String path)
findElement in interface OptionElementpath - the path of the element to find.
OptionElement instance, or null if no element could be found with the specfied path.OptionElement.findElement(java.lang.String)protected OptionElement getChildForName(String childName)
childName - the name of the child to find.
public String toString()
toString in class ObjectObject.toString()public List<OptionElement> findAllWithName(String name)
findAllWithName in interface OptionElementname - the name of the elements to find.
OptionElement instances, or null if no element
could be found with the specfied name. The resulting list can be empty, but never null.OptionElement.findAllWithName(java.lang.String)public OptionElement findFirstWithName(String name)
findFirstWithName in interface OptionElementname - the name of the element to find.
OptionElement instance, or null if no element could be found with the specfied name.OptionElement.findFirstWithName(java.lang.String)public OptionElement findLastWithName(String name)
findLastWithName in interface OptionElementname - the name of the element to find.
OptionElement instance, or null if no element could be found with the specfied name.OptionElement.findLastWithName(java.lang.String)
protected void findAll(String name,
List<OptionElement> list)
name - the name of the elements to find.list - a list of OptionElement instances, to fill with the elements found.
could be found with the specfied name. The resulting list can be empty, but never null.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||