|
||||||||||
| 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.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
org.exoplatform.gwtframework.ui.client.component.ToolbarItem
public class ToolbarItem
This class wraps the elements before placing them on Toolbar.
Created by The eXo Platform SAS .
| Nested Class Summary | |
|---|---|
protected static interface |
ToolbarItem.Style
Styles for HTML elemnts of toolbar component. |
| 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 |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel |
|---|
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ToolbarItem()
Creates new instance of this ToolbarItem |
|
ToolbarItem(com.google.gwt.user.client.ui.Widget item)
Create new instance of this ToolbarItem. |
|
ToolbarItem(com.google.gwt.user.client.ui.Widget item,
boolean rightDocked)
|
|
ToolbarItem(com.google.gwt.user.client.ui.Widget widget,
boolean rightDocked,
int topPadding)
|
|
ToolbarItem(com.google.gwt.user.client.ui.Widget item,
int topPadding)
Create new ToolbarItem instance. |
|
| Method Summary | |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget widget)
|
boolean |
isDelimiter()
Get is this element is toolbar delimiter. |
boolean |
isRightDocked()
Get docking of this ToolbarItem. |
void |
setDelimiter(boolean delimiter)
True shows this ToolbarItem as delimiter. |
void |
setPaddingRight(int padding)
Sets padding from the right. |
void |
setPaddingTop(int padding)
Sets padding from the top. |
void |
setRightDocked(boolean rightDocked)
Makes this ToolbarItem docked on right. |
| Methods inherited from class com.google.gwt.user.client.ui.FlowPanel |
|---|
clear, insert, insert |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, 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, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
|---|
add |
| Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
|---|
getWidgetIndex |
| Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
getWidget, getWidgetCount, getWidgetIndex, remove |
| Constructor Detail |
|---|
public ToolbarItem()
ToolbarItem
public ToolbarItem(com.google.gwt.user.client.ui.Widget item)
ToolbarItem.
item - element to be added to the toolbar.
public ToolbarItem(com.google.gwt.user.client.ui.Widget item,
int topPadding)
item - element to be added to the toolbar.topPadding -
public ToolbarItem(com.google.gwt.user.client.ui.Widget item,
boolean rightDocked)
item - rightDocked -
public ToolbarItem(com.google.gwt.user.client.ui.Widget widget,
boolean rightDocked,
int topPadding)
widget - rightDocked - margin - | Method Detail |
|---|
public boolean isRightDocked()
ToolbarItem.
false - element is left side,
true - element is right side.
- Returns:
- docking of the item in the toolbar
public void setRightDocked(boolean rightDocked)
ToolbarItem docked on right.
rightDocked - true makes this ToolbarItem docked on right, false otherwisepublic boolean isDelimiter()
public void setDelimiter(boolean delimiter)
ToolbarItem as delimiter.
delimiter - public void setPaddingTop(int padding)
padding - public void setPaddingRight(int padding)
padding - public void add(com.google.gwt.user.client.ui.Widget widget)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in interface com.google.gwt.user.client.ui.InsertPaneladd in class com.google.gwt.user.client.ui.FlowPanel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||