|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wli.sb.transports.ui.TransportUIFactory
public class TransportUIFactory
This class provides factory methods for creating a Transport Edit Field and different kinds of Transport UI objects associated with the field. It also provides some helper methods for accessing values in these objects.
Nested Class Summary | |
---|---|
static class |
TransportUIFactory.BrowserTextBoxObject
Browser textbox object |
static class |
TransportUIFactory.CheckBoxObject
checkbox object |
static class |
TransportUIFactory.ConfirmationObject
confirmation object |
static class |
TransportUIFactory.DynamicTableObject
Dynamic table object |
static class |
TransportUIFactory.ExpandableRowObject
Expandable Row Object |
static class |
TransportUIFactory.ExpandableTableObject
Expandable Table Object |
static class |
TransportUIFactory.HintTextAreaObject
A TextArea object with a hint above it |
static class |
TransportUIFactory.HintTextBoxObject
A TextBox object with a little hint above it. |
static class |
TransportUIFactory.Option
|
static class |
TransportUIFactory.PasswordObject
password object |
static class |
TransportUIFactory.SelectObject
select object |
static class |
TransportUIFactory.SimpleCell
Simple Cell Object |
static class |
TransportUIFactory.SimpleRowObject
Simple Row Object |
static class |
TransportUIFactory.SimpleTableObject
Simple Table Object |
static class |
TransportUIFactory.TextAreaObject
textarea object |
static class |
TransportUIFactory.TextBoxObject
A simple text box input object. |
static interface |
TransportUIFactory.TransportUIObject
Marker interface. |
Field Summary | |
---|---|
static int |
TYPE_BROWSER_TEXTBOX
|
static int |
TYPE_CHECKBOX
|
static int |
TYPE_CONFIRM
|
static int |
TYPE_DYN_TABLE
|
static int |
TYPE_EXPAND_TABLE
|
static int |
TYPE_HINT_TEXTAREA
|
static int |
TYPE_HINT_TEXTBOX
|
static int |
TYPE_PASSWORD
|
static int |
TYPE_SELECT
|
static int |
TYPE_SIMPLE_TABLE
|
static int |
TYPE_TEXTAREA
|
static int |
TYPE_TEXTBOX
|
Method Summary | |
---|---|
static TransportUIFactory.BrowserTextBoxObject |
createBrowserTextBox(String value,
int size,
String typeId)
Creates a browser textbox object. |
static TransportUIFactory.BrowserTextBoxObject |
createBrowserTextBox(String value,
int size,
String typeId,
boolean hasEvent)
Creates a browser textbox object. |
static TransportUIFactory.BrowserTextBoxObject |
createBrowserTextBox(String value,
int size,
String typeId,
boolean hasEvent,
ResourceQuery resourceQuery)
Creates a browser textbox object. |
static TransportUIFactory.BrowserTextBoxObject |
createBrowserTextBox(String value,
String typeId)
Creates a browser textbox object. |
static TransportUIFactory.CheckBoxObject |
createCheckbox(boolean checked)
Creates a checkbox object. |
static TransportUIFactory.CheckBoxObject |
createCheckbox(String value,
boolean checked,
boolean hasEvent)
Creates a checkbox object that posts an update event back to the transport provider when it changes. |
static TransportUIFactory.ConfirmationObject |
createConfirmation(String message,
boolean confirmed)
Creates a confirmation object. |
static TransportUIFactory.DynamicTableObject |
createDynamicTable(String[] headers,
TransportUIFactory.TextBoxObject[] uiobjects)
Creates a dynamic table object. |
static TransportUIFactory.DynamicTableObject |
createDynamicTable(String[] headers,
TransportUIFactory.TextBoxObject[] uiobjects,
List<String[]> rows)
Creates a dynamic table object. |
static TransportEditField |
createEditField(String name,
String label,
String description,
boolean isrequired,
TransportUIFactory.TransportUIObject object)
Creates a transport edit field. |
static TransportEditField |
createEditField(String name,
String label,
String description,
TransportUIFactory.TransportUIObject object)
Creates a transport edit field. |
static TransportUIFactory.ExpandableTableObject |
createExpandableTableObject(List<TransportUIFactory.ExpandableRowObject> rows,
String checkboxDescription)
Creates an expandable table object. |
static TransportUIFactory.HintTextAreaObject |
createHintTextArea(String value,
String hint,
int size,
int numRows,
boolean readOnly)
Creates a hint textarea object. |
static TransportUIFactory.HintTextBoxObject |
createHintTextBox(String value,
String hint,
int size)
Creates a hint textbox object. |
static TransportUIFactory.PasswordObject |
createPassword(String value)
Creates a password object. |
static TransportUIFactory.PasswordObject |
createPassword(String value,
int size)
Creates a password object. |
static TransportUIFactory.SelectObject |
createSelectObject(String[] values,
String[] formattedValues,
String selected,
int displayMode,
boolean hasEvent)
Creates a select object. |
static TransportUIFactory.SelectObject |
createSelectObject(TransportUIFactory.Option[] options,
String selected,
int displayMode,
boolean hasEvent)
Creates a select object. |
static TransportUIFactory.SimpleTableObject |
createSimpleTableObject(String[] headers,
List<TransportUIFactory.SimpleRowObject> rows)
Creates a simple table object. |
static TransportUIFactory.SimpleTableObject |
createSimpleTableObject(String[] headers,
List<TransportUIFactory.SimpleRowObject> rows,
String width)
Creates a simple table object. |
static TransportUIFactory.TextAreaObject |
createTextArea(String value,
int size,
int numRows,
boolean readOnly)
Creates a textarea object. |
static TransportUIFactory.TextBoxObject |
createTextBox(String value)
Creates a textbox object. |
static TransportUIFactory.TextBoxObject |
createTextBox(String value,
int size)
Creates a textbox object with a specified size. |
static TransportUIFactory.TextBoxObject |
createTextBox(String value,
int size,
boolean readOnly)
Creates a textbox object with associated attributes. |
static boolean |
getBooleanValue(Map<String,TransportUIFactory.TransportUIObject> map,
String name)
Returns the value of the named field as a boolean. |
static int |
getIntValue(Map<String,TransportUIFactory.TransportUIObject> map,
String name)
Returns the value of the named field as an integer. |
static String |
getStringValue(Map<String,TransportUIFactory.TransportUIObject> map,
String name)
Returns the value of the named field as a string. |
static String |
getStringValue(TransportUIFactory.TransportUIObject uiobject)
Returns the value of the UI object as a string. |
static List<String[]> |
getStringValues(Map<String,TransportUIFactory.TransportUIObject> map,
String name)
Returns the list of string values for the named field. |
static List<String[]> |
getStringValues(TransportUIFactory.TransportUIObject uiobject)
Returns the list of string values for the TransportUIObject; This is typically used for retrieving values from the table objects. |
static void |
setValue(TransportUIFactory.TransportUIObject uiObject,
String value)
Sets the value of a transport UI object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_TEXTBOX
public static final int TYPE_CHECKBOX
public static final int TYPE_SELECT
public static final int TYPE_PASSWORD
public static final int TYPE_DYN_TABLE
public static final int TYPE_CONFIRM
public static final int TYPE_BROWSER_TEXTBOX
public static final int TYPE_TEXTAREA
public static final int TYPE_HINT_TEXTBOX
public static final int TYPE_EXPAND_TABLE
public static final int TYPE_SIMPLE_TABLE
public static final int TYPE_HINT_TEXTAREA
Method Detail |
---|
public static TransportEditField createEditField(String name, String label, String description, TransportUIFactory.TransportUIObject object)
name
- identifies the field.label
- label that displays on the form.description
- tool tip text that appears on a mouseover.object
- transport UI object associated with this field.
public static TransportEditField createEditField(String name, String label, String description, boolean isrequired, TransportUIFactory.TransportUIObject object)
name
- identifies the field.label
- label that displays on the form.description
- tool tip text that appears on a mouseover.isrequired
- indicates if this is a required field.object
- transport UI object associated with this field.
public static TransportUIFactory.TextBoxObject createTextBox(String value)
value
- the initial value for the textbox.
public static TransportUIFactory.TextBoxObject createTextBox(String value, int size)
value
- the initial value for the textbox.size
- the size of the textbox.
public static TransportUIFactory.TextBoxObject createTextBox(String value, int size, boolean readOnly)
value
- the initial value for the textbox.size
- the size of the textbox.readOnly
- if true the textbox is disabled for input.
public static TransportUIFactory.CheckBoxObject createCheckbox(boolean checked)
checked
- the initial state for the checkbox.
public static TransportUIFactory.CheckBoxObject createCheckbox(String value, boolean checked, boolean hasEvent)
value
- the value associated with the checkbox.checked
- the initial state for the checkbox.hasEvent
- true indicates that an update event is to be posted back to the transport provider when
the checkbox is changed.
public static TransportUIFactory.SelectObject createSelectObject(String[] values, String[] formattedValues, String selected, int displayMode, boolean hasEvent)
values
- the actual values for each of the options.formattedValues
- the displayed text for each of the options.selected
- the default selection.displayMode
- the type of display presentation (list or radio buttons).hasEvent
- true indicates that an update event is to be posted back to the transport provider when
the checkbox is changed.
public static TransportUIFactory.SelectObject createSelectObject(TransportUIFactory.Option[] options, String selected, int displayMode, boolean hasEvent)
options
- the values and displayed text for the options.selected
- the default selection.displayMode
- the type of display presentation (list or radio buttons).hasEvent
- true indicates that an update event is to be posted back to the transport provider when
the checkbox is changed.
public static TransportUIFactory.PasswordObject createPassword(String value)
value
- the initial value for the password.
public static TransportUIFactory.PasswordObject createPassword(String value, int size)
value
- the initial value for the password.size
- the size of the password input field.
public static TransportUIFactory.DynamicTableObject createDynamicTable(String[] headers, TransportUIFactory.TextBoxObject[] uiobjects)
headers
- the labels for each column in the tableuiobjects
- input textbox objects used for adding new rows.
public static TransportUIFactory.DynamicTableObject createDynamicTable(String[] headers, TransportUIFactory.TextBoxObject[] uiobjects, List<String[]> rows)
headers
- the labels for each column in the tableuiobjects
- input textbox objects used for adding new rows.rows
- the initial list of rows in the table.
public static TransportUIFactory.ConfirmationObject createConfirmation(String message, boolean confirmed)
message
- text to be displayed in the popup.confirmed
- initial state for the confirmation object.
public static TransportUIFactory.BrowserTextBoxObject createBrowserTextBox(String value, String typeId)
value
- the initial value of the selected resource.typeId
- identifies the type of resource to be shown.
public static TransportUIFactory.BrowserTextBoxObject createBrowserTextBox(String value, int size, String typeId)
value
- the initial value of the selected resource.size
- the size of the selection textbox field.typeId
- identifies the type of resource to be shown.
public static TransportUIFactory.BrowserTextBoxObject createBrowserTextBox(String value, int size, String typeId, boolean hasEvent)
value
- the initial value of the selected resource.size
- the size of the selection textbox field.typeId
- identifies the type of resource to be shown.hasEvent
- true indicates that an update event is to be posted back to the transport provider when
the selection textbox is changed.
public static TransportUIFactory.BrowserTextBoxObject createBrowserTextBox(String value, int size, String typeId, boolean hasEvent, ResourceQuery resourceQuery)
value
- the initial value of the selected resource.size
- the size of the selection textbox field.typeId
- identifies the type of resource to be shown.hasEvent
- true indicates that an update event is to be posted back to the transport provider when
the selection textbox is changed.resourceQuery
- query used to filter the resource chooser.
public static TransportUIFactory.TextAreaObject createTextArea(String value, int size, int numRows, boolean readOnly)
value
- the initial value of the textarea.size
- the width of the textarea.numRows
- the number of rows in the textarea.readOnly
- if true the textarea is disabled for input.
public static TransportUIFactory.HintTextBoxObject createHintTextBox(String value, String hint, int size)
value
- the initial value of the textbox.hint
- a short descriptive text hint to display near the textbox.size
- the size of the textbox.
public static TransportUIFactory.HintTextAreaObject createHintTextArea(String value, String hint, int size, int numRows, boolean readOnly)
value
- the initial value of the textarea.hint
- a short descriptive text hint to display near the text area.size
- the width of the textarea.numRows
- the number of rows in the textarea.readOnly
- if true the textarea is disabled for input.
public static TransportUIFactory.ExpandableTableObject createExpandableTableObject(List<TransportUIFactory.ExpandableRowObject> rows, String checkboxDescription)
rows
- the list of expandable rows in the table.checkboxDescription
- tool tip descriptive text displayed when the mouse hovers over the checkbox.
public static TransportUIFactory.SimpleTableObject createSimpleTableObject(String[] headers, List<TransportUIFactory.SimpleRowObject> rows)
headers
- the labels for each column in the tablerows
- the list of rows in the table.
public static TransportUIFactory.SimpleTableObject createSimpleTableObject(String[] headers, List<TransportUIFactory.SimpleRowObject> rows, String width)
headers
- the labels for each column in the tablerows
- the list of rows in the table.width
- the HTML width of the table.
public static String getStringValue(TransportUIFactory.TransportUIObject uiobject)
uiobject
- the UI object whose value is to be retrieved
public static String getStringValue(Map<String,TransportUIFactory.TransportUIObject> map, String name)
map
- the map of field names to TransportUIObjects (see TransportEditField.getObjectMap(...)).name
- the name of the field whose value is to be retrieved.
public static int getIntValue(Map<String,TransportUIFactory.TransportUIObject> map, String name)
map
- the map of field names to TransportUIObjects (see TransportEditField.getObjectMap(...)).name
- the name of the field whose value is to be retrieved.
public static boolean getBooleanValue(Map<String,TransportUIFactory.TransportUIObject> map, String name)
map
- the map of field names to TransportUIObjects (see TransportEditField.getObjectMap(...)).name
- the name of the field whose value is to be retrieved.
public static List<String[]> getStringValues(TransportUIFactory.TransportUIObject uiobject)
public static List<String[]> getStringValues(Map<String,TransportUIFactory.TransportUIObject> map, String name)
map
- the map of field names to TransportUIObjects (see TransportEditField.getObjectMap(...)).name
- the name of the field whose value is to be retrieved.
public static void setValue(TransportUIFactory.TransportUIObject uiObject, String value)
uiObject
- the TransportUIObject whose value is to be retrieved.value
- the string value for the object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |