Package org.apache.uima.tools.stylemap
Class TableGUIMediator
java.lang.Object
org.apache.uima.tools.stylemap.TableGUIMediator
Mediates GI elements in StyleMapEditor keeping buttons enabled or disabled depending on whether a
row is selected.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the column selected.int
Gets the row selected.void
setButtons
(ImageButton up, ImageButton down, ImageButton delete) Sets the buttons.void
Sets the entry button.void
Sets the table.void
Table clicked.void
Tree clicked.
-
Constructor Details
-
TableGUIMediator
public TableGUIMediator()Instantiates a new table GUI mediator.
-
-
Method Details
-
setTable
Sets the table.- Parameters:
t
- the new table
-
tableClicked
Table clicked.- Parameters:
ev
- the ev
-
setButtons
Sets the buttons.- Parameters:
up
- the updown
- the downdelete
- the delete
-
getRowSelected
public int getRowSelected()Gets the row selected.- Returns:
- the row selected
-
getColumnSelected
public int getColumnSelected()Gets the column selected.- Returns:
- the column selected
-
setEntryButton
Sets the entry button.- Parameters:
but
- the new entry button
-
treeClicked
public void treeClicked()Tree clicked.
-