Class TableGUIMediator

java.lang.Object
org.apache.uima.tools.stylemap.TableGUIMediator

public class TableGUIMediator extends Object
Mediates GI elements in StyleMapEditor keeping buttons enabled or disabled depending on whether a row is selected.
  • Field Details

    • 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.
  • Constructor Details

    • TableGUIMediator

      public TableGUIMediator()
      Instantiates a new table GUI mediator.
  • Method Details

    • setTable

      public void setTable(StyleMapTable t)
      Sets the table.
      Parameters:
      t - the new table
    • tableClicked

      public void tableClicked(ListSelectionEvent ev)
      Table clicked.
      Parameters:
      ev - the ev
    • setButtons

      public void setButtons(ImageButton up, ImageButton down, ImageButton delete)
      Sets the buttons.
      Parameters:
      up - the up
      down - the down
      delete - 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.