Class AbstractSingleButtonInset<T>
- java.lang.Object
-
- de.hybris.platform.voucher.backoffice.cockpitng.editor.insets.AbstractSingleButtonInset<T>
-
- All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<T>
- Direct Known Subclasses:
VoucherCodeGeneratorInset
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.StringBUTTON_LABEL_PARAMstatic java.lang.StringBUTTON_SCLASSstatic java.lang.StringINSET_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.EditorfindAncestorEditor(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.StringgetSclass()protected booleanisEnabled(com.hybris.cockpitng.editors.EditorContext<T> context)voidrender(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:
renderin interfacecom.hybris.cockpitng.editors.CockpitEditorRenderer<T>
-
isEnabled
protected boolean isEnabled(com.hybris.cockpitng.editors.EditorContext<T> context)
-
getSclass
protected java.lang.String getSclass()
-
findAncestorEditor
protected com.hybris.cockpitng.components.Editor findAncestorEditor(org.zkoss.zk.ui.Component component)
-
-