org.kuali.student.common.ui.client.widgets.impl
Class KSDropDownImpl

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.impl.KSDropDownImpl
All Implemented Interfaces:
com.google.gwt.event.dom.client.HasBlurHandlers, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasName, com.google.gwt.user.client.ui.IsWidget, HasWidgetReadyCallback, HasSelectionChangeHandlers

public class KSDropDownImpl
extends KSSelectItemWidgetAbstract
implements com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.event.dom.client.HasBlurHandlers


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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSDropDownImpl()
           
 
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)
           
 void clear()
          This method clears the current selection
 void deSelectItem(String id)
          Remove selection for item represented by id.
 List<String> getSelectedItems()
          List of items that have been selected.
protected  void init()
           
 boolean isBlankFirstItem()
           
 boolean isEnabled()
           
 void onLoad()
           
 void redraw()
           
 void selectItem(String id)
          Select the item in list represented by the id.
 void setBlankFirstItem(boolean blankFirstItem)
           
 void setEnabled(boolean b)
           
<T extends Idable>
void
setListItems(ListItems listItems)
           
 
Methods inherited from class org.kuali.student.common.ui.client.widgets.list.KSSelectItemWidgetAbstract
addSelectionChangeHandler, addWidgetReadyCallback, fireChangeEvent, getListItems, getName, getSelectedItem, isInitialized, isMultipleSelect, setColumnSize, setInitialized, setMultipleSelect, setName
 
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
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, 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, 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.event.shared.HasHandlers
fireEvent
 

Constructor Detail

KSDropDownImpl

public KSDropDownImpl()
Method Detail

redraw

public void redraw()
Specified by:
redraw in class KSSelectItemWidgetAbstract

init

protected void init()

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.

Specified by:
selectItem in class KSSelectItemWidgetAbstract

deSelectItem

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

Specified by:
deSelectItem in class KSSelectItemWidgetAbstract
See Also:
KSSelectItemWidgetAbstract.deSelectItem(java.lang.String)

setListItems

public <T extends Idable> void setListItems(ListItems listItems)
Overrides:
setListItems in class KSSelectItemWidgetAbstract

getSelectedItems

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

Specified by:
getSelectedItems in class KSSelectItemWidgetAbstract
Returns:
See Also:
KSSelectItemWidgetAbstract.getSelectedItems()

onLoad

public void onLoad()
Specified by:
onLoad in class KSSelectItemWidgetAbstract
See Also:
KSSelectItemWidgetAbstract.onLoad()

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in class KSSelectItemWidgetAbstract

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in class KSSelectItemWidgetAbstract

isBlankFirstItem

public boolean isBlankFirstItem()

setBlankFirstItem

public void setBlankFirstItem(boolean blankFirstItem)

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

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

clear

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

Specified by:
clear in class KSSelectItemWidgetAbstract


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