|
|||||||||
| 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.Toolbar
public class Toolbar
Basic Toolbar class.
| 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 | |
|---|---|
Toolbar()
Create a new Toolbar. |
|
Toolbar(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
void |
addButton(ToolbarButton button)
Adds a button to the toolbar. |
void |
addButton(ToolbarMenuButton button)
Adds a toolbar menu button. |
void |
addElement(com.google.gwt.user.client.Element element)
Adds any standard element to the toolbar. |
void |
addField(Field field)
Adds a dynamically rendered Field (TextField, ComboBox, etc). |
void |
addFill()
Adds a fill element that forces subsequent additions to the right side of the toolbar. |
void |
addItem(ToolbarItem item)
Adds any ToolbarItem or subclass. |
void |
addSeparator()
Adds a separator. |
void |
addSpacer()
Adds a spacer element. |
void |
addText(java.lang.String text)
Adds text to the toolbar. |
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
protected com.google.gwt.core.client.JavaScriptObject |
getConfigPrototype()
|
java.lang.String |
getXType()
Gets the xtype for this component as registered with ComponentMgr. |
| 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 Toolbar()
public Toolbar(com.google.gwt.core.client.JavaScriptObject jsObj)
| Method Detail |
|---|
protected com.google.gwt.core.client.JavaScriptObject getConfigPrototype()
getConfigPrototype in class BoxComponentpublic java.lang.String getXType()
Component
TextField field = new TextField();
field.getXType() returns "textfield"
getXType in class BoxComponentprotected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create in class BoxComponentpublic void addButton(ToolbarButton button)
button - the buttonpublic void addButton(ToolbarMenuButton button)
button - the button to addpublic void addElement(com.google.gwt.user.client.Element element)
element - the element to addpublic void addField(Field field)
Field (TextField, ComboBox, etc). Note: the field should not have been rendered yet.
field - the field to addpublic void addFill()
public void addItem(ToolbarItem item)
ToolbarItem or subclass.
item - the item to addpublic void addSeparator()
public void addSpacer()
public void addText(java.lang.String text)
text - the text
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||