|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.Container
com.gwtext.client.widgets.Panel
com.gwtext.client.widgets.form.FieldSet
public class FieldSet
Creates a fieldset container for layout and rendering of fields in a Form
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.gwtext.client.widgets.Component |
---|
config, id |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
FieldSet()
Creates a new FieldSet. |
|
FieldSet(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
FieldSet(java.lang.String title)
|
|
FieldSet(java.lang.String title,
int labelWidth)
|
Method Summary | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject jsObj)
|
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
void |
removeAll()
Overwriting this method so that the labels are taken care of. |
void |
removeAll(boolean autoDestroy)
Overwriting this method so that the labels are taken care of. |
void |
setBaseCls(java.lang.String baseCls)
The base CSS class applied to the fieldset (defaults to 'x-fieldset'). |
void |
setCheckboxName(java.lang.String checkboxName)
The name to assign to the fieldset's checkbox if checkboxToggle = true (defaults to '[checkbox id]-checkbox'). |
void |
setCheckboxToggle(boolean checkboxToggle)
True to render a checkbox into the fieldset frame just in front of the legend (defaults to false). |
void |
setItemCls(java.lang.String itemCls)
A css class to apply to the x-form-item of fields. |
void |
setLabelWidth(int labelWidth)
The width of labels. |
void |
setLayout(ContainerLayout layout)
The Container layout to use inside the fieldset (defaults to FormLayout ). |
void |
setLegend(java.lang.String legend)
The fieldset legend text. |
Methods inherited from class com.gwtext.client.widgets.Container |
---|
add, add, add, add, addListener, bubble, cascade, clear, doLayout, doLayout, findBy, findByID, findByType, getActiveItem, getActiveItemID, getAutoDestroy, getBufferResize, getComponent, getComponent, getComponents, getHideBorders, getItems, getLayout, getMonitorResize, insert, iterator, remove, remove, remove, remove, setActiveItem, setActiveItemID, setAutoDestroy, setBufferResize, setDefaults, setHideBorders, setMonitorResize |
Methods inherited from class com.gwtext.client.widgets.BoxComponent |
---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, setWidth, syncSize, updateBox |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldSet()
public FieldSet(java.lang.String title)
public FieldSet(java.lang.String title, int labelWidth)
public FieldSet(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype
in class Panel
public java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType
in class Panel
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject jsObj)
create
in class Panel
public void setBaseCls(java.lang.String baseCls) throws java.lang.IllegalStateException
setBaseCls
in class Panel
baseCls
- the base CSS class applied to the fieldset (defaults to 'x-fieldset').
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setCheckboxName(java.lang.String checkboxName) throws java.lang.IllegalStateException
checkboxName
- the name to assign to the fieldset's checkbox if checkboxToggle = true (defaults to '[checkbox id]-checkbox').
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setCheckboxToggle(boolean checkboxToggle) throws java.lang.IllegalStateException
checkboxToggle
- true to render a checkbox into the fieldset frame just in front of the legend (defaults to false).
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setItemCls(java.lang.String itemCls) throws java.lang.IllegalStateException
itemCls
- a css class to apply to the x-form-item of fields. This property cascades to child containers.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setLabelWidth(int labelWidth) throws java.lang.IllegalStateException
labelWidth
- The width of labels. This property cascades to child containers.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setLayout(ContainerLayout layout) throws java.lang.IllegalStateException
Container
layout to use inside the fieldset (defaults to FormLayout
).
setLayout
in class Container
layout
- the container layout to use inside the fieldset
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setLegend(java.lang.String legend) throws java.lang.IllegalStateException
legend
- the fieldset legend text.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void removeAll()
removeAll
in class Container
public void removeAll(boolean autoDestroy)
removeAll
in class Container
autoDestroy
- true to automatically invoke the component's destroy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |