|
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.layout.HeaderBean | +--oracle.cabo.ui.beans.layout.HideShowHeaderBean
The HideShowHeader provides a means of toggling the contents under a header between being disclosed(shown) or undisclosed(hidden).
On mobile devices the hideShowHeader renders nothing itself, but does renders its indexed children.
If the DISCLOSED attribute on the HideShowHeader is set to false, the icon arrow will point sideways, and the children of the HideShowHeader will not be rendered. If the DISCLOSED attribute on the HideShowHeader is set to true, the icon arrow will point down and the children of the HideShowHeader will be rendered.
Clicking on the hide/show arrow icon of the HideShowHeader will send an event to the server. The value of the event's "source" parameter will be the value of the HideShowHeader's ID attribute. The value of the event's "event" parameter will be either "hide" or "show".
The ID attribute is used to specify the name which is used to identify the HideShowHeader in client-server events.
The DISCLOSED atrribute toggles the HideShowHeader's children between being disclosed or undisclosed. This attribute may be set to Boolean.TRUE or Boolean.FALSE. By default, this attribute will be Boolean.FALSE.
The FORM_SUBMITTED attribute indicates whether or not to submit data through form submission. The default value is Boolean.FALSE.
The name of the form to be submitted can be specified through the FORM_NAME attribute. If no name is specified, the form to which the HideShowHeader belongs will be used.
If the FORM_SUBMITTED attribute is Boolean.FALSE, the links generated by the HideShowHeader will be URLs based on the DESTINATION attribute. If no destination is specified, the default URL for the page will be used.
<ctrl:content> <dataScope xmlns="http://xmlns.oracle.com/uix/ui"> <provider> <data name="hideShow"> <method class="oracle.cabo.doc.demo.HideShowData" method="getData"/> </data> </provider> <contents> <hideShowHeader text="HideShow Header" formSubmitted="true" id="hideShow" data:disclosed="show@hideShow"> <contents> <header text="Sub Header"> <contents> <header text="Sub Sub Header"/> </contents> </header> </contents> </hideShowHeader> </contents> </dataScope> </ctrl:content> <handlers xmlns="http://xmlns.oracle.com/uix/controller"> <event name="hide"> <method class="oracle.cabo.doc.demo.HideShowData" method="hideEventHandler"/> </event> <event name="show"> <method class="oracle.cabo.doc.demo.HideShowData" method="showEventHandler"/> </event> </handlers>
Constructor Summary | |
|
HideShowHeaderBean()
Construct an instance of the HideShowHeaderBean. |
protected |
HideShowHeaderBean(boolean ignored,
java.lang.String localName)
Construct an instance of the HideShowHeaderBean. |
|
HideShowHeaderBean(java.lang.String id)
Construct an instance of the HideShowHeaderBean. |
|
HideShowHeaderBean(java.lang.String id,
java.lang.String text)
Construct an instance of the HideShowHeaderBean. |
|
HideShowHeaderBean(java.lang.String id,
java.lang.String text,
boolean disclosed)
Construct an instance of the HideShowHeaderBean. |
Method Summary | |
java.lang.String |
getDestination()
Gets base destination for the hide/show icon link. |
static java.lang.String |
getDestination(MutableUINode bean)
Gets base destination for the hide/show icon link. |
java.lang.String |
getFormName()
Gets form to which HideShowHeader events should be submitted. |
static java.lang.String |
getFormName(MutableUINode bean)
Gets form to which HideShowHeader events should be submitted. |
java.lang.String |
getPartialRenderMode()
Gets |
static java.lang.String |
getPartialRenderMode(MutableUINode bean)
Gets |
java.lang.String[] |
getPartialTargets()
Gets The IDs of the partial target nodes to render when the partialRenderMode is set to "multiple". |
static java.lang.String[] |
getPartialTargets(MutableUINode bean)
Gets The IDs of the partial target nodes to render when the partialRenderMode is set to "multiple". |
boolean |
isDisclosed()
Gets whether or not to disclose the header's children This attribute is not supported on the following agent types: pda. |
static boolean |
isDisclosed(MutableUINode bean)
Gets whether or not to disclose the header's children This attribute is not supported on the following agent types: pda. |
boolean |
isFormSubmitted()
Gets whether or not to use form sumission in the Hide/Show icon link. |
static boolean |
isFormSubmitted(MutableUINode bean)
Gets whether or not to use form sumission in the Hide/Show icon link. |
boolean |
isUnvalidated()
Gets If this element is used in formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. |
static boolean |
isUnvalidated(MutableUINode bean)
Gets If this element is used in formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. |
static void |
setDestination(MutableUINode bean,
java.lang.String destination)
Sets base destination for the hide/show icon link. |
void |
setDestination(java.lang.String destination)
Sets base destination for the hide/show icon link. |
void |
setDestinationBinding(BoundValue boundValue)
Binds the base destination for the hide/show icon link. |
static void |
setDestinationBinding(MutableUINode bean,
BoundValue boundValue)
Binds the base destination for the hide/show icon link. |
static void |
setDestinationBinding(MutableUINode bean,
java.lang.Object selectKey)
Binds the base destination for the hide/show icon link. |
static void |
setDestinationBinding(MutableUINode bean,
java.lang.String dataNamespace,
java.lang.String dataName,
java.lang.Object selectKey)
Binds the base destination for the hide/show icon link. |
void |
setDestinationBinding(java.lang.Object selectKey)
Binds the base destination for the hide/show icon link. |
void |
setDestinationBinding(java.lang.String dataNamespace,
java.lang.String dataName,
java.lang.Object selectKey)
Binds the base destination for the hide/show icon link. |
void |
setDisclosed(boolean disclosed)
Sets whether or not to disclose the header's children This attribute is not supported on the following agent types: pda. |
static void |
setDisclosed(MutableUINode bean,
boolean disclosed)
Sets whether or not to disclose the header's children This attribute is not supported on the following agent types: pda. |
static void |
setFormName(MutableUINode bean,
java.lang.String formName)
Sets form to which HideShowHeader events should be submitted. |
void |
setFormName(java.lang.String formName)
Sets form to which HideShowHeader events should be submitted. |
void |
setFormSubmitted(boolean formSubmitted)
Sets whether or not to use form sumission in the Hide/Show icon link. |
static void |
setFormSubmitted(MutableUINode bean,
boolean formSubmitted)
Sets whether or not to use form sumission in the Hide/Show icon link. |
static void |
setPartialRenderMode(MutableUINode bean,
java.lang.String partialRenderMode)
Sets |
void |
setPartialRenderMode(java.lang.String partialRenderMode)
Sets |
static void |
setPartialTargets(MutableUINode bean,
java.lang.String[] partialTargets)
Sets The IDs of the partial target nodes to render when the partialRenderMode is set to "multiple". |
void |
setPartialTargets(java.lang.String[] partialTargets)
Sets The IDs of the partial target nodes to render when the partialRenderMode is set to "multiple". |
void |
setUnvalidated(boolean unvalidated)
Sets If this element is used in formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. |
static void |
setUnvalidated(MutableUINode bean,
boolean unvalidated)
Sets If this element is used in formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. |
Methods inherited from class oracle.cabo.ui.beans.layout.HeaderBean |
getIcon, getIcon, getMessageType, getMessageType, getShortText, getShortText, getSize, getSize, getText, getText, isAutoflip, isAutoflip, setAutoflip, setAutoflip, setIcon, setIcon, setMessageType, setMessageType, setShortText, setShortText, setSize, setSize, setText, setText, setTranslatableShortText, setTranslatableShortText, setTranslatableText, setTranslatableText |
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 HideShowHeaderBean()
public HideShowHeaderBean(java.lang.String id)
id
- the page-wide unique client ID of this node.public HideShowHeaderBean(java.lang.String id, java.lang.String text)
id
- the page-wide unique client ID of this node.text
- the label of the header.public HideShowHeaderBean(java.lang.String id, java.lang.String text, boolean disclosed)
id
- the page-wide unique client ID of this node.text
- the label of the header.disclosed
- whether or not to disclose the header's children
This attribute is not supported on the following agent types:
pda.protected HideShowHeaderBean(boolean ignored, java.lang.String localName)
Method Detail |
public final boolean isDisclosed()
public final void setDisclosed(boolean disclosed)
public final java.lang.String getDestination()
public final void setDestination(java.lang.String destination)
public final void setDestinationBinding(BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public final void setDestinationBinding(java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public final void setDestinationBinding(java.lang.String dataNamespace, java.lang.String dataName, java.lang.Object selectKey)
dataNamespace
- the namespace to be passed to
RenderingContext.getDataObject()
dataName
- the name to be passed to
RenderingContext.getDataObject()
selectKey
- the key to be passed to selectValue()
on the
DataObject
.public final boolean isFormSubmitted()
public final void setFormSubmitted(boolean formSubmitted)
public final boolean isUnvalidated()
formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. This attribute allows
this validation to be disabled.public final void setUnvalidated(boolean unvalidated)
formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. This attribute allows
this validation to be disabled.public final java.lang.String getFormName()
public final void setFormName(java.lang.String formName)
public final java.lang.String getPartialRenderMode()
The partialRenderMode attribute is used to control the hideShowHeader's partial page rendering behavior. partialRenderMode defaults to "none", in which case full page rendering is used to hide/show the contents of the hideShowHeader. When partialRenderMode is set to "self" or "multiple", partial page rendering is used to re-render the hideShowHeader's contents as they are hidden/shown.
In order to enable partial page rendering, the hideShowHeader's id attribute must be set, the hideShowHeader must be contained in with an UIX body element, and the Configuration.ACCESSIBILITY_MODE must be set to AccessibilityMode.INACCESSIBLE_MODE. When these requirements are met, and partialRenderMode is set to "self" or "multiple", the hideShowHeader component will use the paritial page rendering architecture to send events to the application. If any of these requirements are not met, or if the browser is not capable of supporting partial page rendering, full page rendering will be performed.
public final void setPartialRenderMode(java.lang.String partialRenderMode)
The partialRenderMode attribute is used to control the hideShowHeader's partial page rendering behavior. partialRenderMode defaults to "none", in which case full page rendering is used to hide/show the contents of the hideShowHeader. When partialRenderMode is set to "self" or "multiple", partial page rendering is used to re-render the hideShowHeader's contents as they are hidden/shown.
In order to enable partial page rendering, the hideShowHeader's id attribute must be set, the hideShowHeader must be contained in with an UIX body element, and the Configuration.ACCESSIBILITY_MODE must be set to AccessibilityMode.INACCESSIBLE_MODE. When these requirements are met, and partialRenderMode is set to "self" or "multiple", the hideShowHeader component will use the paritial page rendering architecture to send events to the application. If any of these requirements are not met, or if the browser is not capable of supporting partial page rendering, full page rendering will be performed.
public final java.lang.String[] getPartialTargets()
public final void setPartialTargets(java.lang.String[] partialTargets)
public static boolean isDisclosed(MutableUINode bean)
public static void setDisclosed(MutableUINode bean, boolean disclosed)
public static java.lang.String getDestination(MutableUINode bean)
public static void setDestination(MutableUINode bean, java.lang.String destination)
public static void setDestinationBinding(MutableUINode bean, BoundValue boundValue)
boundValue
- a BoundValue implementation to be used
to retrieve the value.public static void setDestinationBinding(MutableUINode bean, java.lang.Object selectKey)
selectKey
- the key to be passed to selectValue()
on the
current DataObject
, e.g., the DataObject for the current
table row.public static void setDestinationBinding(MutableUINode bean, java.lang.String dataNamespace, java.lang.String dataName, java.lang.Object selectKey)
dataNamespace
- the namespace to be passed to
RenderingContext.getDataObject()
dataName
- the name to be passed to
RenderingContext.getDataObject()
selectKey
- the key to be passed to selectValue()
on the
DataObject
.public static boolean isFormSubmitted(MutableUINode bean)
public static void setFormSubmitted(MutableUINode bean, boolean formSubmitted)
public static boolean isUnvalidated(MutableUINode bean)
formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. This attribute allows
this validation to be disabled.public static void setUnvalidated(MutableUINode bean, boolean unvalidated)
formSubmitted
mode, then the default behaviour is to validate all form inputs,
before submitting to the server. This attribute allows
this validation to be disabled.public static java.lang.String getFormName(MutableUINode bean)
public static void setFormName(MutableUINode bean, java.lang.String formName)
public static java.lang.String getPartialRenderMode(MutableUINode bean)
The partialRenderMode attribute is used to control the hideShowHeader's partial page rendering behavior. partialRenderMode defaults to "none", in which case full page rendering is used to hide/show the contents of the hideShowHeader. When partialRenderMode is set to "self" or "multiple", partial page rendering is used to re-render the hideShowHeader's contents as they are hidden/shown.
In order to enable partial page rendering, the hideShowHeader's id attribute must be set, the hideShowHeader must be contained in with an UIX body element, and the Configuration.ACCESSIBILITY_MODE must be set to AccessibilityMode.INACCESSIBLE_MODE. When these requirements are met, and partialRenderMode is set to "self" or "multiple", the hideShowHeader component will use the paritial page rendering architecture to send events to the application. If any of these requirements are not met, or if the browser is not capable of supporting partial page rendering, full page rendering will be performed.
public static void setPartialRenderMode(MutableUINode bean, java.lang.String partialRenderMode)
The partialRenderMode attribute is used to control the hideShowHeader's partial page rendering behavior. partialRenderMode defaults to "none", in which case full page rendering is used to hide/show the contents of the hideShowHeader. When partialRenderMode is set to "self" or "multiple", partial page rendering is used to re-render the hideShowHeader's contents as they are hidden/shown.
In order to enable partial page rendering, the hideShowHeader's id attribute must be set, the hideShowHeader must be contained in with an UIX body element, and the Configuration.ACCESSIBILITY_MODE must be set to AccessibilityMode.INACCESSIBLE_MODE. When these requirements are met, and partialRenderMode is set to "self" or "multiple", the hideShowHeader component will use the paritial page rendering architecture to send events to the application. If any of these requirements are not met, or if the browser is not capable of supporting partial page rendering, full page rendering will be performed.
public static java.lang.String[] getPartialTargets(MutableUINode bean)
public static void setPartialTargets(MutableUINode bean, java.lang.String[] partialTargets)
|
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 |