jmri.jmrit.beantable
Class AbstractTableTabAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.jmrit.beantable.AbstractTableAction
          extended by jmri.jmrit.beantable.AbstractTableTabAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
EcosLocoTableTabAction, LightTableTabAction, SensorTableTabAction, TurnoutTableTabAction

public abstract class AbstractTableTabAction
extends AbstractTableAction

See Also:
Serialized Form

Nested Class Summary
protected  class AbstractTableTabAction.TabbedTableItem
           
 
Field Summary
protected  JPanel dataPanel
           
protected  JTabbedPane dataTabs
           
protected  boolean init
           
static ResourceBundle rbean
           
protected  ArrayList<AbstractTableTabAction.TabbedTableItem> tabbedTableArray
           
 
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, m, rb
 
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
AbstractTableTabAction(String s)
           
 
Method Summary
protected  void addPressed(ActionEvent e)
           
 void addToBottomBox(JComponent c, String str)
           
 void addToFrame(BeanTableFrame f)
          Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame
protected  void createModel()
          Create the JTable DataModel, along with the changes for the specific NamedBean type
 void dispose()
           
protected abstract  Manager getManager()
           
protected abstract  AbstractTableAction getNewTableAction(String choice)
           
 JPanel getPanel()
           
protected abstract  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 setMenuBar(BeanTableFrame f)
          Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame
protected  void setTitle()
          Include the correct title
 
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addToPanel, getClassDescription, getClassName, getTableDataModel, setFrame, setManager, setMessagePreferencesDetails
 
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

rbean

public static final ResourceBundle rbean

dataPanel

protected JPanel dataPanel

dataTabs

protected JTabbedPane dataTabs

init

protected boolean init

tabbedTableArray

protected ArrayList<AbstractTableTabAction.TabbedTableItem> tabbedTableArray
Constructor Detail

AbstractTableTabAction

public AbstractTableTabAction(String s)
Method Detail

createModel

protected void createModel()
Description copied from class: AbstractTableAction
Create the JTable DataModel, along with the changes for the specific NamedBean type

Specified by:
createModel in class AbstractTableAction

getManager

protected abstract Manager getManager()

getNewTableAction

protected abstract AbstractTableAction getNewTableAction(String choice)

getPanel

public JPanel getPanel()
Overrides:
getPanel in class AbstractTableAction

makeJTable

protected JTable makeJTable(TableSorter sorter)
Overrides:
makeJTable in class AbstractTableAction

setTitle

protected void setTitle()
Description copied from class: AbstractTableAction
Include the correct title

Specified by:
setTitle in class AbstractTableAction

helpTarget

protected abstract String helpTarget()
Description copied from class: AbstractTableAction
Specify the JavaHelp target for this specific panel

Overrides:
helpTarget in class AbstractTableAction

addPressed

protected void addPressed(ActionEvent e)
Specified by:
addPressed in class AbstractTableAction

addToFrame

public void addToFrame(BeanTableFrame f)
Description copied from class: AbstractTableAction
Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame

Overrides:
addToFrame in class AbstractTableAction

setMenuBar

public void setMenuBar(BeanTableFrame f)
Description copied from class: AbstractTableAction
Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame

Overrides:
setMenuBar in class AbstractTableAction

addToBottomBox

public void addToBottomBox(JComponent c,
                           String str)

print

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

Overrides:
print in class AbstractTableAction

dispose

public void dispose()
Overrides:
dispose in class AbstractTableAction


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