Package com.hybris.cockpitng.editor
Class ParametrizedEditorListener<T,V,K>
- java.lang.Object
-
- com.hybris.cockpitng.editor.ParametrizedEditorListener<T,V,K>
-
- All Implemented Interfaces:
EditorListener<V>
public abstract class ParametrizedEditorListener<T,V,K> extends java.lang.Object implements EditorListener<V>
-
-
Field Summary
-
Fields inherited from interface com.hybris.cockpitng.editors.EditorListener
CANCEL_CLICKED, ENTER_PRESSED, ESCAPE_PRESSED, FOCUS_LOST, FORCE_SAVE_CLICKED, INVALID_INPUT, INVALID_INPUT_CLEARED, NULL, OPEN_EXTERNAL_CLICKED
-
-
Constructor Summary
Constructors Constructor Description ParametrizedEditorListener(EditorListener editorListener, T lastLocale, V lastValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TgetLastParameter()VgetLastValue()voidonEditorEvent(java.lang.String eventCode)Called when an editor event occurred (like enter pressed, escape pressed, focus lost etc.)voidonParameterChanged(T parameter)voidonValueChanged(V locValue)Called when aneditor's value has changed.voidsendSocketOutput(java.lang.String outputId, java.lang.Object data)Called to request the listener to send the given data to the output socket (with the given id) of the containing widget.abstract KwrapDataBeforeNotification()
-
-
-
Constructor Detail
-
ParametrizedEditorListener
public ParametrizedEditorListener(EditorListener editorListener, T lastLocale, V lastValue)
-
-
Method Detail
-
getLastParameter
public T getLastParameter()
-
getLastValue
public V getLastValue()
-
onParameterChanged
public void onParameterChanged(T parameter)
-
onValueChanged
public void onValueChanged(V locValue)
Description copied from interface:EditorListenerCalled when aneditor's value has changed.- Specified by:
onValueChangedin interfaceEditorListener<T>- Parameters:
locValue- the new value
-
wrapDataBeforeNotification
public abstract K wrapDataBeforeNotification()
-
onEditorEvent
public void onEditorEvent(java.lang.String eventCode)
Description copied from interface:EditorListenerCalled when an editor event occurred (like enter pressed, escape pressed, focus lost etc.)- Specified by:
onEditorEventin interfaceEditorListener<T>- Parameters:
eventCode- the unique event code
-
sendSocketOutput
public void sendSocketOutput(java.lang.String outputId, java.lang.Object data)Description copied from interface:EditorListenerCalled to request the listener to send the given data to the output socket (with the given id) of the containing widget.- Specified by:
sendSocketOutputin interfaceEditorListener<T>- Parameters:
outputId- the socket output ID to send the data todata- the data to send
-
-