Package com.hybris.cockpitng.editor.bool
Class AbstractBooleanEditorRenderer
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<java.lang.Boolean>
-
- com.hybris.cockpitng.editor.bool.AbstractBooleanEditorRenderer
-
- All Implemented Interfaces:
CockpitEditorRenderer<java.lang.Boolean>
- Direct Known Subclasses:
CheckboxBooleanEditor,DefaultBooleanEditor,DropdownBooleanEditor
public abstract class AbstractBooleanEditorRenderer extends AbstractCockpitEditorRenderer<java.lang.Boolean>
Abstract Editor class for all boolean editor types.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSHOW_OPTIONAL_FIELD_PARAM-
Fields inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
HEADER_LABEL_TOOLTIP, ON_ADD_EVENT, ON_DELETE_EVENT, YW_EDITOR_AREA_LABEL_CONTAINER
-
Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
INITIAL_EDIT_STRING
-
-
Constructor Summary
Constructors Constructor Description AbstractBooleanEditorRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetBooleanLabel(EditorContext<java.lang.Boolean> context, java.lang.Boolean bool)Returns a string (label) representation of the given boolean value.protected java.lang.BooleangetShowOptionalFieldParamValue(EditorContext<java.lang.Boolean> context)Returns value of SHOW_OPTIONAL_FIELD_PARAM configuration parameter.-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer
render
-
-
-
-
Field Detail
-
SHOW_OPTIONAL_FIELD_PARAM
public static final java.lang.String SHOW_OPTIONAL_FIELD_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBooleanLabel
protected java.lang.String getBooleanLabel(EditorContext<java.lang.Boolean> context, java.lang.Boolean bool)
Returns a string (label) representation of the given boolean value. Allows localized labeling for TRUE/FALSE/NA.- Parameters:
context- Various context parametersbool- A boolean value to label- Returns:
- Boolean's label decorator.
-
getShowOptionalFieldParamValue
protected java.lang.Boolean getShowOptionalFieldParamValue(EditorContext<java.lang.Boolean> context)
Returns value of SHOW_OPTIONAL_FIELD_PARAM configuration parameter. If the parameter is not set,nullis returned.
-
-