com.extjs.gxt.ui.client.widget.button
クラス ButtonBar

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.Container<Button>
                      extended by com.extjs.gxt.ui.client.widget.button.ButtonBar
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener
Direct Known Subclasses:
StatusButtonBar

public class ButtonBar
extends Container<Button>

A horizontal row of buttons.

Events:
Select : ButtonBarEvent(buttonBar, button)
Fires when a button is selected.
BeforeAdd : ButtonEvent(buttonBar, item, index)
Fires before a widget is added or inserted. Listeners can set the doit field to false to cancel the action.
BeforeRemove : ButtonEvent(buttonBar, button)
Fires before a widget is removed. Listeners can set the doit field to false to cancel the action.
Add : ButtonEvent(buttonBar, button, index)
Fires after a widget has been added or inserted.
Remove : ButtonEvent(buttonBar, button)
Fires after a widget has been removed.
CSS:
.my-btn-bar (the button bar itself)


入れ子クラス 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields)
DEBUG_ID_PREFIX
 
コンストラクタ 概要
ButtonBar()
          Creates a left aligned button bar.
 
メソッド 概要
 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()
           
 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)
           
 
クラス com.extjs.gxt.ui.client.widget.Container から継承されたメソッド
findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, iterator, removeAll, scrollIntoView
 
クラス 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
 
クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド
addListener, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hide, hideToolTip, 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, toString
 
クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド
getParent, isAttached
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

ButtonBar

public ButtonBar()
Creates a left aligned button bar.

メソッド 詳細

add

public boolean add(Button button)
Adds a button to the bar. Fires the BeforeAdd event before inserting, then fires the Add event after the widget has been inserted.

パラメータ:
button - the button to be added
戻り値:
true if the button was added

getButtonAlign

public Style.HorizontalAlignment getButtonAlign()
Returns the bar's horizontal alignment.

戻り値:
the buttonAlign the alignment

getButtonById

public Button getButtonById(java.lang.String buttonId)
Returns the button with the specified button id.

パラメータ:
buttonId - the button id
戻り値:
the button or null if no match

getButtonPressed

public Button getButtonPressed()
Returns the last button that was selected.

戻り値:
the last button or null

getButtonWidth

public int getButtonWidth()
戻り値:
the buttonWidth

insert

public boolean insert(Button button,
                      int index)
Inserts a button at the specified location. Fires the BeforeAdd event before inserting, then fires the Add event after the widget has been inserted.

パラメータ:
button - the button to be inserted
index - the insert location
戻り値:
true if the button was added

remove

public boolean remove(Button button)
Removes a button from the bar.

パラメータ:
button - the button to be removed
戻り値:
true if the item was removed

setButtonAlign

public void setButtonAlign(Style.HorizontalAlignment buttonAlign)
Sets the bar's horizontal alignment.

パラメータ:
buttonAlign - the alignment

setButtonWidth

public void setButtonWidth(int buttonWidth)
パラメータ:
buttonWidth - the buttonWidth to set