GrammarScope  2.0
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.editor.component.TregexPatternTable Class Reference
Inheritance diagram for grammarscope.editor.component.TregexPatternTable:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.editor.component.TregexPatternTable:
Collaboration graph
[legend]

Classes

class  Editor
 
class  Renderer
 

Public Member Functions

 TregexPatternTable ()
 
 TregexPatternTable (final List< TregexPattern > thesePatterns)
 
void initialize ()
 
void set (final List< TregexPattern > thesePatterns)
 
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 thisEventListener)
 

Static Private Member Functions

static TregexPattern compile (final String thisText)
 
static String compileToPretty (final String thisText)
 

Private Attributes

boolean isEditable
 
JButton theOkButton
 
JButton theCancelButton
 
JButton theExpandButton
 
JButton theShrinkButton
 
JButton theAddButton
 
JButton theRemoveButton
 
final EventFirer theEventFirer
 

Static Private Attributes

static final long serialVersionUID = 1L
 
static final Border theEditingBorder = BorderFactory.createLineBorder(Color.BLACK)
 

Detailed Description

Table to dispay/edit TregexPatterns

Author
Bernard Bou

Constructor & Destructor Documentation

grammarscope.editor.component.TregexPatternTable.TregexPatternTable ( )

Constructor

grammarscope.editor.component.TregexPatternTable.TregexPatternTable ( final List< TregexPattern >  thesePatterns)

Constructor

Parameters
thesePatternstregex patterns

Member Function Documentation

void grammarscope.editor.component.TregexPatternTable.add ( )

Add a pattern

void grammarscope.editor.component.TregexPatternTable.addEventListener ( final IEventListener  thisEventListener)

Add listener

Parameters
thisEventListenerevent listener
void grammarscope.editor.component.TregexPatternTable.cancelEditing ( )

Cancel editing command

static TregexPattern grammarscope.editor.component.TregexPatternTable.compile ( final String  thisText)
staticprivate

Compile tregexp pattern

Parameters
thisTexttregexp pattern text
Returns
tregexp pattern or null if compile fails
static String grammarscope.editor.component.TregexPatternTable.compileToPretty ( final String  thisText)
staticprivate

Pretty printing of compiled pattern

Parameters
thisTexttregexp pattern text
Returns
pretty printing of compiled tregexp pattern or error message if compile fails
void grammarscope.editor.component.TregexPatternTable.expand ( )

Expand space for selected pattern

List<TregexPattern> grammarscope.editor.component.TregexPatternTable.get ( )

Retrieve (edited) patterns

Returns
tregex patterns
Dimension grammarscope.editor.component.TregexPatternTable.getPreferredSize ( )
void grammarscope.editor.component.TregexPatternTable.initialize ( )

Initialize

JPanel grammarscope.editor.component.TregexPatternTable.makePatternPanel ( )

Make pattern panel

Returns
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 >  thesePatterns)

Set patterns

Parameters
thesePatternstregex patterns
void grammarscope.editor.component.TregexPatternTable.setEditable ( final boolean  modelEditable,
final boolean  relationEditable 
)

Set editable

Parameters
modelEditablewhether model edition is permitted
relationEditablewhether relation edition is permitted
void grammarscope.editor.component.TregexPatternTable.shrink ( )

Shrink space for selected pattern

void grammarscope.editor.component.TregexPatternTable.stopEditing ( )

Stop editing command

Member Data Documentation

boolean grammarscope.editor.component.TregexPatternTable.isEditable
private

Editable flag

final long grammarscope.editor.component.TregexPatternTable.serialVersionUID = 1L
staticprivate
JButton grammarscope.editor.component.TregexPatternTable.theAddButton
private

Add button

JButton grammarscope.editor.component.TregexPatternTable.theCancelButton
private

Cancel button

final Border grammarscope.editor.component.TregexPatternTable.theEditingBorder = BorderFactory.createLineBorder(Color.BLACK)
staticprivate

Editing border

final EventFirer grammarscope.editor.component.TregexPatternTable.theEventFirer
private

Event firer

JButton grammarscope.editor.component.TregexPatternTable.theExpandButton
private

Expand button

JButton grammarscope.editor.component.TregexPatternTable.theOkButton
private

Ok button

JButton grammarscope.editor.component.TregexPatternTable.theRemoveButton
private

Remove button

JButton grammarscope.editor.component.TregexPatternTable.theShrinkButton
private

Shrink button


The documentation for this class was generated from the following file: