Package PamView

Class PamSymbolDialog

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PamSymbolDialog extends PamDialog implements ActionListener
Dialog for user control of PamSymbols
Author:
Douglas Gilespie
See Also:
  • Constructor Details

    • PamSymbolDialog

      public PamSymbolDialog(Window parentFrame)
      Private constructor - use Show(PamSymbol ...) to create the dialog
  • Method Details

    • show

      public static PamSymbol show(Window parentFrame, PamSymbol pamSymbol, int x, int y)
      Show the dialog as a specific x,y, location
      Parameters:
      parentFrame - parent Frame for component
      pamSymbol - Existing PamSymbol
      x - x coordinate for dialog on screen
      y - y coordinate for dialog on screen
      Returns:
      modified or new symbol
    • show

      public static PamSymbol show(Window parentFrame, PamSymbol pamSymbol)
      Show the dialog at a default (or most recent) location
      Parameters:
      pamSymbol - Existing Symbol
      Returns:
      modified or new symbol
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • cancelButtonPressed

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • getParams

      public boolean getParams()
      Description copied from class: PamDialog
      called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog.
      Specified by:
      getParams in class PamDialog
    • restoreDefaultSettings

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog