Package com.hybris.cockpitng.editors
Interface EditorListener<T>
-
- All Known Implementing Classes:
ParametrizedEditorListener
public interface EditorListener<T>Receives updates when aneditor's value has changed in some way. The general purpose is to hide editor specific implementation details from the user e.g. which events are relevant etc.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCANCEL_CLICKEDstatic java.lang.StringENTER_PRESSEDstatic java.lang.StringESCAPE_PRESSEDstatic java.lang.StringFOCUS_LOSTstatic java.lang.StringFORCE_SAVE_CLICKEDstatic java.lang.StringINVALID_INPUTstatic java.lang.StringINVALID_INPUT_CLEAREDstatic EditorListenerNULLstatic java.lang.StringOPEN_EXTERNAL_CLICKED
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEditorEvent(java.lang.String eventCode)Called when an editor event occurred (like enter pressed, escape pressed, focus lost etc.)voidonValueChanged(T value)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.
-
-
-
Field Detail
-
NULL
static final EditorListener NULL
-
ENTER_PRESSED
static final java.lang.String ENTER_PRESSED
- See Also:
- Constant Field Values
-
ESCAPE_PRESSED
static final java.lang.String ESCAPE_PRESSED
- See Also:
- Constant Field Values
-
OPEN_EXTERNAL_CLICKED
static final java.lang.String OPEN_EXTERNAL_CLICKED
- See Also:
- Constant Field Values
-
CANCEL_CLICKED
static final java.lang.String CANCEL_CLICKED
- See Also:
- Constant Field Values
-
FORCE_SAVE_CLICKED
static final java.lang.String FORCE_SAVE_CLICKED
- See Also:
- Constant Field Values
-
FOCUS_LOST
static final java.lang.String FOCUS_LOST
- See Also:
- Constant Field Values
-
INVALID_INPUT
static final java.lang.String INVALID_INPUT
- See Also:
- Constant Field Values
-
INVALID_INPUT_CLEARED
static final java.lang.String INVALID_INPUT_CLEARED
- See Also:
- Constant Field Values
-
-
Method Detail
-
onValueChanged
void onValueChanged(T value)
Called when aneditor's value has changed.- Parameters:
value- the new value
-
onEditorEvent
void onEditorEvent(java.lang.String eventCode)
Called when an editor event occurred (like enter pressed, escape pressed, focus lost etc.)- Parameters:
eventCode- the unique event code
-
sendSocketOutput
void sendSocketOutput(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.- Parameters:
outputId- the socket output ID to send the data todata- the data to send
-
-