Package hec.gui

Class PanelEditor

All Implemented Interfaces:
ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable, ClosableDialog
Direct Known Subclasses:
PanelEditor, SelectorPanelEditor

public class PanelEditor extends RmaJDialog implements ClosableDialog
See Also:
  • Field Details

    • _panelContainer

      protected JPanel _panelContainer
    • cmdPanel

      protected ButtonCmdPanel cmdPanel
    • _canceled

      protected boolean _canceled
    • _panelList

      protected Vector _panelList
  • Constructor Details

    • PanelEditor

      public PanelEditor(Frame parent, boolean modal)
    • PanelEditor

      public PanelEditor(Dialog parent, boolean modal)
    • PanelEditor

      public PanelEditor(Window owner, boolean modal)
    • PanelEditor

      public PanelEditor(Frame parent)
    • PanelEditor

      public PanelEditor(Dialog owner)
    • PanelEditor

      public PanelEditor(Window owner)
    • PanelEditor

      public PanelEditor()
    • PanelEditor

      public PanelEditor(Frame parent, boolean modal, boolean alwaysUseTabs)
    • PanelEditor

      public PanelEditor(Dialog parent, boolean modal, boolean alwaysUseTabs)
    • PanelEditor

      public PanelEditor(Window owner, boolean modal, boolean alwaysUseTabs)
    • PanelEditor

      public PanelEditor(boolean alwaysUseTabs)
  • Method Details

    • handleButtonCmdActionPerformed

      protected void handleButtonCmdActionPerformed(ActionEvent e)
      Parameters:
      e -
    • getButtonCmdPanelButtons

      protected int getButtonCmdPanelButtons()
      Returns:
    • okButtonAction

      public void okButtonAction()
      handle the OK button being pressed
    • applyButtonAction

      public boolean applyButtonAction()
      handle the Apply button being pressed.
      Returns:
      true if the Apply action was successful
    • cancelButtonAction

      public void cancelButtonAction()
      handle the cancel button being pressed.
    • isCanceled

      public boolean isCanceled()
    • addPanel

      public void addPanel(AbstractEditorPanel panel)
    • setStreamAlignment

      public void setStreamAlignment(StreamAlignmentIfc alignment)
    • fillForm

      public void fillForm(NamedType dobj)
    • saveForm

      public boolean saveForm()
    • saveForm

      public boolean saveForm(NamedType dobj)
    • getTabbedPane

      public RmaJTabbedPane getTabbedPane()
      Returns the tab pane used when there are more than one editor panels. If there are 0 to 1 editor panels, then no tabbed pane is used and a null value is returned.
      Returns:
    • getCurrentPanel

      public AbstractEditorPanel getCurrentPanel()
    • windowClosing

      protected void windowClosing()
    • closeDialog

      public boolean closeDialog()
      Specified by:
      closeDialog in interface ClosableDialog
    • addSaveListener

      public void addSaveListener(SaveEventListener listener)
    • removeSaveListener

      public void removeSaveListener(SaveEventListener listener)
    • fireSaveEvent

      protected void fireSaveEvent()
    • getBottomPanel

      protected JPanel getBottomPanel()
      return the panel along the bottom of the dialog that the ButtonCmdPanel lives in. subclasses can add a component at gridx=0 if they need a component to share the row to the left with the ButtonCmdPanel
      Returns:
    • setAlwaysUseTabs

      public void setAlwaysUseTabs(boolean alwaysUseTabs)
      must be called before the first panel is added
      Parameters:
      alwaysUseTabs - true to always display tabs
    • shouldAlwaysUseTabs

      public boolean shouldAlwaysUseTabs()