![]() |
GrammarScope
4.0.0
|
Classes | |
class | Editor |
class | Renderer |
Public Member Functions | |
TregexPatternTable () | |
TregexPatternTable (final List< TregexPattern > patterns) | |
void | initialize () |
void | set (final List< TregexPattern > patterns) |
JPanel | makePatternPanel () |
List< TregexPattern > | get () |
void | stopEditing () |
void | cancelEditing () |
void | removeEditor () |
void | add () |
void | remove () |
void | expand () |
void | shrink () |
Dimension | getPreferredSize () |
void | setEditable (final boolean modelEditable, final boolean relationEditable) |
void | addEventListener (final IEventListener eventListener) |
Static Private Member Functions | |
static TregexPattern | compile (final String text) |
static String | compileToPretty (final String text) |
Private Attributes | |
boolean | isEditable |
JButton | okButton |
JButton | cancelButton |
JButton | expandButton |
JButton | shrinkButton |
JButton | addButton |
JButton | removeButton |
final EventFirer | eventFirer |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
static final Border | editingBorder = BorderFactory.createLineBorder(Color.BLACK) |
Table to display/edit TregexPatterns
grammarscope.editor.component.TregexPatternTable.TregexPatternTable | ( | ) |
Constructor
grammarscope.editor.component.TregexPatternTable.TregexPatternTable | ( | final List< TregexPattern > | patterns | ) |
Constructor
patterns | tregex patterns |
void grammarscope.editor.component.TregexPatternTable.add | ( | ) |
Add a pattern
void grammarscope.editor.component.TregexPatternTable.addEventListener | ( | final IEventListener | eventListener | ) |
Add listener
eventListener | event listener |
void grammarscope.editor.component.TregexPatternTable.cancelEditing | ( | ) |
Cancel editing command
|
staticprivate |
Compile tregexp pattern
text | tregexp pattern text |
|
staticprivate |
Pretty printing of compiled pattern
text | tregexp pattern text |
void grammarscope.editor.component.TregexPatternTable.expand | ( | ) |
Expand space for selected pattern
List<TregexPattern> grammarscope.editor.component.TregexPatternTable.get | ( | ) |
Retrieve (edited) patterns
Dimension grammarscope.editor.component.TregexPatternTable.getPreferredSize | ( | ) |
void grammarscope.editor.component.TregexPatternTable.initialize | ( | ) |
Initialize
JPanel grammarscope.editor.component.TregexPatternTable.makePatternPanel | ( | ) |
Make pattern panel
void grammarscope.editor.component.TregexPatternTable.remove | ( | ) |
Remove selected pattern
void grammarscope.editor.component.TregexPatternTable.removeEditor | ( | ) |
void grammarscope.editor.component.TregexPatternTable.set | ( | final List< TregexPattern > | patterns | ) |
Set patterns
patterns | tregex patterns |
void grammarscope.editor.component.TregexPatternTable.setEditable | ( | final boolean | modelEditable, |
final boolean | relationEditable | ||
) |
Set editable
modelEditable | whether model edition is permitted |
relationEditable | whether relation edition is permitted |
void grammarscope.editor.component.TregexPatternTable.shrink | ( | ) |
Shrink space for selected pattern
void grammarscope.editor.component.TregexPatternTable.stopEditing | ( | ) |
Stop editing command
|
private |
Add button
|
private |
Cancel button
|
staticprivate |
Editing border
|
private |
Event firer
|
private |
Expand button
|
private |
Editable flag
|
private |
Ok button
|
private |
Remove button
|
staticprivate |
|
private |
Shrink button