public class SectionStackSection extends RefDataClass
A section header (see SectionStack.sectionHeaderClass
) is created from
this descriptor when the SectionStack is drawn. Any changes after creation must be made to the section header: SectionStack.getSectionHeader()
.
Additional
SectionHeader properties set on the SectionStackSection not explicitly documented such as "iconAlign" or "prompt" is
supported - use setAttribute()
.
Modifier and Type | Field and Description |
---|---|
protected SectionStack |
stack
Once a SectionStackSection has been applied to a SectionStack, this method may be used to return a pointer to the
SectionStack in which this section header is embedded.
|
id
factoryCreated, factoryProperties, readOnly
Constructor and Description |
---|
SectionStackSection() |
SectionStackSection(com.google.gwt.core.client.JavaScriptObject jsObj) |
SectionStackSection(java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Canvas item) |
java.lang.Boolean |
getCanTabToHeader()
If true, the header for this Section will be included in the page's tab order for accessibility.
|
java.lang.Boolean |
getClipTitle()
If the title for this section header is too large for the available space, should the title be clipped?
|
Canvas[] |
getControls()
Custom controls to be shown on top of this section header.
|
java.lang.String |
getIcon()
Base filename of the icon that represents open and closed states.
|
java.lang.String |
getID()
Optional ID for the section.
|
Canvas[] |
getItems()
Return the items in this SectionStackSection
|
java.lang.String |
getName()
Identifier for the section.
|
static SectionStackSection |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
SectionHeader |
getSectionHeader()
Once a SectionStackSection has been applied to a SectionStack, this method may be used to return a pointer to the
SectionHeader for this section
|
SectionStack |
getSectionStack() |
java.lang.Boolean |
getShowClippedTitleOnHover()
If true and the title is clipped, then a hover containing the full title of this section header is enabled.
|
java.lang.String |
getTitle()
Title to show for the section
|
void |
setAriaRole(java.lang.String ariaRole)
Specify the ariaRole for this SectionStackSection.
|
void |
setAriaState(java.lang.String stateName,
java.lang.Object stateValue)
Specify an ariaState for this SectionStackSection.
|
void |
setCanCollapse(java.lang.Boolean canCollapse)
This attribute controls whether or not the expand/collapse UI control is shown on the header of this section.
|
void |
setCanDropBefore(java.lang.Boolean canDropBefore)
When explicitly set to false, disallows drop before this member in the Layout.
|
void |
setCanReorder(java.lang.Boolean canReorder)
If set to false, then this sectionHeader will not be able to be dragged to perform a drag reorder, if
SectionStack.canReorderSections is true. |
void |
setCanTabToHeader(java.lang.Boolean canTabToHeader)
If true, the header for this Section will be included in the page's tab order for accessibility.
|
void |
setClipTitle(java.lang.Boolean clipTitle)
If the title for this section header is too large for the available space, should the title be clipped?
|
void |
setControls(Canvas... controls)
Custom controls to be shown on top of this section header.
|
void |
setExpanded(java.lang.Boolean expanded)
Sections default to the collapsed state unless
showHeader is set to false in which
case they default to the expanded state. |
void |
setHidden(java.lang.Boolean hidden)
Sections default to the visible state.
|
void |
setIcon(java.lang.String icon)
Base filename of the icon that represents open and closed states.
|
void |
setID(java.lang.String ID)
Optional ID for the section.
|
void |
setItems(Canvas... items)
List of Canvases that constitute the section.
|
void |
setName(java.lang.String name)
Identifier for the section.
|
void |
setResizeable(java.lang.Boolean resizeable)
If set to false, then the items in this section will not be resized by sectionHeader repositioning.
|
void |
setShowClippedTitleOnHover(java.lang.Boolean showClippedTitleOnHover)
If true and the title is clipped, then a hover containing the full title of this section header is enabled.
|
void |
setShowHeader(java.lang.Boolean showHeader)
If true, a header will be shown for this section.
|
void |
setTitle(java.lang.String title)
Title to show for the section
|
void |
setTitleHoverFormatter(TitleHoverFormatter formatter)
Provide a custom implementation of
SectionHeader.titleHoverHTML(java.lang.String) . |
getRef, getRef, internalSetID
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, getReadOnly, isFactoryCreated, logConfiguration, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated, setReadOnly
protected SectionStack stack
public SectionStackSection()
public SectionStackSection(com.google.gwt.core.client.JavaScriptObject jsObj)
public SectionStackSection(java.lang.String title)
public static SectionStackSection getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public void setCanCollapse(java.lang.Boolean canCollapse)
canCollapse
- Default value is truepublic void setCanDropBefore(java.lang.Boolean canDropBefore)
canDropBefore
- Default value is nullLayout
,
LayoutMember overview and related methods
public void setCanReorder(java.lang.Boolean canReorder)
SectionStack.canReorderSections
is true. You can
also disable dropping other sections before this one by setting canDropBefore
to false.canReorder
- Default value is nullpublic void setCanTabToHeader(java.lang.Boolean canTabToHeader)
SectionStack
level via SectionStack.canTabToHeaders
. See Accessibility
.
canTabToHeader
- Default value is nullpublic java.lang.Boolean getCanTabToHeader()
SectionStack
level via SectionStack.canTabToHeaders
. See Accessibility
.
public void setClipTitle(java.lang.Boolean clipTitle)
This feature is supported only in browsers that support the CSS UI text-overflow property (IE6+, Firefox 7+, Safari, Chrome, Opera 9+).
clipTitle
- Default value is truepublic java.lang.Boolean getClipTitle()
This feature is supported only in browsers that support the CSS UI text-overflow property (IE6+, Firefox 7+, Safari, Chrome, Opera 9+).
public void setControls(Canvas... controls)
These controls are shown in the SectionHeader.controlsLayout
.
Note that this is an init-time property. If you need to dynamically change what controls are displayed to the user, we would recommend embedding the controls in a Layout or similar container. This will allow you to show/hide or add/remove members at runtime by manipulating the existing control(s) set up at init time.
controls
- Default value is nullpublic Canvas[] getControls()
These controls are shown in the SectionHeader.controlsLayout
.
Note that this is an init-time property. If you need to dynamically change what controls are displayed to the user, we would recommend embedding the controls in a Layout or similar container. This will allow you to show/hide or add/remove members at runtime by manipulating the existing control(s) set up at init time.
public void setIcon(java.lang.String icon)
Not shown if
canCollapse
is false.
icon
- SCImgURL . Default value is "[SKIN]SectionHeader/opener.gif"
public java.lang.String getIcon()
Not shown if
canCollapse
is false.
SCImgURL
public void setName(java.lang.String name)
SectionStack
APIs such as SectionStack.expandSection()
and
SectionStack.collapseSection()
. Note that if no
name is specified for the section, one will be auto-generated when the section is created. This property should be a
string which may be used as a valid JavaScript identifier (should start with a letter and not contain space or special
characters such as "*").name
- Default value is nullpublic java.lang.String getName()
SectionStack
APIs such as SectionStack.expandSection()
and
SectionStack.collapseSection()
. Note that if no
name is specified for the section, one will be auto-generated when the section is created. This property should be a
string which may be used as a valid JavaScript identifier (should start with a letter and not contain space or special
characters such as "*").public void setResizeable(java.lang.Boolean resizeable)
resizeable
- Default value is nullpublic void setShowClippedTitleOnHover(java.lang.Boolean showClippedTitleOnHover)
showClippedTitleOnHover
- Default value is truepublic java.lang.Boolean getShowClippedTitleOnHover()
public void setShowHeader(java.lang.Boolean showHeader)
showHeader
- Default value is truepublic void setTitle(java.lang.String title)
title
- title Default value is nullpublic java.lang.String getTitle()
public void setExpanded(java.lang.Boolean expanded)
showHeader
is set to false
in which
case they default to the expanded state. This attribute allows you to explicitly control the expand/collapse state of
the section by overriding the above default behavior.expanded
- expanded Default value is falsepublic void setHidden(java.lang.Boolean hidden)
hidden
- hidden Default value is falsepublic void setItems(Canvas... items)
items
- list of Canvases that constitute the sectionpublic Canvas[] getItems()
public void addItem(Canvas item)
public SectionStack getSectionStack()
public SectionHeader getSectionHeader()
public java.lang.String getID()
useGlobalSectionIDs
is true, this property will be applied to the generated
SectionStackHeader widget as a standard widget ID, meaning it should be unique within a
page. Backcompat Note: Section stack sections may be uniquely identified
within a stack via the name
attribute
(introduced in Jan 2010). Prior to this, the section ID attribute was used in this way
(and would not be applied to the section header as a widget ID). For backwards
compatibility this is still supported: If section.name
is unspecified for a
section but section.ID
is set, the ID will be used as a default name
attribute for the section. For backwards compatibility we also disable the standard
behavior of having the section.ID
being applied to the generated section
header (thereby avoiding the page-level uniqueness requirement) by defaulting useGlobalSectionIDs
to false.
public void setID(java.lang.String ID)
useGlobalSectionIDs
is true, this property will be applied to the generated
SectionStackHeader widget as a standard widget ID, meaning it should be unique within a
page. Backcompat Note: Section stack sections may be uniquely identified
within a stack via the name
attribute
(introduced in Jan 2010). Prior to this, the section ID attribute was used in this way
(and would not be applied to the section header as a widget ID). For backwards
compatibility this is still supported: If section.name
is unspecified for a
section but section.ID
is set, the ID will be used as a default name
attribute for the section. For backwards compatibility we also disable the standard
behavior of having the section.ID
being applied to the generated section
header (thereby avoiding the page-level uniqueness requirement) by defaulting useGlobalSectionIDs
to false.
ID
- ID Default value is nullpublic void setAriaRole(java.lang.String ariaRole)
Accessibility
ariaRole
- public void setAriaState(java.lang.String stateName, java.lang.Object stateValue)
Accessibility
stateName
- stateValue
- public void setTitleHoverFormatter(TitleHoverFormatter formatter)
SectionHeader.titleHoverHTML(java.lang.String)
.