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

Public Member Functions

 MutableRelationModelTree ()
 
void notified (final Event event)
 
void addRequestListener (final IRequestListener requestListener)
 
void listen (final EventFirer eventFirer)
 
void set (final MutableRelationModel relationModel)
 
void setEditable (final boolean isModelEditable, final boolean isRelationEditable)
 
DefaultMutableTreeNode makeTree (final ProtoGrammaticalRelation relation)
 
void expand ()
 
void collapse ()
 
void expandAll (final boolean expand)
 
void expandAll (final TreePath parent, final boolean expand)
 

Package Attributes

boolean isModelEditable
 
boolean isRelationEditable
 

Private Attributes

final RequestFirer requestFirer
 
final TreeCellRenderer renderer
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Constructor & Destructor Documentation

◆ MutableRelationModelTree()

grammarscope.editor.component.MutableRelationModelTree.MutableRelationModelTree ( )

Constructor

Member Function Documentation

◆ addRequestListener()

void grammarscope.editor.component.MutableRelationModelTree.addRequestListener ( final IRequestListener  requestListener)

Add request listener

Parameters
requestListenerrequest listener

◆ collapse()

void grammarscope.editor.component.MutableRelationModelTree.collapse ( )

Collapse handler

◆ expand()

void grammarscope.editor.component.MutableRelationModelTree.expand ( )

Expand handler

◆ expandAll() [1/2]

void grammarscope.editor.component.MutableRelationModelTree.expandAll ( final boolean  expand)

Expand/shrink

Parameters
expandexpand/shrink flag

◆ expandAll() [2/2]

void grammarscope.editor.component.MutableRelationModelTree.expandAll ( final TreePath  parent,
final boolean  expand 
)

Expand tree below this parent item

Parameters
parentroot of subtree to expand
expandexpand/shrink flag

◆ listen()

void grammarscope.editor.component.MutableRelationModelTree.listen ( final EventFirer  eventFirer)

Listen to event source

Parameters
eventFirerevent source

◆ makeTree()

DefaultMutableTreeNode grammarscope.editor.component.MutableRelationModelTree.makeTree ( final ProtoGrammaticalRelation  relation)

Make tree

Parameters
relationgrammatical relation
Returns
tree node

◆ notified()

void grammarscope.editor.component.MutableRelationModelTree.notified ( final Event  event)

Event notification

Parameters
eventevent

Implements grammarscope.message.IEventListener.

◆ set()

void grammarscope.editor.component.MutableRelationModelTree.set ( final MutableRelationModel  relationModel)

Set model

Parameters
relationModelrelation model

◆ setEditable()

void grammarscope.editor.component.MutableRelationModelTree.setEditable ( final boolean  isModelEditable,
final boolean  isRelationEditable 
)

Set Editable

Parameters
isModelEditablemodel editable (add, remove, duplicate, rename)
isRelationEditablerelation editable (modify)

Member Data Documentation

◆ isModelEditable

boolean grammarscope.editor.component.MutableRelationModelTree.isModelEditable
package

Model editable (add, remove, duplicate, rename)

◆ isRelationEditable

boolean grammarscope.editor.component.MutableRelationModelTree.isRelationEditable
package

Relation editable (modify)

◆ renderer

final TreeCellRenderer grammarscope.editor.component.MutableRelationModelTree.renderer
private

Renderer

◆ requestFirer

final RequestFirer grammarscope.editor.component.MutableRelationModelTree.requestFirer
private

Request firer

◆ serialVersionUID

final long grammarscope.editor.component.MutableRelationModelTree.serialVersionUID = 1L
staticprivate

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