Class A_CmsListTab.A_SelectionHandler
- java.lang.Object
-
- org.opencms.ade.galleries.client.ui.A_CmsListTab.A_SelectionHandler
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler
,com.google.gwt.event.shared.EventHandler
- Enclosing class:
- A_CmsListTab
protected abstract class A_CmsListTab.A_SelectionHandler extends java.lang.Object implements com.google.gwt.event.dom.client.ClickHandler
Selection handler to handle check box click events and double clicks on the list items.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
A_SelectionHandler(CmsCheckBox checkBox)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CmsCheckBox
getCheckBox()
Returns the check box.CmsPushButton
getSelectButton()
Returns the select button.void
onClick(com.google.gwt.event.dom.client.ClickEvent event)
protected abstract void
onSelectionChange()
Executed on selection change.protected void
selectBeforeGoingToResultTab()
This method is called if a list item is selected in a way such that the result tab should be displayed immediately.void
setSelectButton(CmsPushButton button)
Sets the select button, can be used instead of a double click to select and search.
-
-
-
Constructor Detail
-
A_SelectionHandler
protected A_SelectionHandler(CmsCheckBox checkBox)
Constructor.- Parameters:
checkBox
- the item check box
-
-
Method Detail
-
getSelectButton
public CmsPushButton getSelectButton()
Returns the select button.- Returns:
- the select button
-
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
- Specified by:
onClick
in interfacecom.google.gwt.event.dom.client.ClickHandler
- See Also:
ClickHandler.onClick(com.google.gwt.event.dom.client.ClickEvent)
-
setSelectButton
public void setSelectButton(CmsPushButton button)
Sets the select button, can be used instead of a double click to select and search.- Parameters:
button
- the select button
-
getCheckBox
protected CmsCheckBox getCheckBox()
Returns the check box.- Returns:
- the check box
-
onSelectionChange
protected abstract void onSelectionChange()
Executed on selection change. Either when the check box was clicked or on double click on a list item.
-
selectBeforeGoingToResultTab
protected void selectBeforeGoingToResultTab()
This method is called if a list item is selected in a way such that the result tab should be displayed immediately.
-
-