Class CheckBoxListWidget

  extended by
      extended by
          extended by
              extended by org.onebusaway.webapp.gwt.common.widgets.CheckBoxListWidget
All Implemented Interfaces:,,,,,,

public class CheckBoxListWidget

This Widget displays a list of items, each with a checkbox next to it in order to allow the user to deselect ("delete") items. Also, items in the list can be given a disabled styling. A given ID is automatically de-duped so it cannot appear more than once. NOTE: The user should define CSS for the following style classes: CheckBoxListWidget CheckBoxListWidgetItem CheckBoxListWidgetItemDisabled (required to support disabled items)

Nested Class Summary
Nested classes/interfaces inherited from class,
Field Summary
Fields inherited from class
Constructor Summary
CheckBoxListWidget(Comparator<String> sorter, int maxColumnSize)
          Construct with specifier sorter (may be null)
Method Summary addClickHandler( handler)
          So that you can add handlers that do additional action after someone has clicked a checkbox.
 void addItem(String label, String id)
          Add an item to the list
 Collection<String> getAllIds()
          Get all IDs regardless of state.
 List<String> getIds()
          Returns checked, enabled IDs
 List<String> getNonDeletedIds()
          Returns checked (enabled and disabled) IDs
 void setDeleted(String id, boolean deleted)
 void setEnabled(String id, boolean enabled)
Methods inherited from class
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
Methods inherited from class
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
Methods inherited from class
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

Constructor Detail


public CheckBoxListWidget(Comparator<String> sorter,
                          int maxColumnSize)
Construct with specifier sorter (may be null)

Method Detail


public addClickHandler( handler)
So that you can add handlers that do additional action after someone has clicked a checkbox.

Specified by:
addClickHandler in interface


public void addItem(String label,
                    String id)
Add an item to the list


public List<String> getIds()
Returns checked, enabled IDs


public List<String> getNonDeletedIds()
Returns checked (enabled and disabled) IDs


public Collection<String> getAllIds()
Get all IDs regardless of state.


public void setEnabled(String id,
                       boolean enabled)


public void setDeleted(String id,
                       boolean deleted)

Copyright © 2012 OneBusAway. All Rights Reserved.