|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<Button>
com.extjs.gxt.ui.client.widget.button.ButtonBar
public class ButtonBar
A horizontal row of buttons.
doit field to false to cancel the action.doit field to false to cancel the action.
| 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.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ButtonBar()
Creates a left aligned button bar. |
|
| Method Summary | |
|---|---|
boolean |
add(Button button)
Adds a button to the bar. |
Style.HorizontalAlignment |
getButtonAlign()
Returns the bar's horizontal alignment. |
Button |
getButtonById(java.lang.String buttonId)
Returns the button with the specified button id. |
Button |
getButtonPressed()
Returns the last button that was selected. |
int |
getButtonWidth()
|
int |
getCellSpacing()
Returns the cell spacing. |
boolean |
insert(Button button,
int index)
Inserts a button at the specified location. |
boolean |
remove(Button button)
Removes a button from the bar. |
void |
setButtonAlign(Style.HorizontalAlignment buttonAlign)
Sets the bar's horizontal alignment. |
void |
setButtonWidth(int buttonWidth)
|
void |
setCellSpacing(int cellSpacing)
Sets the cell spacing (pre-render). |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
|---|
disable, enable, findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, iterator, removeAll, scrollIntoView |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShim, setSize, setSize, setWidth, setWidth |
| Methods inherited from class com.extjs.gxt.ui.client.widget.Component |
|---|
addListener, addPlugin, addStyleName, addWidgetListener, disableEvents, disableTextSelection, el, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, isDisabledEvents, isEnabled, isRendered, isVisible, onBrowserEvent, onComponentEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, show, sinkEvents, toString |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ButtonBar()
| Method Detail |
|---|
public boolean add(Button button)
button - the button to be added
public Style.HorizontalAlignment getButtonAlign()
public Button getButtonById(java.lang.String buttonId)
buttonId - the button id
null if no matchpublic Button getButtonPressed()
public int getButtonWidth()
public int getCellSpacing()
public boolean insert(Button button,
int index)
button - the button to be insertedindex - the insert location
public boolean remove(Button button)
button - the button to be removed
true if the item was removedpublic void setButtonAlign(Style.HorizontalAlignment buttonAlign)
buttonAlign - the alignmentpublic void setButtonWidth(int buttonWidth)
buttonWidth - the buttonWidth to setpublic void setCellSpacing(int cellSpacing)
cellSpacing - the cell spacing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||