Class AceDefaultCommandLine
java.lang.Object
cn.mapway.document.ui.client.component.ace.AceDefaultCommandLine
- All Implemented Interfaces:
AceCommandLine
Default implementation of AceCommandLine wrapping any GWT value box
like TextBox or TextArea.
-
Constructor Summary
ConstructorsConstructorDescriptionAceDefaultCommandLine(com.google.gwt.user.client.ui.ValueBoxBase<String> textBox) Create command line wrapper around GWT text box. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Give current text which command line contains.voidsetCommandLineListener(AceCommandLineListener listener) Set listener getting callback from command line component.voidSet text into command line.
-
Constructor Details
-
AceDefaultCommandLine
Create command line wrapper around GWT text box.- Parameters:
textBox- any GWT value box like TextBox or TextArea
-
-
Method Details
-
setCommandLineListener
Set listener getting callback from command line component. Typically editor registers listener itself.- Specified by:
setCommandLineListenerin interfaceAceCommandLine- Parameters:
listener- listener for command entering event
-
getValue
Give current text which command line contains.- Specified by:
getValuein interfaceAceCommandLine- Returns:
- command stored in command line
-
setValue
Set text into command line. It could be for instance a result of command execution.- Specified by:
setValuein interfaceAceCommandLine- Parameters:
value- text to be placed into command line
-