|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.widgets.layout.SectionStackSection
public class SectionStackSection
Section descriptor used by a SectionStack to describe a section of items which are shown or hidden together, and their associated header.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class com.smartgwt.client.core.JsObject |
|---|
jsObj |
| Constructor Summary | |
|---|---|
SectionStackSection()
|
|
SectionStackSection(JavaScriptObject jsObj)
|
|
SectionStackSection(String title)
|
|
| Method Summary | |
|---|---|
void |
addItem(Canvas item)
|
Boolean |
getCanTabToHeader()
If true, the header for this Section will be included in the page's tab order for accessibility. |
Canvas[] |
getControls()
|
String |
getID()
Optional ID for the section. |
Canvas[] |
getItems()
Return the items in this SectionStackSection |
String |
getName()
Identifier for the section. |
static SectionStackSection |
getOrCreateRef(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()
|
String |
getTitle()
Title to show for the section |
void |
setCanCollapse(Boolean canCollapse)
This attribute controls whether or not the expand/collapse UI control is shown on the header of this section. |
void |
setCanDropBefore(Boolean canDropBefore)
When explicitly set to false, disallows drop before this member in the Layout. |
void |
setCanReorder(Boolean canReorder)
If set to false, then this sectionHeader will not be able to be dragged to perform a drag reorder, if canReorderSections is true. |
void |
setCanTabToHeader(Boolean canTabToHeader)
If true, the header for this Section will be included in the page's tab order for accessibility. |
void |
setControls(Canvas... controls)
Custom controls to be shown on top of this section header. |
void |
setExpanded(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(Boolean hidden)
Sections default to the visible state. |
void |
setID(String ID)
Optional ID for the section. |
void |
setItems(Canvas... items)
List of Canvases that constitute the section. |
void |
setName(String name)
Identifier for the section. |
void |
setResizeable(Boolean resizeable)
If set to false, then the items in this section will not be resized by sectionHeader repositioning. |
void |
setShowHeader(Boolean showHeader)
If true, a header will be shown for this section. |
void |
setTitle(String title)
Title to show for the section |
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.JsObject |
|---|
isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SectionStack stack
| Constructor Detail |
|---|
public SectionStackSection()
public SectionStackSection(JavaScriptObject jsObj)
public SectionStackSection(String title)
| Method Detail |
|---|
public static SectionStackSection getOrCreateRef(JavaScriptObject jsObj)
public void setCanCollapse(Boolean canCollapse)
canCollapse - canCollapse Default value is truepublic void setCanDropBefore(Boolean canDropBefore)
canDropBefore - canDropBefore Default value is nullLayout,
LayoutMember overview and related methodspublic void setCanReorder(Boolean canReorder)
canReorderSections is true. You can also disable
dropping other sections before this one by setting canDropBefore to false.
canReorder - canReorder Default value is nullpublic void setCanTabToHeader(Boolean canTabToHeader)
SectionStack level via canTabToHeaders. See Accessibility.
canTabToHeader - canTabToHeader Default value is nullpublic Boolean getCanTabToHeader()
SectionStack level via canTabToHeaders. See Accessibility.
public void setID(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 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 setName(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 - name Default value is nullpublic 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(Boolean resizeable)
resizeable - resizeable Default value is nullpublic void setShowHeader(Boolean showHeader)
showHeader - showHeader Default value is truepublic void setTitle(String title)
title - title Default value is nullpublic String getTitle()
public void setExpanded(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(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 void setControls(Canvas... controls)
controls - public Canvas[] getControls()
public SectionStack getSectionStack()
public SectionHeader getSectionHeader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||