public final class Utilities extends Utilities
Copyright 2006 Sans Pareil Technologies, Inc.
| Constructor and Description |
|---|
Utilities() |
| Modifier and Type | Method and Description |
|---|---|
static Menu |
createMenu(String view,
String name)
Create the
Menu identified by the specified name. |
static MenuItem |
createMenuItem(String view,
String name)
Create the
MenuItem identified by the specified name. |
static MenuItem |
createMenuItem(String view,
String name,
ActionListener actionListener)
Create the menuItem identified by the specified name.
|
static MenuItem |
createMenuItem(String view,
String name,
ActionListener actionListener,
Object viewObject)
Create the menuItem identified by the specified name.
|
static PushButton |
createPushButton(String view,
String name)
Create the button identified by the specified name.
|
static PushButton |
createPushButton(String view,
String name,
ActionListener actionListener)
Create the button identified by the specified name.
|
static PushButton |
createPushButton(String view,
String name,
ActionListener actionListener,
Object viewObject)
Create the button identified by the specified name.
|
static RichTextArea |
createRichTextArea(String view,
String name)
Create the rich text area identified by the name specified.
|
static RichTextArea |
createRichTextArea(String view,
String name,
Object viewObject)
Create the text field identified by the name specified.
|
createButton, createButton, createButton, createButton, createButton, createButton, createButton, createButton, createLabel, createLabel, createLabel, createLabel, createTextArea, createTextArea, createTextArea, createTextArea, createTextField, createTextField, createTextField, createTextField, createTextField, createTextField, createTextField, createTextField, processStyleName, setFieldpublic static Menu createMenu(String view, String name)
Menu identified by the specified name.view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the menu to create.
The name must match the name of the appropriate menu. The
same name must be configured in the configuration file for
the properties and resources.public static MenuItem createMenuItem(String view, String name)
MenuItem identified by the specified name.view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the menuItem to create.
The name must match the name of the appropriate menuItem. The
same name must be configured in the configuration file for
the properties and resources.public static MenuItem createMenuItem(String view, String name, ActionListener actionListener)
view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the menuItem to create.
The name must match the name of the appropriate menuItem. The
same name must be configured in the configuration file for
the properties and resources.actionListener - The ActionListener to register
for the newly created menuItem.createMenuItem( String, String )public static MenuItem createMenuItem(String view, String name, ActionListener actionListener, Object viewObject)
view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the menuItem to create.
The name must match the name of the appropriate menuItem. The
same name must be configured in the configuration file for
the properties and resources.actionListener - The ActionListener to register
for the newly created menuItem.viewObject - The object whose identically named field is to
be set with the newly created component.createMenuItem( String, String, ActionListener ),
Utilities.setField(java.lang.String, java.lang.Object, nextapp.echo2.app.Component)public static PushButton createPushButton(String view, String name)
view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the button to create.
The name must match the name of the appropriate button. The
same name must be configured in the configuration file for
the properties and resources.public static PushButton createPushButton(String view, String name, ActionListener actionListener)
view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the button to create.
The name must match the name of the appropriate button. The
same name must be configured in the configuration file for
the properties and resources.actionListener - The ActionListener to register
for the newly created button.createPushButton( String, String )public static PushButton createPushButton(String view, String name, ActionListener actionListener, Object viewObject)
view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the button to create.
The name must match the name of the appropriate button. The
same name must be configured in the configuration file for
the properties and resources.actionListener - The ActionListener to register
for the newly created button.viewObject - The object whose identically named field is to
be set with the newly created component.createPushButton( String, String, ActionListener ),
Utilities.setField(java.lang.String, java.lang.Object, nextapp.echo2.app.Component)public static RichTextArea createRichTextArea(String view, String name)
view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the text area to create.
The name must match the name of the appropriate field
without the Area suffix (eg. userName, salary, ...). The
same name must be configured in the configuration file for
the properties and resources.public static RichTextArea createRichTextArea(String view, String name, Object viewObject)
Area in the viewClass
with the newly created component.view - The name of the view to which the component
is to be added. This must match the name of the configuration
setting.name - The name used to identify the text field to create.
The name must match the name of the appropriate field
without the Area suffix (eg. userName, salary, ...). The
same name must be configured in the configuration file for
the properties and resources.viewObject - The object whose field is to be updated with the
newly created componentcreateRichTextArea( String, String ),
Utilities.setField(java.lang.String, java.lang.Object, nextapp.echo2.app.Component)