|
|||||||||
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.form.fields.FormItem
com.smartgwt.client.widgets.form.fields.CanvasItem
com.smartgwt.client.widgets.form.fields.SectionItem
public class SectionItem
Header item for a collapsable section in a DynamicForm
. Each
SectionItem
is associated with a number of other item
s in the form, which will be shown or
hidden as a group when the section is expanded or collapsed. Clicking on a SectionItem
will expand or
collapse the section.
To make a form where only one section is expanded at a time, set sectionVisibilityMode
to "mutex".
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
SectionItem()
|
|
SectionItem(JavaScriptObject jsObj)
|
|
SectionItem(String name)
|
|
SectionItem(String name,
String title)
|
Method Summary | |
---|---|
void |
collapseSection()
Collapse a sectionItem, and hide all the items within the section (not including the header). |
void |
expandSection()
Expands a section, showing all the items contained within the section. |
Boolean |
getCanCollapse()
Whether this section header can be collapsed. |
static SectionItem |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getSectionExpanded()
Whether this form section should be initially collapsed. |
String |
getSectionHeaderClass()
Name of the Canvas subclass to use as a header that labels the section and allows showing and hiding. |
Boolean |
isExpanded()
Returns a boolean indicating whether this SectionItem is expanded. |
void |
setCanCollapse(Boolean canCollapse)
Whether this section header can be collapsed. |
void |
setItemIds(String... itemIds)
IDs of the items that should be considered a member of this section. |
void |
setSectionExpanded(Boolean sectionExpanded)
Whether this form section should be initially collapsed. |
void |
setSectionHeaderClass(String sectionHeaderClass)
Name of the Canvas subclass to use as a header that labels the section and allows showing and hiding. |
Methods inherited from class com.smartgwt.client.widgets.form.fields.CanvasItem |
---|
getCanvas, setCanvas |
Methods inherited from class com.smartgwt.client.core.RefDataClass |
---|
getRef, getRef |
Methods inherited from class com.smartgwt.client.core.DataClass |
---|
doAddHandler, fireEvent, getAttributeAsIntArray, getAttributeAsMap, getAttributeAsObject, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
Methods inherited from class com.smartgwt.client.core.JsObject |
---|
setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
---|
fireEvent |
Constructor Detail |
---|
public SectionItem()
public SectionItem(JavaScriptObject jsObj)
public SectionItem(String name)
public SectionItem(String name, String title)
Method Detail |
---|
public static SectionItem getOrCreateRef(JavaScriptObject jsObj)
public void setSectionExpanded(Boolean sectionExpanded)
expandSection()
and collapseSection()
.
sectionExpanded
- sectionExpanded Default value is truepublic Boolean getSectionExpanded()
expandSection()
and collapseSection()
.
public void setSectionHeaderClass(String sectionHeaderClass)
Note : This is an advanced setting
sectionHeaderClass
- sectionHeaderClass Default value is "SectionHeader"public String getSectionHeaderClass()
public void setCanCollapse(Boolean canCollapse)
canCollapse
- canCollapse Default value is truepublic Boolean getCanCollapse()
public Boolean isExpanded()
public void expandSection()
public void collapseSection()
public void setItemIds(String... itemIds)
itemIds
- itemIds Default value is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |