|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.ui.options.xml.OptionElementFactory
public class OptionElementFactory
Factory class used to build UI eleemnts from XML descriptors.
| Constructor Summary | |
|---|---|
OptionElementFactory(OptionsPageBuilder builder)
Initialize this factory. |
|
| Method Summary | |
|---|---|
void |
addDebugComp(OptionElement elt,
String source,
String location)
Add an invisible component from which to get a popup menu to reload the page. |
Option |
buildBoolean(OptionDescriptor desc)
Build a check box option from the specified option descriptor. |
Option |
buildButton(OptionDescriptor desc)
Build a button option from the specified option descriptor. |
Option |
buildComboBox(OptionDescriptor desc)
Build a combo box option from the specified option descriptor. |
Option |
buildCustomOption(OptionDescriptor desc)
Build a custom option implemented as a Java class. |
Option |
buildFileChooser(OptionDescriptor desc)
Build a file chooser option from the specified option descriptor. |
Option |
buildFiller(OptionDescriptor desc)
Build a filler option from the specified option descriptor. |
Option |
buildFormattedNumber(OptionDescriptor desc)
Build a formatted number option from the specified option descriptor. |
Option |
buildJavaOption(OptionDescriptor desc)
Build an option with a UI component created from a Java class. |
Option |
buildJobDataPanel(OptionDescriptor desc)
Build a JobDataPanel from the specified descriptor. |
Option |
buildLabel(OptionDescriptor desc)
Build a label option from the specified option descriptor. |
Option |
buildList(OptionDescriptor desc)
Build a list option from the specified option descriptor. |
Option |
buildNodeDataPanel(OptionDescriptor desc)
Build a NodeDataPanel from the specified descriptor. |
OptionElement |
buildPage(OptionDescriptor desc)
Build an option page from the specified option descriptor. |
Option |
buildPassword(OptionDescriptor desc)
Build a password option from the specified option descriptor. |
Option |
buildPlainText(OptionDescriptor desc)
Build a plain text option from the specified option descriptor. |
Option |
buildRadio(OptionDescriptor desc)
Build a radsio button option from the specified option descriptor. |
Option |
buildSpinnerNumber(OptionDescriptor desc)
Build a spinner number option from the specified option descriptor. |
OptionElement |
buildSplitPane(OptionDescriptor desc)
Build a split pane option from the specified option descriptor. |
OptionElement |
buildTabbedPane(OptionDescriptor desc)
Build a toolbar option from the specified option descriptor. |
Option |
buildTextArea(OptionDescriptor desc)
Build a text area option from the specified option descriptor. |
OptionElement |
buildToolbar(OptionDescriptor desc)
Build a toolbar option from the specified option descriptor. |
Option |
buildToolbarSeparator(OptionDescriptor desc)
Build a toolbar separator option from the specified option descriptor. |
List<OptionElement> |
loadImport(OptionDescriptor desc)
Build a toolbar option from the specified option descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionElementFactory(OptionsPageBuilder builder)
builder - the builder using this factory.| Method Detail |
|---|
public OptionElement buildPage(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
OptionsPage instance, or null if the page could not be build.
Exception - if an error was raised while building the page.
public OptionElement buildSplitPane(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public OptionElement buildToolbar(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public OptionElement buildTabbedPane(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildButton(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildLabel(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildTextArea(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildPassword(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildPlainText(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildFormattedNumber(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildSpinnerNumber(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildBoolean(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildRadio(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildComboBox(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildList(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildFiller(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildToolbarSeparator(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildFileChooser(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the page properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public List<OptionElement> loadImport(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public void addDebugComp(OptionElement elt,
String source,
String location)
elt - - the option to debug.source - - determines whether the XML is loaded from a url or file location.location - - where to load the xml descriptor from.
public Option buildJavaOption(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildNodeDataPanel(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildJobDataPanel(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
public Option buildCustomOption(OptionDescriptor desc)
throws Exception
desc - the descriptor to get the properties from.
Option instance, or null if the option could not be build.
Exception - if an error was raised while building the option.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||