Class ListedTableAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class ListedTableAction
    extends javax.swing.AbstractAction
    Table Action for dealing with all the JMRI NamedBean etc. tables in a single view with a list option to the left hand side. Enclosing frame is opened from the Tools - Tables menu.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int dividerLocation  
      (package private) ListedTableFrame<?> f  
      (package private) java.lang.String gotoListItem  
      (package private) java.lang.String title  
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed()  
      void actionPerformed​(java.awt.event.ActionEvent e)  
      void addToFrame​(ListedTableFrame<?> f)  
      (package private) java.lang.String helpTarget()  
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • ListedTableAction

        public ListedTableAction​(java.lang.String s,
                                 java.lang.String selection)
        Create an action with a specific title.

        Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?

        Parameters:
        s - title of the action
        selection - item representing this table in de index to the left side of the containing frame
      • ListedTableAction

        public ListedTableAction​(java.lang.String s,
                                 java.lang.String selection,
                                 int divider)