jmri.jmrit.logix
Class WarrantTableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jmri.jmrit.logix.WarrantTableAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class WarrantTableAction
extends AbstractAction

A WarrantAction contains the operating permissions and directives needed for a train to proceed from an Origin to a Destination. WarrantTableAction provides the menu for panels to List, Edit and Create Warrants. It launched the appropiate frame for each action.

It contains an internal class, TableFrame, that lists existing Warrants controls many of their functions.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Pete Cressman Copyright (C) 2009, 2010
See Also:
Serialized Form

Nested Class Summary
static class WarrantTableAction.ComboBoxCellEditor
           
 
Field Summary
static ResourceBundle 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
WarrantTableAction(String menuOption)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
static void checkPathPortals(OBlock b)
          Validation of paths within a block.
static void closeWarrantFrame(String key)
           
 WarrantFrame getOpenWarrantFrame(String key)
           
static void initPathPortalCheck()
           
static JMenu makeWarrantMenu()
          Note: _warrantMenu is static
static void openWarrantFrame(String key)
           
static boolean showPathPortalErrors()
           
static void updateWarrantMenu()
           
 
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

rb

public static final ResourceBundle rb
Constructor Detail

WarrantTableAction

public WarrantTableAction(String menuOption)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

updateWarrantMenu

public static void updateWarrantMenu()

closeWarrantFrame

public static void closeWarrantFrame(String key)

openWarrantFrame

public static void openWarrantFrame(String key)

getOpenWarrantFrame

public WarrantFrame getOpenWarrantFrame(String key)

initPathPortalCheck

public static void initPathPortalCheck()

checkPathPortals

public static void checkPathPortals(OBlock b)
Validation of paths within a block. Gathers messages in a text area that can be displayed after all are written.


showPathPortalErrors

public static boolean showPathPortalErrors()

makeWarrantMenu

public static JMenu makeWarrantMenu()
Note: _warrantMenu is static



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