Package org.apache.uima.tools.stylemap
Class TableGUIMediator
- java.lang.Object
-
- org.apache.uima.tools.stylemap.TableGUIMediator
-
public class TableGUIMediator extends java.lang.Object
Mediates GI elements in StyleMapEditor keeping buttons enabled or disabled depending on whether a row is selected.
-
-
Field Summary
Fields Modifier and Type Field Description private ImageButton
addEntryButton
The add entry button.private ImageButton
delete
The delete.private ImageButton
down
The delete.private int
rowCount
The row count.private StyleMapTable
table
The table.private ImageButton
up
The delete.
-
Constructor Summary
Constructors Constructor Description TableGUIMediator()
Instantiates a new table GUI mediator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnSelected()
Gets the column selected.int
getRowSelected()
Gets the row selected.void
setButtons(ImageButton up, ImageButton down, ImageButton delete)
Sets the buttons.void
setEntryButton(ImageButton but)
Sets the entry button.void
setTable(StyleMapTable t)
Sets the table.void
tableClicked(javax.swing.event.ListSelectionEvent ev)
Table clicked.void
treeClicked()
Tree clicked.
-
-
-
Field Detail
-
table
private StyleMapTable table
The table.
-
up
private ImageButton up
The delete.
-
down
private ImageButton down
The delete.
-
delete
private ImageButton delete
The delete.
-
addEntryButton
private ImageButton addEntryButton
The add entry button.
-
rowCount
private int rowCount
The row count.
-
-
Method Detail
-
setTable
public void setTable(StyleMapTable t)
Sets the table.- Parameters:
t
- the new table
-
tableClicked
public void tableClicked(javax.swing.event.ListSelectionEvent ev)
Table clicked.- Parameters:
ev
- the ev
-
setButtons
public void setButtons(ImageButton up, ImageButton down, ImageButton delete)
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
public void setEntryButton(ImageButton but)
Sets the entry button.- Parameters:
but
- the new entry button
-
treeClicked
public void treeClicked()
Tree clicked.
-
-