Package org.opencms.gwt.client.ui.input
Class CmsCategoryField.A_SelectionHandler
java.lang.Object
org.opencms.gwt.client.ui.input.CmsCategoryField.A_SelectionHandler
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler,com.google.gwt.event.dom.client.DoubleClickHandler,com.google.gwt.event.shared.EventHandler
- Enclosing class:
CmsCategoryField
protected abstract class CmsCategoryField.A_SelectionHandler
extends Object
implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.DoubleClickHandler
Selection handler to handle check box click events and double clicks on the list items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CmsCheckBoxReturns the check box.voidonClick(com.google.gwt.event.dom.client.ClickEvent event) voidonDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) protected abstract voidExecuted on selection change.voidsetSelectButton(CmsPushButton button) Sets the select button, can be used instead of a double click to select and search.
-
Constructor Details
-
A_SelectionHandler
Constructor.- Parameters:
checkBox- the item check box
-
-
Method Details
-
onClick
- Specified by:
onClickin interfacecom.google.gwt.event.dom.client.ClickHandler- See Also:
-
onDoubleClick
- Specified by:
onDoubleClickin interfacecom.google.gwt.event.dom.client.DoubleClickHandler- See Also:
-
setSelectButton
Sets the select button, can be used instead of a double click to select and search.- Parameters:
button- the select button
-
getCheckBox
Returns the check box.- Returns:
- the check box
-
onSelectionChange
Executed on selection change. Either when the check box was clicked or on double click on a list item.
-