Class DefaultTravelTextEditor

java.lang.Object
de.hybris.platform.travelbackoffice.editor.DefaultTravelTextEditor
All Implemented Interfaces:
com.hybris.cockpitng.editors.CockpitEditorRenderer<String>

public class DefaultTravelTextEditor extends Object implements com.hybris.cockpitng.editors.CockpitEditorRenderer<String>
Default Text Editor for TravelBackoffice for validating user input to accept only positive integer.
  • Field Summary

    Fields inherited from interface com.hybris.cockpitng.editors.CockpitEditorRenderer

    INITIAL_EDIT_STRING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    handleChangingEvent(com.hybris.cockpitng.editors.EditorListener<String> listener, org.zkoss.zul.Textbox editorView, String value)
    Method responsible to handle user input event.
    void
    render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<String> context, com.hybris.cockpitng.editors.EditorListener<String> listener)
     
    protected void
    validateInput(org.zkoss.zk.ui.Component component, String value)
    Method responsible to validate user input and throws WrongValueException if user tries to enter negative or out of integer range values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultTravelTextEditor

      public DefaultTravelTextEditor()
  • Method Details

    • render

      public void render(org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.editors.EditorContext<String> context, com.hybris.cockpitng.editors.EditorListener<String> listener)
      Specified by:
      render in interface com.hybris.cockpitng.editors.CockpitEditorRenderer<String>
    • handleChangingEvent

      protected void handleChangingEvent(com.hybris.cockpitng.editors.EditorListener<String> listener, org.zkoss.zul.Textbox editorView, String value)
      Method responsible to handle user input event.
      Parameters:
      listener -
      editorView -
      value -
    • validateInput

      protected void validateInput(org.zkoss.zk.ui.Component component, String value)
      Method responsible to validate user input and throws WrongValueException if user tries to enter negative or out of integer range values.
      Parameters:
      component -
      value -