Package org.jppf.ui.options.xml
Class OptionElementFactory
java.lang.Object
org.jppf.ui.options.xml.OptionElementFactory
Factory class used to build UI elements from XML descriptors.
- Author:
- Laurent Cohen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildBoolean(OptionDescriptor desc) Build a check box option from the specified option descriptor.buildButton(OptionDescriptor desc) Build a button option from the specified option descriptor.Build a code editor option from the specified option descriptor.Build a combo box option from the specified option descriptor.Build a custom option implemented as a Java class.Build a file chooser option from the specified option descriptor.buildFiller(OptionDescriptor desc) Build a filler option from the specified option descriptor.Build a formatted number option from the specified option descriptor.Build an option with a UI component created from a Java class.buildLabel(OptionDescriptor desc) Build a label option from the specified option descriptor.buildList(OptionDescriptor desc) Build a list option from the specified option descriptor.buildPage(OptionDescriptor desc) Build an option page from the specified option descriptor.Build a password option from the specified option descriptor.Build a pick list option from the specified option descriptor.Build a plain text option from the specified option descriptor.buildRadio(OptionDescriptor desc) Build a radio button option from the specified option descriptor.Build a spinner number option from the specified option descriptor.Build a split pane option from the specified option descriptor.Build a toolbar option from the specified option descriptor.Build a text area option from the specified option descriptor.buildToolbar(OptionDescriptor desc) Build a toolbar option from the specified option descriptor.Build a toolbar separator option from the specified option descriptor.loadImport(OptionDescriptor desc) Build a toolbar option from the specified option descriptor.
-
Constructor Details
-
OptionElementFactory
Initialize this factory.- Parameters:
builder- the builder using this factory.
-
-
Method Details
-
buildPage
Build an option page from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
OptionsPageinstance, or null if the page could not be build. - Throws:
Exception- if an error was raised while building the page.
-
buildSplitPane
Build a split pane option from the specified option descriptor.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildToolbar
Build a toolbar option from the specified option descriptor.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildTabbedPane
Build a toolbar option from the specified option descriptor.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildButton
Build a button option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildLabel
Build a label option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildTextArea
Build a text area option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildCodeEditor
Build a code editor option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildPassword
Build a password option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildPlainText
Build a plain text option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildFormattedNumber
Build a formatted number option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildSpinnerNumber
Build a spinner number option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildBoolean
Build a check box option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildRadio
Build a radio button option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildComboBox
Build a combo box option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildList
Build a list option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildFiller
Build a filler option from the specified option descriptor.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildToolbarSeparator
Build a toolbar separator option from the specified option descriptor.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildFileChooser
Build a file chooser option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildPickList
Build a pick list option from the specified option descriptor.- Parameters:
desc- the descriptor to get the page properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
loadImport
Build a toolbar option from the specified option descriptor.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildJavaOption
Build an option with a UI component created from a Java class.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-
buildCustomOption
Build a custom option implemented as a Java class.- Parameters:
desc- the descriptor to get the properties from.- Returns:
- an
Optioninstance, or null if the option could not be build. - Throws:
Exception- if an error was raised while building the option.
-