org.cafesip.gwtcomp.client.ui
Class ToolbarPanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.AbsolutePanel
org.cafesip.gwtcomp.client.ui.ToolbarPanel
- All Implemented Interfaces:
- HasHandlers, EventListener, HasWidgets, IndexedPanel, InsertPanel, Iterable<Widget>
public class ToolbarPanel
- extends AbsolutePanel
A toolbar panel is container for one or more
Toolbar objects. Many applications
require a toolbar panel (normally below the menu bar) where multiple toolbars
are placed. There is a vertical splitter separating the toolbars which can be
dragged to resize the toolbars inside the panel. Note that the toolbar panel
can be placed anywhere in the screen, not just the top.
CSS Style Rules:
- .gwtcomp-ToolbarPanel { } - style for the panel itself
- .gwtcomp-ToolbarPanel-Splitter { } - style for any splitter
Screen-Shots:
- Author:
- Amit Chatterjee
|
Constructor Summary |
ToolbarPanel()
A constructor for this class. |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
ToolbarPanel
public ToolbarPanel()
- A constructor for this class.
addToolbar
public void addToolbar(Toolbar bar)
- Add a toolbar to the panel. The toolbars are displayed in the order they
are added.
- Parameters:
bar - toolbar widget
onBrowserEvent
public void onBrowserEvent(Event event)
- Specified by:
onBrowserEvent in interface EventListener- Overrides:
onBrowserEvent in class Widget
redraw
public void redraw()
- Redraw the panel. Sometimes when the size of the child toolbar changes,
it is necessary to draw the panel.
onLoad
protected void onLoad()
- Overrides:
onLoad in class Panel
Copyright © 2010 Cafesip.org. All Rights Reserved.