|
|||||||||
| 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 collapsible section in a DynamicForm. Each
SectionItem is associated with a number of other items 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".
DynamicForm.getSectionVisibilityMode()| 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. |
Boolean |
getCanTabToHeader()
If true, the header for this Section will be included in the page's tab order for accessibility. |
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 |
setCanTabToHeader(Boolean canTabToHeader)
If true, the header for this Section will be included in the page's tab order for accessibility. |
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 |
|---|
addShowValueHandler, canEditCriterion, createCanvas, getApplyPromptToCanvas, getCanvas, getCriterion, getEditCriteriaInInnerForm, getOverflow, getPrompt, getShouldSaveValue, hasAdvancedCriteria, setApplyPromptToCanvas, setCanvas, setCriterion, setEditCriteriaInInnerForm, setOverflow, setPrompt, setShouldSaveValue, setupCanvasConstructor, storeValue, storeValue, storeValue |
| Methods inherited from class com.smartgwt.client.core.RefDataClass |
|---|
getRef, getRef |
| Methods inherited from class com.smartgwt.client.core.DataClass |
|---|
doAddHandler, fireEvent, getAttributeAsDoubleArray, getAttributeAsIntArray, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsStringArray, getAttributes, getHandlerCount, getJsObj, setAttribute, setAttribute, setAttribute, 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 setCanCollapse(Boolean canCollapse)
canCollapse - canCollapse Default value is truepublic Boolean getCanCollapse()
public void setCanTabToHeader(Boolean canTabToHeader)
DynamicForm level via canTabToSectionHeaders. See Accessibility.
canTabToHeader - canTabToHeader Default value is nullpublic Boolean getCanTabToHeader()
DynamicForm level via canTabToSectionHeaders. See Accessibility.
public void setSectionExpanded(Boolean sectionExpanded)
SectionItem.expandSection and SectionItem.collapseSection.
sectionExpanded - sectionExpanded Default value is truepublic Boolean getSectionExpanded()
SectionItem.expandSection and SectionItem.collapseSection.
public void setSectionHeaderClass(String sectionHeaderClass)
Note : This is an advanced setting
sectionHeaderClass - sectionHeaderClass Default value is "SectionHeader"public String getSectionHeaderClass()
public void collapseSection()
public void expandSection()
public Boolean isExpanded()
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 | ||||||||