org.gwtiger.client.widget.panel
Class ButtonPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.CellPanel
                      extended by com.google.gwt.user.client.ui.HorizontalPanel
                          extended by org.gwtiger.client.widget.panel.ButtonPanel
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.HasAlignment, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVerticalAlignment, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.KeyboardListener, Validate

public class ButtonPanel
extends com.google.gwt.user.client.ui.HorizontalPanel
implements com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener, Validate


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant
 
Field Summary
 
Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
 
Constructor Summary
ButtonPanel()
           
 
Method Summary
 void addCancelButton()
           
 void addCancelButton(com.google.gwt.user.client.ui.AbstractImagePrototype image, java.lang.String label)
           
 void addCancelButton(java.lang.String label)
           
 void addClearButton()
           
 void addClearButton(com.google.gwt.user.client.ui.AbstractImagePrototype image, java.lang.String label)
           
 void addClearButton(java.lang.String label)
           
 void addDeleteButton()
           
 void addDeleteButton(com.google.gwt.user.client.ui.AbstractImagePrototype image, java.lang.String label)
           
 void addDeleteButton(java.lang.String label)
           
 void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
           
 void addNextButton()
           
 void addNextButton(java.lang.String label)
           
 void addPreviousButton()
           
 void addPreviousButton(java.lang.String label)
           
 void addSaveButton()
           
 void addSaveButton(com.google.gwt.user.client.ui.AbstractImagePrototype image, java.lang.String label)
           
 void addSaveButton(java.lang.String label)
           
 void clear()
           
static java.lang.String createHTML(com.google.gwt.user.client.ui.AbstractImagePrototype image, java.lang.String caption)
           
static java.lang.String createHTML(java.lang.String caption)
           
 com.google.gwt.user.client.ui.Button getCancelButton()
           
 com.google.gwt.user.client.ui.Button getClearButton()
           
 com.google.gwt.user.client.ui.Button getDeleteButton()
           
 com.google.gwt.user.client.ui.Button getNextButton()
           
 com.google.gwt.user.client.ui.Button getPreviousButton()
           
 com.google.gwt.user.client.ui.Button getSaveButton()
           
 void onClick(com.google.gwt.user.client.ui.Widget sender)
           
 void onKeyDown(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
           
 void onKeyPress(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
           
 void onKeyUp(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
           
 void setCallback(ButtonCallback cb)
           
 void setCallback(ButtonWizardCallback cb)
           
 void setCancelEnabled(boolean enable)
           
 void setClearEnabled(boolean enable)
           
 void setEnableSave(boolean enabled)
           
 void setNextEnabled(boolean enable)
           
 void setPrevEnabled(boolean enable)
           
 void setSaveEnabled(boolean enable)
           
 boolean validate()
           
 
Methods inherited from class com.google.gwt.user.client.ui.HorizontalPanel
add, getHorizontalAlignment, getVerticalAlignment, insert, remove, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from class com.google.gwt.user.client.ui.CellPanel
getSpacing, setBorderWidth, setCellHeight, setCellHorizontalAlignment, setCellVerticalAlignment, setCellWidth, setSpacing
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
getWidget, getWidgetCount, getWidgetIndex, iterator, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ButtonPanel

public ButtonPanel()
Method Detail

createHTML

public static java.lang.String createHTML(com.google.gwt.user.client.ui.AbstractImagePrototype image,
                                          java.lang.String caption)

createHTML

public static java.lang.String createHTML(java.lang.String caption)

addSaveButton

public void addSaveButton()

addSaveButton

public void addSaveButton(java.lang.String label)

addSaveButton

public void addSaveButton(com.google.gwt.user.client.ui.AbstractImagePrototype image,
                          java.lang.String label)

addClearButton

public void addClearButton()

addClearButton

public void addClearButton(java.lang.String label)

addClearButton

public void addClearButton(com.google.gwt.user.client.ui.AbstractImagePrototype image,
                           java.lang.String label)

addCancelButton

public void addCancelButton()

addCancelButton

public void addCancelButton(java.lang.String label)

addCancelButton

public void addCancelButton(com.google.gwt.user.client.ui.AbstractImagePrototype image,
                            java.lang.String label)

addDeleteButton

public void addDeleteButton()

addDeleteButton

public void addDeleteButton(java.lang.String label)

addDeleteButton

public void addDeleteButton(com.google.gwt.user.client.ui.AbstractImagePrototype image,
                            java.lang.String label)

addNextButton

public void addNextButton()

addNextButton

public void addNextButton(java.lang.String label)

addPreviousButton

public void addPreviousButton()

addPreviousButton

public void addPreviousButton(java.lang.String label)

getCancelButton

public com.google.gwt.user.client.ui.Button getCancelButton()

getClearButton

public com.google.gwt.user.client.ui.Button getClearButton()

getDeleteButton

public com.google.gwt.user.client.ui.Button getDeleteButton()

getSaveButton

public com.google.gwt.user.client.ui.Button getSaveButton()

getNextButton

public com.google.gwt.user.client.ui.Button getNextButton()

getPreviousButton

public com.google.gwt.user.client.ui.Button getPreviousButton()

setEnableSave

public void setEnableSave(boolean enabled)

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener

setCallback

public void setCallback(ButtonCallback cb)

setCallback

public void setCallback(ButtonWizardCallback cb)

clear

public void clear()
Specified by:
clear in interface com.google.gwt.user.client.ui.HasWidgets
Specified by:
clear in interface Validate
Overrides:
clear in class com.google.gwt.user.client.ui.Panel

validate

public boolean validate()
Specified by:
validate in interface Validate

setSaveEnabled

public void setSaveEnabled(boolean enable)

setNextEnabled

public void setNextEnabled(boolean enable)

setPrevEnabled

public void setPrevEnabled(boolean enable)

setCancelEnabled

public void setCancelEnabled(boolean enable)

setClearEnabled

public void setClearEnabled(boolean enable)

onKeyPress

public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
                       char keyCode,
                       int modifiers)
Specified by:
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener

onKeyUp

public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
                    char keyCode,
                    int modifiers)
Specified by:
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener

onKeyDown

public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
                      char keyCode,
                      int modifiers)
Specified by:
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener

addKeyboardListener

public void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)