org.kuali.student.common.ui.client.widgets.buttongroups
Class ButtonGroup<T extends ButtonEnumerations.ButtonEnum>

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.Composite
              extended by org.kuali.student.common.ui.client.widgets.buttongroups.ButtonGroup<T>
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener
Direct Known Subclasses:
AcknowledgeCancelGroup, ConfirmApprovalCancelGroup, ConfirmCancelGroup, CreateCancelGroup, LOCategoryBuilder.CreateLoCancelGroup, OkGroup, RejectCancelGroup, SearchCancelGroup, SendCancelGroup, YesNoGroup

public abstract class ButtonGroup<T extends ButtonEnumerations.ButtonEnum>
extends com.google.gwt.user.client.ui.Composite


Nested Class Summary
 
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
 
Field Summary
protected  Map<T,KSButton> buttonMap
           
private  List<Callback<T>> callbacks
           
protected  ButtonLayout layout
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ButtonGroup()
           
 
Method Summary
 void addCallback(Callback<T> callback)
           
 KSButton getButton(T key)
           
 List<Callback<T>> getCallbacks()
           
protected  void sendCallbacks(T type)
           
 void setButtonText(T key, String text)
           
 void setContent(com.google.gwt.user.client.ui.Widget content)
          This method is optional, the button panel can be contained inside of a parent panel which will limit it's maximum size.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

callbacks

private List<Callback<T extends ButtonEnumerations.ButtonEnum>> callbacks

buttonMap

protected Map<T extends ButtonEnumerations.ButtonEnum,KSButton> buttonMap

layout

protected ButtonLayout layout
Constructor Detail

ButtonGroup

public ButtonGroup()
Method Detail

addCallback

public void addCallback(Callback<T> callback)

getCallbacks

public List<Callback<T>> getCallbacks()

sendCallbacks

protected void sendCallbacks(T type)

setButtonText

public void setButtonText(T key,
                          String text)

getButton

public KSButton getButton(T key)

setContent

public void setContent(com.google.gwt.user.client.ui.Widget content)
This method is optional, the button panel can be contained inside of a parent panel which will limit it's maximum size. This method provides an alternative, the button panel will "wrap" the content and become the proper size based on maximum size of the content.

Parameters:
content - - the content the button panel will align itself next to


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.