jmri.jmrit.beantable
Class AbstractTableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.jmrit.beantable.AbstractTableAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
AbstractTableTabAction, AudioTableAction, BlockTableAction, EcosLocoTableAction, IdTagTableAction, LightTableAction, LogixTableAction, LRouteTableAction, MemoryTableAction, ReporterTableAction, RouteTableAction, SectionTableAction, SensorTableAction, SignalGroupTableAction, SignalHeadTableAction, SignalMastLogicTableAction, SignalMastTableAction, TransitTableAction, TurnoutTableAction

public abstract class AbstractTableAction
extends AbstractAction

Swing action to create and register a SignalHeadTable GUI

Author:
Bob Jacobsen Copyright (C) 2003
See Also:
Serialized Form

Field Summary
protected  BeanTableFrame f
           
protected  BeanTableDataModel m
           
static ResourceBundle rb
           
static ResourceBundle rbean
           
 
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
 
Constructor Summary
AbstractTableAction(String actionName)
           
AbstractTableAction(String actionName, Object option)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected abstract  void addPressed(ActionEvent e)
           
 void addToFrame(BeanTableFrame f)
          Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame
 void addToPanel(AbstractTableTabAction f)
          If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame
protected abstract  void createModel()
          Create the JTable DataModel, along with the changes for the specific NamedBean type
 void dispose()
           
 String getClassDescription()
           
protected abstract  String getClassName()
           
 JPanel getPanel()
           
 BeanTableDataModel getTableDataModel()
           
protected  String helpTarget()
          Specify the JavaHelp target for this specific panel
protected  JTable makeJTable(TableSorter sorter)
           
 void print(JTable.PrintMode mode, MessageFormat headerFormat, MessageFormat footerFormat)
          Used with the Tabbed instances of table action, so that the print option is handled via that on the appropriate tab.
 void setFrame(BeanTableFrame frame)
           
protected  void setManager(Manager man)
          If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.
 void setMenuBar(BeanTableFrame f)
          Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame
 void setMessagePreferencesDetails()
           
protected abstract  void setTitle()
          Include the correct title
 
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
 

Field Detail

m

protected BeanTableDataModel m

rbean

public static final ResourceBundle rbean

rb

public static final ResourceBundle rb

f

protected BeanTableFrame f
Constructor Detail

AbstractTableAction

public AbstractTableAction(String actionName)

AbstractTableAction

public AbstractTableAction(String actionName,
                           Object option)
Method Detail

createModel

protected abstract void createModel()
Create the JTable DataModel, along with the changes for the specific NamedBean type


setTitle

protected abstract void setTitle()
Include the correct title


actionPerformed

public void actionPerformed(ActionEvent e)

makeJTable

protected JTable makeJTable(TableSorter sorter)

getTableDataModel

public BeanTableDataModel getTableDataModel()

setFrame

public void setFrame(BeanTableFrame frame)

addToFrame

public void addToFrame(BeanTableFrame f)
Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame


addToPanel

public void addToPanel(AbstractTableTabAction f)
If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame


setManager

protected void setManager(Manager man)
If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.


setMenuBar

public void setMenuBar(BeanTableFrame f)
Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame


getPanel

public JPanel getPanel()

dispose

public void dispose()

helpTarget

protected String helpTarget()
Specify the JavaHelp target for this specific panel


getClassDescription

public String getClassDescription()

setMessagePreferencesDetails

public void setMessagePreferencesDetails()

getClassName

protected abstract String getClassName()

print

public void print(JTable.PrintMode mode,
                  MessageFormat headerFormat,
                  MessageFormat footerFormat)
Used with the Tabbed instances of table action, so that the print option is handled via that on the appropriate tab.


addPressed

protected abstract void addPressed(ActionEvent e)


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads