|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
edu.stanford.smi.protegex.owl.ui.code.SymbolEditorComponent
public abstract class SymbolEditorComponent
User: matthewhorridge
The Univeristy Of Manchester
Medical Informatics Group
Date: Sep 6, 2005
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SymbolEditorComponent(OWLModel model,
SymbolErrorDisplay errorDisplay,
boolean multiline)
|
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. |
SymbolErrorDisplay |
getErrorDisplay()
|
OWLModel |
getModel()
|
SymbolEditorHandler |
getSymbolEditorHandler()
|
String |
getText()
Gets the currently entered text. |
abstract JTextComponent |
getTextComponent()
Gets the JTextComponent that does the editing. |
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. |
boolean |
isMultiline()
|
protected abstract void |
parseExpression()
|
void |
setSymbolEditorHandler(SymbolEditorHandler symbolEditorHandler)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SymbolEditorComponent(OWLModel model, SymbolErrorDisplay errorDisplay, boolean multiline)
Method Detail |
---|
public abstract JTextComponent getTextComponent()
protected abstract void parseExpression() throws Exception
Exception
public void assignExpression()
SymbolEditor
displayError
.
assignExpression
in interface SymbolEditor
public void displayError()
SymbolEditor
displayError
in interface SymbolEditor
public void setSymbolEditorHandler(SymbolEditorHandler symbolEditorHandler)
public boolean isMultiline()
public SymbolEditorHandler getSymbolEditorHandler()
public SymbolErrorDisplay getErrorDisplay()
public OWLModel getModel()
public void cancelEditing()
SymbolEditor
cancelEditing
in interface SymbolEditor
public void backspace()
SymbolEditor
backspace
in interface SymbolEditor
public String getText()
SymbolEditor
getText
in interface SymbolEditor
public void insertText(String text)
SymbolEditor
insertText
in interface SymbolEditor
text
- the text to insertpublic void insertText(String text, int caretOffset)
SymbolEditor
insertText
in interface SymbolEditor
text
- the text to insertcaretOffset
- the caret offset within the text
|
Protégé-OWL 3.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |