Class PanelGroupDialog

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.gui.beans.defaultbuttonspanel.DefaultButtonsPanel
org.gvsig.app.panelGroup.PanelGroupDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, org.gvsig.andami.ui.mdiManager.IWindow, org.gvsig.andami.ui.mdiManager.IWindowListener, org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener, org.gvsig.gui.beans.buttonspanel.IButtonsPanel, org.gvsig.gui.beans.panelGroup.IPanelGroup

public class PanelGroupDialog extends org.gvsig.gui.beans.defaultbuttonspanel.DefaultButtonsPanel implements org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener, org.gvsig.andami.ui.mdiManager.IWindow, org.gvsig.andami.ui.mdiManager.IWindowListener, org.gvsig.gui.beans.panelGroup.IPanelGroup, org.gvsig.gui.beans.buttonspanel.IButtonsPanel, Serializable

Graphical component that is represented as an IWindow, and that has two immediate internal panels, the top is a

invalid reference
PanelGroup
, and the bottom is a PanelGroupDialog of PanelGroupDialog.BUTTONS_ACCEPTCANCELAPPLY type.

Version:
15/10/2007
Author:
Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
See Also:
  • Field Details

    • defaultWidth

      protected static int defaultWidth

      Default width.

    • defaultHeight

      protected static int defaultHeight

      Default height.

    • panelGroup

      protected org.gvsig.gui.beans.panelGroup.IPanelGroup panelGroup

      This graphical component has a panel that allows work IPanel.

      See Also:
      • invalid reference
        #getPanelGroup()
  • Constructor Details

    • PanelGroupDialog

      public PanelGroupDialog(String windowTitle, org.gvsig.gui.beans.panelGroup.IPanelGroup panelGroup)

      Default constructor with two parameters, that creates a panel with an AbstractPanelGroup on top and another with accept, apply, and cancel buttons on bottom.

      Parameters:
      windowTitle - title for this IWindow
      PanelGroup - kind of panel for work with this IWindow
    • PanelGroupDialog

      public PanelGroupDialog(String additionalInfo, String windowTitle, int width, int height, byte windowInfoProperties, org.gvsig.gui.beans.panelGroup.IPanelGroup panelGroup)

      Default constructor with six parameters, that creates a panel with an AbstractPanelGroup on top and another with accept, apply, and cancel buttons on bottom.

      Last parameter is the

      invalid reference
      PanelGroup
      graphical component that this panel will have, and the previous are information to initialize this IWindow.

      Parameters:
      additionalInfo - additional information about this IWindow
      windowTitle - title for this IWindow
      width - width for this component
      height - height for this component
      windowInfoProperties - properties about the managing of this dialog by Andami
      PanelGroup - kind of panel for work with this IWindow
  • Method Details

    • isResizable

      public boolean isResizable()

      Determinates if this panel is resizable or not.

      Returns:
      true if it's resizable; false otherwise.
    • close

      public void close()

      Closes this IWindow.

    • getWindowInfo

      public org.gvsig.andami.ui.mdiManager.WindowInfo getWindowInfo()
      Specified by:
      getWindowInfo in interface org.gvsig.andami.ui.mdiManager.IWindow
    • actionButtonPressed

      public void actionButtonPressed(org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent e)
      Specified by:
      actionButtonPressed in interface org.gvsig.gui.beans.buttonspanel.ButtonsPanelListener
    • windowActivated

      public void windowActivated()
      Specified by:
      windowActivated in interface org.gvsig.andami.ui.mdiManager.IWindowListener
    • windowClosed

      public void windowClosed()
      Specified by:
      windowClosed in interface org.gvsig.andami.ui.mdiManager.IWindowListener
    • accept

      public void accept()
      Specified by:
      accept in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • addPanel

      public void addPanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) throws org.gvsig.tools.exception.BaseException
      Specified by:
      addPanel in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
      Throws:
      org.gvsig.tools.exception.BaseException
    • apply

      public void apply()
      Specified by:
      apply in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • cancel

      public void cancel()
      Specified by:
      cancel in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • getActivePanel

      public org.gvsig.gui.beans.panelGroup.panels.IPanel getActivePanel()
      Specified by:
      getActivePanel in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • getProperties

      public Hashtable getProperties()
      Specified by:
      getProperties in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • getReference

      public Object getReference()
      Specified by:
      getReference in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • updateReference

      public void updateReference(Object reference)
      Specified by:
      updateReference in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • isAccepted

      public boolean isAccepted()
      Specified by:
      isAccepted in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • loadPanels

      public void loadPanels(org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader loader) throws org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelException, org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupException, org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException
      Specified by:
      loadPanels in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
      Throws:
      org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelException
      org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupException
      org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException
    • removePanel

      public void removePanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel)
      Specified by:
      removePanel in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • isPanelInGUI

      public boolean isPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel panel)
      Specified by:
      isPanelInGUI in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • setPanelInGUI

      public void setPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel panel, boolean b)
      Specified by:
      setPanelInGUI in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • getPanelCount

      public int getPanelCount()
      Specified by:
      getPanelCount in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • getPanelInGUICount

      public int getPanelInGUICount()
      Specified by:
      getPanelInGUICount in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • setPreferredSize

      public void setPreferredSize(Dimension preferredSize)
      Overrides:
      setPreferredSize in class JComponent
    • setParentPanelGroup

      public void setParentPanelGroup(org.gvsig.gui.beans.panelGroup.IPanelGroup parent)
      Specified by:
      setParentPanelGroup in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
    • isEnabledAcceptButton

      public boolean isEnabledAcceptButton()
      Specified by:
      isEnabledAcceptButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledApplyButton

      public boolean isEnabledApplyButton()
      Specified by:
      isEnabledApplyButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledCancelButton

      public boolean isEnabledCancelButton()
      Specified by:
      isEnabledCancelButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledCloseButton

      public boolean isEnabledCloseButton()
      Specified by:
      isEnabledCloseButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledExitButton

      public boolean isEnabledExitButton()
      Specified by:
      isEnabledExitButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledHideDetailsButton

      public boolean isEnabledHideDetailsButton()
      Specified by:
      isEnabledHideDetailsButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledNoButton

      public boolean isEnabledNoButton()
      Specified by:
      isEnabledNoButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledPauseButton

      public boolean isEnabledPauseButton()
      Specified by:
      isEnabledPauseButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledRestartButton

      public boolean isEnabledRestartButton()
      Specified by:
      isEnabledRestartButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledSaveButton

      public boolean isEnabledSaveButton()
      Specified by:
      isEnabledSaveButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledSeeDetailsButton

      public boolean isEnabledSeeDetailsButton()
      Specified by:
      isEnabledSeeDetailsButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • isEnabledYesButton

      public boolean isEnabledYesButton()
      Specified by:
      isEnabledYesButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledAcceptButton

      public void setEnabledAcceptButton(boolean b)
      Specified by:
      setEnabledAcceptButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledApplyButton

      public void setEnabledApplyButton(boolean b)
      Specified by:
      setEnabledApplyButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledCancelButton

      public void setEnabledCancelButton(boolean b)
      Specified by:
      setEnabledCancelButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledCloseButton

      public void setEnabledCloseButton(boolean b)
      Specified by:
      setEnabledCloseButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledExitButton

      public void setEnabledExitButton(boolean b)
      Specified by:
      setEnabledExitButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledHideDetailsButton

      public void setEnabledHideDetailsButton(boolean b)
      Specified by:
      setEnabledHideDetailsButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledNoButton

      public void setEnabledNoButton(boolean b)
      Specified by:
      setEnabledNoButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledPauseButton

      public void setEnabledPauseButton(boolean b)
      Specified by:
      setEnabledPauseButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledRestartButton

      public void setEnabledRestartButton(boolean b)
      Specified by:
      setEnabledRestartButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledSaveButton

      public void setEnabledSaveButton(boolean b)
      Specified by:
      setEnabledSaveButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledSeeDetailsButton

      public void setEnabledSeeDetailsButton(boolean b)
      Specified by:
      setEnabledSeeDetailsButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • setEnabledYesButton

      public void setEnabledYesButton(boolean b)
      Specified by:
      setEnabledYesButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
    • getWindowProfile

      public Object getWindowProfile()
      Specified by:
      getWindowProfile in interface org.gvsig.andami.ui.mdiManager.IWindow