public class GridToolbar extends com.google.gwt.user.client.ui.FlowPanel implements AdvancedWidget
You can use it not only for the grid. Other widgets can implement the
GridToolbarListener
interface also.
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Constructor and Description |
---|
GridToolbar()
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addButton(String image,
com.google.gwt.event.dom.client.ClickHandler handler)
This method adds an image button into the toolbar and doesn't specify hint text.
|
void |
addButton(String image,
String hint,
com.google.gwt.event.dom.client.ClickHandler handler)
This method adds an image button into the toolbar.
|
void |
display()
Use this method to displayActive the toolbar.
|
protected GridPanel |
getGridPanel()
Getter for property 'gridPanel'.
|
void |
insertButton(int before,
String image,
com.google.gwt.event.dom.client.ClickHandler handler)
Creates and inserts a new button into the specified position.
|
void |
insertButton(int before,
String image,
String hint,
com.google.gwt.event.dom.client.ClickHandler handler)
Creates and inserts a new button into the specified position.
|
boolean |
isAddButtonVisible()
Getter for property 'addButtonVisible'.
|
boolean |
isClearButtonVisible()
Getter for property 'clearButtonVisible'.
|
boolean |
isMoveLeftButtonVisible()
Getter for property 'moveLeftButtonVisible'.
|
boolean |
isMoveRightButtonVisible()
Getter for property 'moveRightButtonVisible'.
|
boolean |
isRemoveButtonVisible()
Getter for property 'removeButtonVisible'.
|
boolean |
isSaveButtonVisible()
Getter for property 'saveButtonVisible'.
|
void |
removeButton(int index)
This method removes a button from the toolbar.
|
void |
setAddButtonVisible(boolean addButtonVisible)
Setter for property 'addButtonVisible'.
|
void |
setButtonEnabled(int index,
boolean enabled)
Sets a button enabled or disabled.
|
void |
setButtonVisible(int index,
boolean visible)
Sets a button visible or invisible.
|
void |
setClearButtonVisible(boolean clearButtonVisible)
Setter for property 'clearButtonVisible'.
|
protected void |
setGridPanel(GridPanel gridPanel)
Setter for property 'gridPanel'.
|
void |
setMoveLeftButtonVisible(boolean moveLeftButtonVisible)
Setter for property 'moveLeftButtonVisible'.
|
void |
setMoveRightButtonVisible(boolean moveRightButtonVisible)
Setter for property 'moveRightButtonVisible'.
|
void |
setRemoveButtonVisible(boolean removeButtonVisible)
Setter for property 'removeButtonVisible'.
|
void |
setSaveButtonVisible(boolean saveButtonVisible)
Setter for property 'saveButtonVisible'.
|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void display()
display
in interface AdvancedWidget
public boolean isAddButtonVisible()
public void setAddButtonVisible(boolean addButtonVisible)
addButtonVisible
- Value to set for property 'addButtonVisible'.public boolean isRemoveButtonVisible()
public void setRemoveButtonVisible(boolean removeButtonVisible)
removeButtonVisible
- Value to set for property 'removeButtonVisible'.public boolean isSaveButtonVisible()
public void setSaveButtonVisible(boolean saveButtonVisible)
saveButtonVisible
- Value to set for property 'saveButtonVisible'.public boolean isClearButtonVisible()
public void setClearButtonVisible(boolean clearButtonVisible)
clearButtonVisible
- Value to set for property 'clearButtonVisible'.public boolean isMoveLeftButtonVisible()
public void setMoveLeftButtonVisible(boolean moveLeftButtonVisible)
moveLeftButtonVisible
- Value to set for property 'moveLeftButtonVisible'.public boolean isMoveRightButtonVisible()
public void setMoveRightButtonVisible(boolean moveRightButtonVisible)
moveRightButtonVisible
- Value to set for property 'moveRightButtonVisible'.public void addButton(String image, com.google.gwt.event.dom.client.ClickHandler handler)
image
- is an image of the button.handler
- is a handler to be invoked on button click.public void addButton(String image, String hint, com.google.gwt.event.dom.client.ClickHandler handler)
image
- is an image of the button.hint
- is a popup hint of the button.handler
- is a handler to be invoked on button click.public void removeButton(int index)
index
- is an index of the button.public void insertButton(int before, String image, com.google.gwt.event.dom.client.ClickHandler handler)
before
- is a position of the new button.image
- is an image URL.handler
- is a handler for this button to be invoked on click.public void insertButton(int before, String image, String hint, com.google.gwt.event.dom.client.ClickHandler handler)
before
- is a position of the new button.image
- is an image URL.hint
- is a button hint value.handler
- is a handler for this button to be invoked on click.public void setButtonVisible(int index, boolean visible)
index
- is an index of the button in the toolbar.visible
- is a visibility option.public void setButtonEnabled(int index, boolean enabled)
index
- is an index of the button in the toolbar.enabled
- is a button enabled option.protected GridPanel getGridPanel()
protected void setGridPanel(GridPanel gridPanel)
gridPanel
- Value to set for property 'gridPanel'.Copyright © 2008–2013. All rights reserved.