Class DefaultRangeEditor<T>
- java.lang.Object
-
- com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer<Range<T>>
-
- com.hybris.cockpitng.editor.defaultrange.DefaultRangeEditor<T>
-
- All Implemented Interfaces:
CockpitEditorRenderer<Range<T>>
public class DefaultRangeEditor<T> extends AbstractCockpitEditorRenderer<Range<T>>
Default implementation of the Range UI Editor.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLOW_INFINITE_ENDPOINTS_PARAMETER-
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 DefaultRangeEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected EditorcreateEditor(EditorContext<Range<T>> context, EditorListener<Range<T>> listener)Creates singleEditorcomponent for the range embedded type.protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>createEditorListener(EditorContext<Range<T>> editorContext, EditorListener<Range<T>> listener)Create a wrapper listener from embedded editor listeners to this range Editor listeners.protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>createEditorListener(EditorListener<Range<T>> listener)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5EditorgetEndEditor()EditorgetStartEditor()voidrender(org.zkoss.zk.ui.Component parent, EditorContext<Range<T>> context, EditorListener<Range<T>> listener)Creates a new editor component and attaches it to the specifiedComponentcomponent.voidsetCurrentValue(Range<T> value)Sets the given range value for the range editor.voidsetEndEditor(Editor endEditor)voidsetStartEditor(Editor startEditor)-
Methods inherited from class com.hybris.cockpitng.editors.impl.AbstractCockpitEditorRenderer
extractEmbeddedEditor, extractEmbeddedType, findAncestorEditor, findEmbeddedEditors, getInitialEditString, getL10nDecorator
-
-
-
-
Field Detail
-
ALLOW_INFINITE_ENDPOINTS_PARAMETER
public static final java.lang.String ALLOW_INFINITE_ENDPOINTS_PARAMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCurrentValue
public void setCurrentValue(Range<T> value)
Sets the given range value for the range editor.- Parameters:
value- Sets range value.
-
render
public void render(org.zkoss.zk.ui.Component parent, EditorContext<Range<T>> context, EditorListener<Range<T>> listener)Description copied from interface:CockpitEditorRendererCreates a new editor component and attaches it to the specifiedComponentcomponent.- Parameters:
parent- parent component the editor should be attached tocontext- the context for the editor creationlistener- the listener to notify the rest of the world about value changes and other events
-
createEditor
protected Editor createEditor(EditorContext<Range<T>> context, EditorListener<Range<T>> listener)
Creates singleEditorcomponent for the range embedded type.- Returns:
Editor
-
createEditorListener
protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createEditorListener(EditorContext<Range<T>> editorContext, EditorListener<Range<T>> listener)
Create a wrapper listener from embedded editor listeners to this range Editor listeners.- Parameters:
editorContext- range editor contextlistener- top level listener to be notified about value changes- Returns:
- the listener
-
createEditorListener
@Deprecated(since="6.5", forRemoval=true) protected org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> createEditorListener(EditorListener<Range<T>> listener)Deprecated, for removal: This API element is subject to removal in a future version.since 6.5Create a wrapper listener from embedded editor listeners to Editor listeners.- Returns:
- the listener
- See Also:
createEditorListener(EditorContext, EditorListener)
-
getStartEditor
public Editor getStartEditor()
- Returns:
- the startEditor
-
setStartEditor
public void setStartEditor(Editor startEditor)
- Parameters:
startEditor- the startEditor to set
-
getEndEditor
public Editor getEndEditor()
- Returns:
- the endEditor
-
setEndEditor
public void setEndEditor(Editor endEditor)
- Parameters:
endEditor- the endEditor to set
-
-