Class AceDefaultCommandLine

java.lang.Object
cn.mapway.document.ui.client.component.ace.AceDefaultCommandLine
All Implemented Interfaces:
AceCommandLine

public class AceDefaultCommandLine extends Object implements AceCommandLine
Default implementation of AceCommandLine wrapping any GWT value box like TextBox or TextArea.
  • Constructor Details

    • AceDefaultCommandLine

      public AceDefaultCommandLine(com.google.gwt.user.client.ui.ValueBoxBase<String> textBox)
      Create command line wrapper around GWT text box.
      Parameters:
      textBox - any GWT value box like TextBox or TextArea
  • Method Details

    • setCommandLineListener

      public void setCommandLineListener(AceCommandLineListener listener)
      Set listener getting callback from command line component. Typically editor registers listener itself.
      Specified by:
      setCommandLineListener in interface AceCommandLine
      Parameters:
      listener - listener for command entering event
    • getValue

      public String getValue()
      Give current text which command line contains.
      Specified by:
      getValue in interface AceCommandLine
      Returns:
      command stored in command line
    • setValue

      public void setValue(String value)
      Set text into command line. It could be for instance a result of command execution.
      Specified by:
      setValue in interface AceCommandLine
      Parameters:
      value - text to be placed into command line