Package org.apache.uima.tools.stylemap
Class TableGUIMediator
- java.lang.Object
-
- org.apache.uima.tools.stylemap.TableGUIMediator
-
public class TableGUIMediator extends java.lang.ObjectMediates 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 ImageButtonaddEntryButtonThe add entry button.private ImageButtondeleteThe delete.private ImageButtondownThe delete.private introwCountThe row count.private StyleMapTabletableThe table.private ImageButtonupThe 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 intgetColumnSelected()Gets the column selected.intgetRowSelected()Gets the row selected.voidsetButtons(ImageButton up, ImageButton down, ImageButton delete)Sets the buttons.voidsetEntryButton(ImageButton but)Sets the entry button.voidsetTable(StyleMapTable t)Sets the table.voidtableClicked(javax.swing.event.ListSelectionEvent ev)Table clicked.voidtreeClicked()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.
-
-