edu.stanford.smi.protegex.owl.ui.code
Interface SymbolEditor

All Known Implementing Classes:
SymbolEditorComponent, SymbolTextArea, SymbolTextField

public interface SymbolEditor

Author:
Holger Knublauch

Method Summary
 void assignExpression()
          Ends the editing process and assigns the expression.
 void backspace()
          Performs a backspace operation.
 void cancelEditing()
          Cancels the editing process without assigning a value.
 void displayError()
          Checks the syntax of the current input and displays the error.
 String getText()
          Gets the currently entered text.
 void insertText(String text)
          Inserts some text at the caret position.
 void insertText(String text, int caretOffset)
          Inserts some text at the caret position and specifies the new caret position within the inserted text.
 

Method Detail

assignExpression

public void assignExpression()
Ends the editing process and assigns the expression. If the expression is invalid, then it calls displayError.


backspace

public void backspace()
Performs a backspace operation.


cancelEditing

public void cancelEditing()
Cancels the editing process without assigning a value.


displayError

public void displayError()
Checks the syntax of the current input and displays the error.


getText

public String getText()
Gets the currently entered text.

Returns:
the text (raw)

insertText

public void insertText(String text)
Inserts some text at the caret position.

Parameters:
text - the text to insert

insertText

public void insertText(String text,
                       int caretOffset)
Inserts some text at the caret position and specifies the new caret position within the inserted text.

Parameters:
text - the text to insert
caretOffset - the caret offset within the text