com.extjs.gxt.ui.client.widget.layout
Class ToolBarLayout

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.Layout
          extended by com.extjs.gxt.ui.client.widget.layout.ToolBarLayout
All Implemented Interfaces:
Observable

public class ToolBarLayout
extends Layout


Field Summary
protected  Button more
           
protected  Menu moreMenu
           
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Layout
activeItem, componentStyleName, container, monitorResize, renderHidden, target, targetStyleName
 
Constructor Summary
ToolBarLayout()
           
 
Method Summary
protected  void addComponentToMenu(Menu menu, Component c)
           
protected  void cleanup(El row)
           
protected  void clearMenu()
           
protected  void fitToSize(El t)
           
protected  int getComponentWidth(Component c)
           
 Button getMoreButton()
          Returns the button used when the toolbar has overflow.
 java.lang.String getNoItemsMenuText()
          Returns the no menu item text.
 int getSpacing()
          Returns the item spacing.
protected  void hideComponent(Component c)
           
protected  void initMore()
           
protected  com.google.gwt.user.client.Element insertCell(Component c, El side, int pos)
           
protected  boolean isHidden(Component c)
           
protected  void onComponentHide(Component component)
           
protected  void onComponentShow(Component component)
           
protected  void onLayout(Container<?> container, El target)
           
 void setContainer(Container<?> ct)
          Sets the layout's container.
 void setNoItemsMenuText(java.lang.String noItemsMenuText)
          Sets the no menu items text (defaults to '
(None)
').
 void setSpacing(int spacing)
          Sets the amount of spacing between items (defaults to 0).
protected  void unhideComponent(Component c)
           
 
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
 

Field Detail

more

protected Button more

moreMenu

protected Menu moreMenu
Constructor Detail

ToolBarLayout

public ToolBarLayout()
Method Detail

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)