jmri.jmrit.operations.rollingstock.cars
Class CarEditFrame

Show UML class diagram
java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by jmri.util.JmriJFrame
                          extended by jmri.jmrit.operations.OperationsFrame
                              extended by jmri.jmrit.operations.rollingstock.cars.CarEditFrame
All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface

public class CarEditFrame
extends OperationsFrame
implements PropertyChangeListener

Frame for user edit of car

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Nested classes/interfaces inherited from interface jmri.util.swing.WindowInterface
WindowInterface.Hint
 
Field Summary
(package private)  Car _car
           
(package private)  JButton addButton
           
(package private)  JCheckBox autoCheckBox
           
(package private)  JCheckBox autoTrackCheckBox
           
(package private)  JTextField builtTextField
           
(package private)  JCheckBox cabooseCheckBox
           
(package private)  CarManager carManager
           
(package private)  JButton clearRoadNumberButton
           
static String COLOR
           
(package private)  JComboBox colorComboBox
           
(package private)  JTextField commentTextField
           
(package private)  JButton deleteButton
           
(package private)  JButton editColorButton
           
(package private)  JButton editKernelButton
           
(package private)  JButton editLengthButton
           
(package private)  JButton editLoadButton
           
(package private)  JButton editOwnerButton
           
(package private)  JButton editRoadButton
           
(package private)  JButton editTypeButton
           
(package private)  CarAttributeEditFrame f
           
(package private)  JButton fillWeightButton
           
(package private)  JCheckBox fredCheckBox
           
(package private)  JCheckBox hazardousCheckBox
           
static String KERNEL
           
(package private)  JComboBox kernelComboBox
           
(package private)  CarLoadEditFrame lef
           
static String LENGTH
           
(package private)  JComboBox lengthComboBox
           
(package private)  JComboBox loadComboBox
           
(package private)  JComboBox locationBox
           
(package private)  LocationManager locationManager
           
(package private) static org.slf4j.Logger log
           
(package private)  CarManagerXml managerXml
           
static String OWNER
           
(package private)  JComboBox ownerComboBox
           
(package private)  JCheckBox passengerCheckBox
           
(package private)  JTextField rfidTextField
           
static String ROAD
           
(package private)  JComboBox roadComboBox
           
(package private)  JTextField roadNumberTextField
           
(package private)  JButton saveButton
           
(package private)  JLabel textWeightOz
           
(package private)  JLabel textWeightTons
           
(package private)  JComboBox trackLocationBox
           
static String TYPE
           
(package private)  JComboBox typeComboBox
           
(package private)  JCheckBox utilityCheckBox
           
(package private)  JTextField valueTextField
           
(package private)  JTextField weightTextField
           
(package private)  JTextField weightTonsTextField
           
 
Fields inherited from class jmri.jmrit.operations.OperationsFrame
trainDirtyTask
 
Fields inherited from class jmri.util.JmriJFrame
allowInFrameServlet, properties, reuseFrameSavedPosition, reuseFrameSavedSized, windowInterface
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CarEditFrame()
           
 
Method Summary
 void buttonActionPerformed(ActionEvent ae)
           
 void buttonEditActionPerformed(ActionEvent ae)
           
 void checkBoxActionPerformed(ActionEvent ae)
           
 void comboBoxActionPerformed(ActionEvent ae)
           
 void dispose()
          When window is finally destroyed, remove it from the list of windows.
 void initComponents()
          By default, Swing components should be created an installed in this method, rather than in the ctor itself.
 void loadCar(Car car)
           
 void propertyChange(PropertyChangeEvent e)
           
 
Methods inherited from class jmri.jmrit.operations.OperationsFrame
addButtonAction, addCheckBoxAction, addComboBoxAction, addItem, addItem, addItemLeft, addItemLeft, addItemTop, addItemWidth, addItemWidth, addRadioButtonAction, addSpinnerChangeListerner, clearTableSort, createShutDownTask, getNumberOfCheckboxes, loadTableDetails, radioButtonActionPerformed, saveTableDetails, selectNextItemComboBox, spinnerChangeEvent, storeValues
 
Methods inherited from class jmri.util.JmriJFrame
addHelpMenu, addNotify, componentHidden, componentMoved, componentResized, componentShown, generateWindowRef, getAllowInFrameServlet, getEscapeKeyAction, getEscapeKeyClosesWindow, getFrame, getFrame, getFrameList, getFrameList, getIndexedProperty, getMaximumSize, getModifiedFlag, getPreferredSize, getProperty, getPropertyNames, getSavePosition, getSaveSize, getWindowFrameRef, getWindowInterface, handleModified, hasProperty, makePrivateWindow, markWindowModified, multipleInstances, pack, setAllowInFrameServlet, setEscapeKeyAction, setEscapeKeyClosesWindow, setIndexedProperty, setModifiedFlag, setProperty, setSavePosition, setSaveSize, setShutDownTask, setWindowInterface, show, show, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

carManager

CarManager carManager

managerXml

CarManagerXml managerXml

locationManager

LocationManager locationManager

_car

Car _car

textWeightOz

JLabel textWeightOz

textWeightTons

JLabel textWeightTons

editRoadButton

JButton editRoadButton

clearRoadNumberButton

JButton clearRoadNumberButton

editTypeButton

JButton editTypeButton

editColorButton

JButton editColorButton

editLengthButton

JButton editLengthButton

fillWeightButton

JButton fillWeightButton

editLoadButton

JButton editLoadButton

editKernelButton

JButton editKernelButton

editOwnerButton

JButton editOwnerButton

saveButton

JButton saveButton

deleteButton

JButton deleteButton

addButton

JButton addButton

autoCheckBox

JCheckBox autoCheckBox

autoTrackCheckBox

JCheckBox autoTrackCheckBox

passengerCheckBox

JCheckBox passengerCheckBox

cabooseCheckBox

JCheckBox cabooseCheckBox

fredCheckBox

JCheckBox fredCheckBox

utilityCheckBox

JCheckBox utilityCheckBox

hazardousCheckBox

JCheckBox hazardousCheckBox

roadNumberTextField

JTextField roadNumberTextField

builtTextField

JTextField builtTextField

weightTextField

JTextField weightTextField

weightTonsTextField

JTextField weightTonsTextField

commentTextField

JTextField commentTextField

valueTextField

JTextField valueTextField

rfidTextField

JTextField rfidTextField

roadComboBox

JComboBox roadComboBox

typeComboBox

JComboBox typeComboBox

colorComboBox

JComboBox colorComboBox

lengthComboBox

JComboBox lengthComboBox

ownerComboBox

JComboBox ownerComboBox

locationBox

JComboBox locationBox

trackLocationBox

JComboBox trackLocationBox

loadComboBox

JComboBox loadComboBox

kernelComboBox

JComboBox kernelComboBox

lef

CarLoadEditFrame lef

ROAD

public static final String ROAD

TYPE

public static final String TYPE

COLOR

public static final String COLOR

LENGTH

public static final String LENGTH

OWNER

public static final String OWNER

KERNEL

public static final String KERNEL

f

CarAttributeEditFrame f

log

static org.slf4j.Logger log
Constructor Detail

CarEditFrame

public CarEditFrame()
Method Detail

initComponents

public void initComponents()
Description copied from class: JmriJFrame
By default, Swing components should be created an installed in this method, rather than in the ctor itself.

Overrides:
initComponents in class JmriJFrame

loadCar

public void loadCar(Car car)

comboBoxActionPerformed

public void comboBoxActionPerformed(ActionEvent ae)
Overrides:
comboBoxActionPerformed in class OperationsFrame

checkBoxActionPerformed

public void checkBoxActionPerformed(ActionEvent ae)
Overrides:
checkBoxActionPerformed in class OperationsFrame

buttonActionPerformed

public void buttonActionPerformed(ActionEvent ae)
Overrides:
buttonActionPerformed in class OperationsFrame

buttonEditActionPerformed

public void buttonEditActionPerformed(ActionEvent ae)

dispose

public void dispose()
Description copied from class: JmriJFrame
When window is finally destroyed, remove it from the list of windows.

Subclasses that over-ride this method must invoke this implementation with super.dispose()

Specified by:
dispose in interface WindowInterface
Overrides:
dispose in class JmriJFrame

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener


Copyright © 1997-2013 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