Class AbstractSingleButtonInset<T>
- java.lang.Object
-
- de.hybris.platform.coupon.backoffice.cockpitng.editor.insets.AbstractSingleButtonInset<T>
-
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<T>
public abstract class AbstractSingleButtonInset<T> extends java.lang.Object implements com.hybris.cockpitng.editors.CockpitEditorRenderer<T>
Abstract class for insets that add single action button
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUTTON_LABEL_PARAM
static java.lang.String
BUTTON_SCLASS
static java.lang.String
INSET_SCLASS
-
Constructor Summary
Constructors Constructor Description AbstractSingleButtonInset()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected com.hybris.cockpitng.components.Editor
findAncestorEditor(org.zkoss.zk.ui.Component component)
protected abstract org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
getInsetListener(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<T> context, com.hybris.cockpitng.editors.EditorListener<T> listener)
protected java.lang.String
getSclass()
protected boolean
isEnabled()
void
render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<T> context, com.hybris.cockpitng.editors.EditorListener<T> listener)
-
-
-
Field Detail
-
BUTTON_LABEL_PARAM
public static final java.lang.String BUTTON_LABEL_PARAM
- See Also:
- Constant Field Values
-
INSET_SCLASS
public static final java.lang.String INSET_SCLASS
- See Also:
- Constant Field Values
-
BUTTON_SCLASS
public static final java.lang.String BUTTON_SCLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInsetListener
protected abstract org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> getInsetListener(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<T> context, com.hybris.cockpitng.editors.EditorListener<T> listener)
-
render
public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<T> context, com.hybris.cockpitng.editors.EditorListener<T> listener)
- Specified by:
render
in interfacecom.hybris.cockpitng.editors.CockpitEditorRenderer<T>
-
isEnabled
protected boolean isEnabled()
-
getSclass
protected java.lang.String getSclass()
-
findAncestorEditor
protected com.hybris.cockpitng.components.Editor findAncestorEditor(org.zkoss.zk.ui.Component component)
-
-