com.extjs.gxt.ui.client.widget.layout
Class ToolBarLayout
java.lang.Object
com.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.Layout
com.extjs.gxt.ui.client.widget.layout.ToolBarLayout
- All Implemented Interfaces:
- Observable
public class ToolBarLayout
- extends Layout
Methods inherited from class com.extjs.gxt.ui.client.widget.Layout |
applyMargins, applyPadding, callLayout, fly, fly, getExtraStyle, getLayoutData, getResizeDelay, getSideMargins, initTarget, isLayoutExecuted, isLayoutNeeded, isRenderHidden, isRunning, isValidParent, layout, layoutContainer, onAdd, onRemove, onResize, renderAll, renderComponent, setBounds, setExtraStyle, setLayoutData, setLayoutNeeded, setLayoutOnChange, setPosition, setRenderHidden, setResizeDelay, setSize |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
more
protected Button more
moreMenu
protected Menu moreMenu
ToolBarLayout
public ToolBarLayout()
getMoreButton
public Button getMoreButton()
- Returns the button used when the toolbar has overflow.
- Returns:
- the button
getNoItemsMenuText
public java.lang.String getNoItemsMenuText()
- Returns the no menu item text.
- Returns:
- the no menu item text
getSpacing
public int getSpacing()
- Returns the item spacing.
- Returns:
- the spacing
setContainer
public void setContainer(Container<?> ct)
- Description copied from class:
Layout
- Sets the layout's container.
- Overrides:
setContainer
in class Layout
- Parameters:
ct
- the container
setNoItemsMenuText
public void setNoItemsMenuText(java.lang.String noItemsMenuText)
- Sets the no menu items text (defaults to '
(None)
').
- Parameters:
noItemsMenuText
- the no menu items text
setSpacing
public void setSpacing(int spacing)
- Sets the amount of spacing between items (defaults to 0).
- Parameters:
spacing
- the spacing
addComponentToMenu
protected void addComponentToMenu(Menu menu,
Component c)
cleanup
protected void cleanup(El row)
clearMenu
protected void clearMenu()
fitToSize
protected void fitToSize(El t)
getComponentWidth
protected int getComponentWidth(Component c)
hideComponent
protected void hideComponent(Component c)
initMore
protected void initMore()
insertCell
protected com.google.gwt.user.client.Element insertCell(Component c,
El side,
int pos)
isHidden
protected boolean isHidden(Component c)
onComponentHide
protected void onComponentHide(Component component)
- Overrides:
onComponentHide
in class Layout
onComponentShow
protected void onComponentShow(Component component)
- Overrides:
onComponentShow
in class Layout
onLayout
protected void onLayout(Container<?> container,
El target)
- Overrides:
onLayout
in class Layout
unhideComponent
protected void unhideComponent(Component c)