Class DisplayFrame

All Implemented Interfaces:
ComponentListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, BeanInterface, ModifiedFlag, WindowInterface
Direct Known Subclasses:
ItemPalette

public class DisplayFrame
extends JmriJFrame
Extended JmriJFrame that allows to add an InitEventListener for display of a tabbed frame in the CPE Add Item ItemPalette pane.

UML Class diagram

See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • DisplayFrame

      public DisplayFrame​(boolean saveSize, boolean savePosition)
      Create a JmriJFrame with standard settings, optional save/restore of size and position.
      Parameters:
      saveSize - set true to save the last known size
      savePosition - set true to save the last known location
    • DisplayFrame

      public DisplayFrame​(String name, boolean saveSize, boolean savePosition)
      Create a JmriJFrame with with given name plus standard settings, including optional save/restore of size and position.
      Parameters:
      name - title of the Frame
      saveSize - set true to save the last knowm size
      savePosition - set true to save the last known location
    • DisplayFrame

      public DisplayFrame​(String name, Editor editor)
      Create a JmriJFrame for ItemPalette or for edit popups of a given editor panel. Such child classes need to provide backgrounds for their panes and panels.
      Parameters:
      name - title of the Frame
      editor - editor of panel items
    • DisplayFrame

      public DisplayFrame()
      Create a JmriJFrame with standard settings, including saving/restoring of size and position.
    • DisplayFrame

      public DisplayFrame​(String name)
      Create a JmriJFrame with with given name plus standard settings, including saving/restoring of size and position.
      Parameters:
      name - title of the JFrame
  • Method Details