|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.DeprecatedUINode | +--oracle.cabo.ui.BaseUINode | +--oracle.cabo.ui.BaseMutableUINode | +--oracle.cabo.ui.beans.BaseWebBean | +--oracle.cabo.ui.beans.MarlinBean | +--oracle.cabo.ui.beans.nav.LinkContainerBean | +--oracle.cabo.ui.beans.nav.TrainBean
The Train is used to indicate the current page of a multipage process that the user is on.
The Train can render its links as well-known values in a submitted form or as URLS with standard arguments.
The Train can render links that trigger a form submission using Javascript. To have a Train render form-based URLS, simply set the formSubmitted property on the TrainBean to true or set the formName to the name of the form to submit. As a result, hidden fields with the names:
event
source
value
The Train can also generate URL links based on its properties destination, id, and value. The destination property determines the base URL to which all generated links point. The parameters of the URL contain the "goto" event ID, the "id" property of the Train as the source parameter, and the "value" of the requested step to view.
This basic example shows a train of four children with the first child selected.
<train value="1" id="TrainSrc" destination="http://www.oracle.com" > <contents> <link text="Bali" /> <link text="Baja" /> <link text="Architecture" /> <link text="Release" /> </contents> </train>
Constructor Summary | |
|
TrainBean()
Construct an instance of the TrainBean. |
protected |
TrainBean(boolean ignored,
java.lang.String localName)
Construct an instance of the TrainBean. |
Method Summary | |
java.lang.String |
getDestination()
Gets the base destination for all links generated by the train. |
static java.lang.String |
getDestination(MutableUINode bean)
Gets the base destination for all links generated by the train. |
java.lang.String |
getFormName()
Gets the name of the form to submit. |
static java.lang.String |
getFormName(MutableUINode bean)
Gets the name of the form to submit. |
int |
getMaxVisited()
Gets the index of the highest visited node. |
static int |
getMaxVisited(MutableUINode bean)
Gets the index of the highest visited node. |
int |
getSelectedIndex()
Gets the index of the selected node. |
static int |
getSelectedIndex(MutableUINode bean)
Gets the index of the selected node. |
int |
getValue()
Gets the current step in the process. |
static int |
getValue(MutableUINode bean)
Gets the current step in the process. |
boolean |
isFormSubmitted()
Gets whether to submit the form. |
static boolean |
isFormSubmitted(MutableUINode bean)
Gets whether to submit the form. |
boolean |
isUnvalidated()
Gets whether onSubmit validation is fired before navigating to the next page. |
static boolean |
isUnvalidated(MutableUINode bean)
Gets whether onSubmit validation is fired before navigating to the next page. |
static void |
setDestination(MutableUINode bean,
java.lang.String destination)
Sets the base destination for all links generated by the train. |
void |
setDestination(java.lang.String destination)
Sets the base destination for all links generated by the train. |
static void |
setFormName(MutableUINode bean,
java.lang.String formName)
Sets the name of the form to submit. |
void |
setFormName(java.lang.String formName)
Sets the name of the form to submit. |
void |
setFormSubmitted(boolean formSubmitted)
Sets whether to submit the form. |
static void |
setFormSubmitted(MutableUINode bean,
boolean formSubmitted)
Sets whether to submit the form. |
void |
setMaxVisited(int maxVisited)
Sets the index of the highest visited node. |
static void |
setMaxVisited(MutableUINode bean,
int maxVisited)
Sets the index of the highest visited node. |
void |
setSelectedIndex(int selectedIndex)
Sets the index of the selected node. |
static void |
setSelectedIndex(MutableUINode bean,
int selectedIndex)
Sets the index of the selected node. |
void |
setUnvalidated(boolean unvalidated)
Sets whether onSubmit validation is fired before navigating to the next page. |
static void |
setUnvalidated(MutableUINode bean,
boolean unvalidated)
Sets whether onSubmit validation is fired before navigating to the next page. |
void |
setValue(int value)
Sets the current step in the process. |
void |
setValue(long value)
Sets the current step in the process. |
static void |
setValue(MutableUINode bean,
int value)
Sets the current step in the process. |
static void |
setValue(MutableUINode bean,
long value)
Sets the current step in the process. |
Methods inherited from class oracle.cabo.ui.beans.nav.LinkContainerBean |
addLink, addLink, addLink, getLink, removeLink |
Methods inherited from class oracle.cabo.ui.beans.MarlinBean |
isEqualMarlinName |
Methods inherited from class oracle.cabo.ui.BaseUINode |
getAttributeNames, getAttributeValue, getAttributeValueImpl, getChildArray, getChildNames, getIndexedChild, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamespaceURI, getNodeID, getNodeRole, getPreorderDescendentAttributeValue, getRawAttributeValue, getRenderedUINode, getRenderer, getRenderer, render, render, toString |
Methods inherited from class oracle.cabo.ui.DeprecatedUINode |
getAttributeValue, getChildNames, getNamedChild |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.cabo.ui.UINode |
getAttributeNames, getAttributeValue, getAttributeValue, getChildNames, getChildNames, getIndexedChild, getIndexedChild, getIndexedChildCount, getLocalName, getNamedChild, getNamedChild, getNamespaceURI, getNodeID, getNodeRole, getRawAttributeValue, render, render |
Constructor Detail |
public TrainBean()
protected TrainBean(boolean ignored, java.lang.String localName)
Method Detail |
public final int getSelectedIndex()
public final void setSelectedIndex(int selectedIndex)
public final int getValue()
public final void setValue(int value)
public final void setValue(long value)
public final int getMaxVisited()
public final void setMaxVisited(int maxVisited)
public final java.lang.String getDestination()
public final void setDestination(java.lang.String destination)
public final boolean isFormSubmitted()
public final void setFormSubmitted(boolean formSubmitted)
public final java.lang.String getFormName()
public final void setFormName(java.lang.String formName)
public final boolean isUnvalidated()
public final void setUnvalidated(boolean unvalidated)
public static int getSelectedIndex(MutableUINode bean)
public static void setSelectedIndex(MutableUINode bean, int selectedIndex)
public static int getValue(MutableUINode bean)
public static void setValue(MutableUINode bean, int value)
public static void setValue(MutableUINode bean, long value)
public static int getMaxVisited(MutableUINode bean)
public static void setMaxVisited(MutableUINode bean, int maxVisited)
public static java.lang.String getDestination(MutableUINode bean)
public static void setDestination(MutableUINode bean, java.lang.String destination)
public static boolean isFormSubmitted(MutableUINode bean)
public static void setFormSubmitted(MutableUINode bean, boolean formSubmitted)
public static java.lang.String getFormName(MutableUINode bean)
public static void setFormName(MutableUINode bean, java.lang.String formName)
public static boolean isUnvalidated(MutableUINode bean)
public static void setUnvalidated(MutableUINode bean, boolean unvalidated)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |