|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.Layout
com.extjs.gxt.ui.client.widget.layout.AnchorLayout
com.extjs.gxt.ui.client.widget.layout.FormLayout
public class FormLayout
Layout for form fields and their labels. FormLayout will only render Field subclasses. All other components will be ignored.
To add a component that is not a Field subclass, seeAdapterField. To
add plain text see LabelField.
| Constructor Summary | |
|---|---|
FormLayout()
Creates a new form layout. |
|
FormLayout(FormPanel.LabelAlign labelAlign)
Creates a new form layout. |
|
| Method Summary | |
|---|---|
int |
getDefaultWidth()
Returns the default field width. |
boolean |
getHideLabels()
Returns true if labels are being hidden. |
FormPanel.LabelAlign |
getLabelAlign()
Returns the label alignment. |
int |
getLabelPad()
Returns the label pad. |
java.lang.String |
getLabelSeparator()
Returns the label separator. |
int |
getLabelWidth()
Returns the label width. |
void |
setContainer(Container ct)
Sets the layout's container. |
void |
setDefaultWidth(int defaultWidth)
Sets the default width for fields (defaults to 200). |
void |
setHideLabels(boolean hideLabels)
True to hide field labels by default (defaults to false). |
void |
setLabelAlign(FormPanel.LabelAlign labelAlign)
Sets the label alignment. |
void |
setLabelPad(int labelPad)
The default padding in pixels for field labels (defaults to 0). |
void |
setLabelSeparator(java.lang.String labelSeparator)
Sets the label separator (defaults to ':'). |
void |
setLabelWidth(int labelWidth)
Sets the default width in pixels of field labels (defaults to 100). |
| Methods inherited from class com.extjs.gxt.ui.client.widget.layout.AnchorLayout |
|---|
getAnchorSize, setAnchorSize |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Layout |
|---|
getExtraStyle, getResizeDelay, isRenderHidden, layout, setExtraStyle, setRenderHidden, setResizeDelay |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormLayout()
public FormLayout(FormPanel.LabelAlign labelAlign)
labelAlign - the label alignment| Method Detail |
|---|
public int getDefaultWidth()
public boolean getHideLabels()
public FormPanel.LabelAlign getLabelAlign()
public int getLabelPad()
public java.lang.String getLabelSeparator()
public int getLabelWidth()
public void setContainer(Container ct)
Layout
setContainer in class Layoutct - the containerpublic void setDefaultWidth(int defaultWidth)
defaultWidth - the default widthpublic void setHideLabels(boolean hideLabels)
hideLabels - true to hide labelspublic void setLabelAlign(FormPanel.LabelAlign labelAlign)
labelAlign - the label alignpublic void setLabelPad(int labelPad)
labelPad - the label padpublic void setLabelSeparator(java.lang.String labelSeparator)
labelSeparator - the label separatorpublic void setLabelWidth(int labelWidth)
labelWidth - the label width
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||