org.kuali.student.common.ui.client.configurable.mvc.multiplicity
Class MultiplicityGroup.ConditionChoices

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.list.KSSelectItemWidgetAbstract
                  extended by org.kuali.student.common.ui.client.widgets.list.KSRadioButtonList
                      extended by org.kuali.student.common.ui.client.configurable.mvc.multiplicity.MultiplicityGroup.ConditionChoices
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasBlurHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasName, HasWidgetReadyCallback, HasSelectionChangeHandlers
Enclosing class:
MultiplicityGroup

public class MultiplicityGroup.ConditionChoices
extends KSRadioButtonList


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
private  KSRadioButtonListImpl selectItemWidget
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MultiplicityGroup.ConditionChoices(List<SwapCompositeCondition> conditions)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler)
          Used to had a selection change handler.
 void addWidgetReadyCallback(Callback<com.google.gwt.user.client.ui.Widget> callback)
          This method can be used to register a callback to be executed when a widget has been initialized.
 void clear()
          This method clears the current selection
 void deSelectItem(String id)
          Remove selection for item represented by id.
 ListItems getListItems()
           
 String getName()
           
 List<String> getSelectedItems()
          List of items that have been selected.
 boolean isEnabled()
           
 boolean isInitialized()
          This method can be used to query if a widget has been initialized.
 boolean isMultipleSelect()
          This method should if implemented if list supports multiple select
 void onLoad()
          This overridden method is not used
 void redraw()
           
 void selectItem(String id)
          Select the item in list represented by the id.
 void setColumnSize(int cols)
          Use to set number of columns to use when displaying list
 void setEnabled(boolean b)
           
 void setIgnoreMultipleAttributes(boolean ignoreMultiple)
          By default if the list items used by the checkbox has multiple attributes, the checkbox generated will display all attributes as columns.
 void setInitialized(boolean initialized)
          This method sets an initialized state of the widget
 void setListItems(ListItems listItems)
           
 void setMultipleSelect(boolean isMultipleSelect)
          This method should be implemented if list supports setting of multiple select.
 void setName(String name)
           
 
Methods inherited from class org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract
fireChangeEvent, getSelectedItem
 
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, 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
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

selectItemWidget

private KSRadioButtonListImpl selectItemWidget
Constructor Detail

MultiplicityGroup.ConditionChoices

public MultiplicityGroup.ConditionChoices(List<SwapCompositeCondition> conditions)
Method Detail

deSelectItem

public void deSelectItem(String id)
Description copied from class: KSSelectItemWidgetAbstract
Remove selection for item represented by id.

Overrides:
deSelectItem in class KSRadioButtonList
See Also:
KSSelectItemWidgetAbstract.deSelectItem(java.lang.String)

getSelectedItems

public List<String> getSelectedItems()
Description copied from class: KSSelectItemWidgetAbstract
List of items that have been selected.

Overrides:
getSelectedItems in class KSRadioButtonList
Returns:
See Also:
KSSelectItemWidgetAbstract.getSelectedItems()

selectItem

public void selectItem(String id)
Description copied from class: KSSelectItemWidgetAbstract
Select the item in list represented by the id. For multi-select list any existing selection should remain selected.

Overrides:
selectItem in class KSRadioButtonList
See Also:
KSSelectItemWidgetAbstract.selectItem(java.lang.String)

setListItems

public void setListItems(ListItems listItems)
Overrides:
setListItems in class KSRadioButtonList

setColumnSize

public void setColumnSize(int cols)
Use to set number of columns to use when displaying list

Overrides:
setColumnSize in class KSRadioButtonList

setMultipleSelect

public void setMultipleSelect(boolean isMultipleSelect)
Description copied from class: KSSelectItemWidgetAbstract
This method should be implemented if list supports setting of multiple select.

Overrides:
setMultipleSelect in class KSRadioButtonList

onLoad

public void onLoad()
This overridden method is not used

Overrides:
onLoad in class KSRadioButtonList
See Also:
KSSelectItemWidgetAbstract.onLoad()

addSelectionChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addSelectionChangeHandler(SelectionChangeHandler handler)
Description copied from class: KSSelectItemWidgetAbstract
Used to had a selection change handler.

Specified by:
addSelectionChangeHandler in interface HasSelectionChangeHandlers
Overrides:
addSelectionChangeHandler in class KSRadioButtonList

getListItems

public ListItems getListItems()
Overrides:
getListItems in class KSRadioButtonList

getName

public String getName()
Specified by:
getName in interface com.google.gwt.user.client.ui.HasName
Overrides:
getName in class KSRadioButtonList

setName

public void setName(String name)
Specified by:
setName in interface com.google.gwt.user.client.ui.HasName
Overrides:
setName in class KSRadioButtonList

setEnabled

public void setEnabled(boolean b)
Overrides:
setEnabled in class KSRadioButtonList

isEnabled

public boolean isEnabled()
Overrides:
isEnabled in class KSRadioButtonList

isMultipleSelect

public boolean isMultipleSelect()
Description copied from class: KSSelectItemWidgetAbstract
This method should if implemented if list supports multiple select

Overrides:
isMultipleSelect in class KSRadioButtonList

redraw

public void redraw()
Overrides:
redraw in class KSRadioButtonList

clear

public void clear()
Description copied from class: KSSelectItemWidgetAbstract
This method clears the current selection

Overrides:
clear in class KSRadioButtonList

addBlurHandler

public com.google.gwt.event.shared.HandlerRegistration addBlurHandler(com.google.gwt.event.dom.client.BlurHandler handler)
Specified by:
addBlurHandler in interface com.google.gwt.event.dom.client.HasBlurHandlers
Overrides:
addBlurHandler in class KSRadioButtonList

addFocusHandler

public com.google.gwt.event.shared.HandlerRegistration addFocusHandler(com.google.gwt.event.dom.client.FocusHandler handler)
Specified by:
addFocusHandler in interface com.google.gwt.event.dom.client.HasFocusHandlers
Overrides:
addFocusHandler in class KSRadioButtonList

addWidgetReadyCallback

public void addWidgetReadyCallback(Callback<com.google.gwt.user.client.ui.Widget> callback)
Description copied from interface: HasWidgetReadyCallback
This method can be used to register a callback to be executed when a widget has been initialized. The callback should be unregistered by the implementing widget after execution.

Specified by:
addWidgetReadyCallback in interface HasWidgetReadyCallback
Overrides:
addWidgetReadyCallback in class KSRadioButtonList

isInitialized

public boolean isInitialized()
Description copied from interface: HasWidgetReadyCallback
This method can be used to query if a widget has been initialized.

Specified by:
isInitialized in interface HasWidgetReadyCallback
Overrides:
isInitialized in class KSRadioButtonList
Returns:

setInitialized

public void setInitialized(boolean initialized)
Description copied from interface: HasWidgetReadyCallback
This method sets an initialized state of the widget

Specified by:
setInitialized in interface HasWidgetReadyCallback
Overrides:
setInitialized in class KSRadioButtonList

setIgnoreMultipleAttributes

public void setIgnoreMultipleAttributes(boolean ignoreMultiple)
By default if the list items used by the checkbox has multiple attributes, the checkbox generated will display all attributes as columns. Set this property to true if this behavior is not desired.

Overrides:
setIgnoreMultipleAttributes in class KSRadioButtonList
Parameters:
ignoreMultiple -


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