|
UIX 2.2.16 | ||||||||
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
The Header control places a label and optional icon at the top of a section.
On mobile devices the header renders nothing itself, but does renders its indexed children.
The header control works closely with the quicklinks control
if one is present. The QuickLinks control places a link to
all top level headers under a given node, except the first
header. When a QuickLinks control is present (or has been
created with the "quickLinksShown" attribute of PageLayout,
the headers linked to also have a link to the top of the
page as part of the header. All headers that are to be
linked should be children of the ancestor node referenced in
the QuickLinks control by the ANCESTOR_PATH_ATTR
attribute. To specify a different link text from the
default (which is the full text of the header), set the
SHORT_TEXT_ATTR
on
the header to the desired text.
The Header bean can also be used at the top of an application page to give the user important messaging information. The types of messages are:
The type of header to display is set using the
messageType
attribute. It should be set
to the corresponding UIConstant:
MESSAGE_TYPE_ERROR, MESSAGE_TYPE_INFO,
MESSAGE_TYPE_WARNING, or MESSAGE_TYPE_CONFIRMATION
. When a messageType is set the text
of the header is automatically generated, but can be overriden using the
text
attribute. The icon cannot be overridden.
HeaderBean does not support setting the CSS style, but does support setting a size. A large header corresponds to 0, medium to 1, and small to 2.
Basic example.
<header text="This is a Header"> <contents> <link text="Oracle" destination="http://www.oracle.com"/> <header text="This is a SubHeader" > <contents> <link text="Oracle" destination="http://www.oracle.com"/> </contents> </header> </contents> </header>
Header displaying message information.
<header messageType="error"/>
Controlling the size of the header.
<header text="This is a Header" size="1"> <contents> The size of the Header has been explicitly set to be smaller than normal. <header text="This is a SubHeader" > <contents> The size of the SubHeader has not been explicitly set. Notice the size of the SubHeader is therefore relative to the size of the header above it. <header text="This is a SubSubHeader" size="0"> <contents> The size of the SubSubHeader has been set to be large. </contents> </header> </contents> </header> </contents> </header>
QuickLinksBean
,
MessageBoxBean
Constructor Summary | |
|
HeaderBean()
Construct an instance of the HeaderBean. |
protected |
HeaderBean(boolean ignored,
java.lang.String localName)
Construct an instance of the HeaderBean. |
|
HeaderBean(java.lang.String text)
Construct an instance of the HeaderBean. |
|
HeaderBean(java.lang.String text,
java.lang.String icon)
Construct an instance of the HeaderBean. |
Method Summary | |
java.lang.String |
getIcon()
Gets the URI for the icon of the header. |
static java.lang.String |
getIcon(MutableUINode bean)
Gets the URI for the icon of the header. |
java.lang.String |
getMessageType()
Gets Set if an error, info, confirmation, or warning header is needed. |
static java.lang.String |
getMessageType(MutableUINode bean)
Gets Set if an error, info, confirmation, or warning header is needed. |
java.lang.String |
getShortText()
Gets the abbreviated text of the header, used in the QuickLinks control. |
static java.lang.String |
getShortText(MutableUINode bean)
Gets the abbreviated text of the header, used in the QuickLinks control. |
int |
getSize()
Gets Size of this header. |
static int |
getSize(MutableUINode bean)
Gets Size of this header. |
java.lang.String |
getText()
Gets the label of the header. |
static java.lang.String |
getText(MutableUINode bean)
Gets the label of the header. |
boolean |
isAutoflip()
Gets When set to true, an attempt will be made to flip the image given by the icon attribute when LocaleContext().getReadingDirection() indicates a right to left reading direction. |
static boolean |
isAutoflip(MutableUINode bean)
Gets When set to true, an attempt will be made to flip the image given by the icon attribute when LocaleContext().getReadingDirection() indicates a right to left reading direction. |
void |
setAutoflip(boolean autoflip)
Sets When set to true, an attempt will be made to flip the image given by the icon attribute when LocaleContext().getReadingDirection() indicates a right to left reading direction. |
static void |
setAutoflip(MutableUINode bean,
boolean autoflip)
Sets When set to true, an attempt will be made to flip the image given by the icon attribute when LocaleContext().getReadingDirection() indicates a right to left reading direction. |
static void |
setIcon(MutableUINode bean,
java.lang.String icon)
Sets the URI for the icon of the header. |
void |
setIcon(java.lang.String icon)
Sets the URI for the icon of the header. |
static void |
setMessageType(MutableUINode bean,
java.lang.String messageType)
Sets Set if an error, info, confirmation, or warning header is needed. |
void |
setMessageType(java.lang.String messageType)
Sets Set if an error, info, confirmation, or warning header is needed. |
static void |
setShortText(MutableUINode bean,
java.lang.String shortText)
Sets the abbreviated text of the header, used in the QuickLinks control. |
void |
setShortText(java.lang.String shortText)
Sets the abbreviated text of the header, used in the QuickLinks control. |
void |
setSize(int size)
Sets Size of this header. |
static void |
setSize(MutableUINode bean,
int size)
Sets Size of this header. |
static void |
setText(MutableUINode bean,
java.lang.String text)
Sets the label of the header. |
void |
setText(java.lang.String text)
Sets the label of the header. |
static void |
setTranslatableShortText(MutableUINode bean,
java.lang.String bundleName,
java.lang.String key)
Binds to a ResourceBundle the the abbreviated text of the header, used in the QuickLinks control. |
void |
setTranslatableShortText(java.lang.String bundleName,
java.lang.String key)
Binds to a ResourceBundle the the abbreviated text of the header, used in the QuickLinks control. |
static void |
setTranslatableText(MutableUINode bean,
java.lang.String bundleName,
java.lang.String key)
Binds to a ResourceBundle the the label of the header. |
void |
setTranslatableText(java.lang.String bundleName,
java.lang.String key)
Binds to a ResourceBundle the the label of the header. |
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 HeaderBean()
public HeaderBean(java.lang.String text)
text
- the label of the header.public HeaderBean(java.lang.String text, java.lang.String icon)
text
- the label of the header.icon
- the URI for the icon of the header.protected HeaderBean(boolean ignored, java.lang.String localName)
Method Detail |
public final java.lang.String getText()
public final void setText(java.lang.String text)
public final void setTranslatableText(java.lang.String bundleName, java.lang.String key)
bundleName
- the name of the ResourceBundlekey
- the key of the string to retrieve from the ResourceBundlepublic final java.lang.String getShortText()
public final void setShortText(java.lang.String shortText)
public final void setTranslatableShortText(java.lang.String bundleName, java.lang.String key)
bundleName
- the name of the ResourceBundlekey
- the key of the string to retrieve from the ResourceBundlepublic final java.lang.String getIcon()
public final void setIcon(java.lang.String icon)
public final java.lang.String getMessageType()
public final void setMessageType(java.lang.String messageType)
public final int getSize()
public final void setSize(int size)
public final boolean isAutoflip()
public final void setAutoflip(boolean autoflip)
public static java.lang.String getText(MutableUINode bean)
public static void setText(MutableUINode bean, java.lang.String text)
public static void setTranslatableText(MutableUINode bean, java.lang.String bundleName, java.lang.String key)
bundleName
- the name of the ResourceBundlekey
- the key of the string to retrieve from the ResourceBundlepublic static java.lang.String getShortText(MutableUINode bean)
public static void setShortText(MutableUINode bean, java.lang.String shortText)
public static void setTranslatableShortText(MutableUINode bean, java.lang.String bundleName, java.lang.String key)
bundleName
- the name of the ResourceBundlekey
- the key of the string to retrieve from the ResourceBundlepublic static java.lang.String getIcon(MutableUINode bean)
public static void setIcon(MutableUINode bean, java.lang.String icon)
public static java.lang.String getMessageType(MutableUINode bean)
public static void setMessageType(MutableUINode bean, java.lang.String messageType)
public static int getSize(MutableUINode bean)
public static void setSize(MutableUINode bean, int size)
public static boolean isAutoflip(MutableUINode bean)
public static void setAutoflip(MutableUINode bean, boolean autoflip)
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |