Class 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.
    • Constructor Detail

      • TableGUIMediator

        public TableGUIMediator()
        Instantiates a new table GUI mediator.
    • 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 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.