Class 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
Graphical component that is represented as an IWindow, and that has two immediate internal
panels, the top is a
invalid reference
PanelGroupPanelGroupDialog
of PanelGroupDialog.BUTTONS_ACCEPTCANCELAPPLY type.
- Version:
- 15/10/2007
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intDefault height.protected static intDefault width.protected org.gvsig.gui.beans.panelGroup.IPanelGroupThis graphical component has a panel that allows workIPanel.Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionPanelGroupDialog(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 anAbstractPanelGroupon top and another with accept, apply, and cancel buttons on bottom.PanelGroupDialog(String windowTitle, org.gvsig.gui.beans.panelGroup.IPanelGroup panelGroup) Default constructor with two parameters, that creates a panel with anAbstractPanelGroupon top and another with accept, apply, and cancel buttons on bottom. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept()voidactionButtonPressed(org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent e) voidaddPanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) voidapply()voidcancel()voidclose()Closes thisIWindow.org.gvsig.gui.beans.panelGroup.panels.IPanelintintorg.gvsig.andami.ui.mdiManager.WindowInfobooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) booleanDeterminates if this panel is resizable or not.voidloadPanels(org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader loader) voidremovePanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) voidsetEnabledAcceptButton(boolean b) voidsetEnabledApplyButton(boolean b) voidsetEnabledCancelButton(boolean b) voidsetEnabledCloseButton(boolean b) voidsetEnabledExitButton(boolean b) voidsetEnabledHideDetailsButton(boolean b) voidsetEnabledNoButton(boolean b) voidsetEnabledPauseButton(boolean b) voidsetEnabledRestartButton(boolean b) voidsetEnabledSaveButton(boolean b) voidsetEnabledSeeDetailsButton(boolean b) voidsetEnabledYesButton(boolean b) voidsetPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel panel, boolean b) voidsetParentPanelGroup(org.gvsig.gui.beans.panelGroup.IPanelGroup parent) voidsetPreferredSize(Dimension preferredSize) voidupdateReference(Object reference) voidvoidMethods inherited from class org.gvsig.gui.beans.defaultbuttonspanel.DefaultButtonsPanel
add, add, add, add, add, addButtonPressedListener, getButtonsPanel, getContent, getLayout, getWindow, removeButtonPressedListener, setLayoutMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
defaultWidth
protected static int defaultWidthDefault width.
-
defaultHeight
protected static int defaultHeightDefault height.
-
panelGroup
protected org.gvsig.gui.beans.panelGroup.IPanelGroup panelGroupThis graphical component has a panel that allows work
IPanel.- See Also:
-
-
Constructor Details
-
PanelGroupDialog
Default constructor with two parameters, that creates a panel with an
AbstractPanelGroupon top and another with accept, apply, and cancel buttons on bottom.- Parameters:
windowTitle- title for thisIWindowPanelGroup- kind of panel for work with thisIWindow
-
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
AbstractPanelGroupon top and another with accept, apply, and cancel buttons on bottom.Last parameter is the
graphical component that this panel will have, and the previous are information to initialize thisinvalid reference
PanelGroupIWindow.- Parameters:
additionalInfo- additional information about thisIWindowwindowTitle- title for thisIWindowwidth- width for this componentheight- height for this componentwindowInfoProperties- properties about the managing of this dialog by AndamiPanelGroup- kind of panel for work with thisIWindow
-
-
Method Details
-
isResizable
public boolean isResizable()Determinates if this panel is resizable or not.
- Returns:
trueif it's resizable;falseotherwise.
-
close
public void close()Closes this
IWindow. -
getWindowInfo
public org.gvsig.andami.ui.mdiManager.WindowInfo getWindowInfo()- Specified by:
getWindowInfoin interfaceorg.gvsig.andami.ui.mdiManager.IWindow
-
actionButtonPressed
public void actionButtonPressed(org.gvsig.gui.beans.buttonspanel.ButtonsPanelEvent e) - Specified by:
actionButtonPressedin interfaceorg.gvsig.gui.beans.buttonspanel.ButtonsPanelListener
-
windowActivated
public void windowActivated()- Specified by:
windowActivatedin interfaceorg.gvsig.andami.ui.mdiManager.IWindowListener
-
windowClosed
public void windowClosed()- Specified by:
windowClosedin interfaceorg.gvsig.andami.ui.mdiManager.IWindowListener
-
accept
public void accept()- Specified by:
acceptin interfaceorg.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:
addPanelin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup- Throws:
org.gvsig.tools.exception.BaseException
-
apply
public void apply()- Specified by:
applyin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
cancel
public void cancel()- Specified by:
cancelin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
getActivePanel
public org.gvsig.gui.beans.panelGroup.panels.IPanel getActivePanel()- Specified by:
getActivePanelin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
getProperties
- Specified by:
getPropertiesin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
getReference
- Specified by:
getReferencein interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
updateReference
- Specified by:
updateReferencein interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
isAccepted
public boolean isAccepted()- Specified by:
isAcceptedin interfaceorg.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:
loadPanelsin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup- Throws:
org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelExceptionorg.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupExceptionorg.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException
-
removePanel
public void removePanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) - Specified by:
removePanelin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
isPanelInGUI
public boolean isPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) - Specified by:
isPanelInGUIin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
setPanelInGUI
public void setPanelInGUI(org.gvsig.gui.beans.panelGroup.panels.IPanel panel, boolean b) - Specified by:
setPanelInGUIin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
getPanelCount
public int getPanelCount()- Specified by:
getPanelCountin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
getPanelInGUICount
public int getPanelInGUICount()- Specified by:
getPanelInGUICountin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
setPreferredSize
- Overrides:
setPreferredSizein classJComponent
-
setParentPanelGroup
public void setParentPanelGroup(org.gvsig.gui.beans.panelGroup.IPanelGroup parent) - Specified by:
setParentPanelGroupin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup
-
isEnabledAcceptButton
public boolean isEnabledAcceptButton()- Specified by:
isEnabledAcceptButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledApplyButton
public boolean isEnabledApplyButton()- Specified by:
isEnabledApplyButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledCancelButton
public boolean isEnabledCancelButton()- Specified by:
isEnabledCancelButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledCloseButton
public boolean isEnabledCloseButton()- Specified by:
isEnabledCloseButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledExitButton
public boolean isEnabledExitButton()- Specified by:
isEnabledExitButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledHideDetailsButton
public boolean isEnabledHideDetailsButton()- Specified by:
isEnabledHideDetailsButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledNoButton
public boolean isEnabledNoButton()- Specified by:
isEnabledNoButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledPauseButton
public boolean isEnabledPauseButton()- Specified by:
isEnabledPauseButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledRestartButton
public boolean isEnabledRestartButton()- Specified by:
isEnabledRestartButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledSaveButton
public boolean isEnabledSaveButton()- Specified by:
isEnabledSaveButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledSeeDetailsButton
public boolean isEnabledSeeDetailsButton()- Specified by:
isEnabledSeeDetailsButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
isEnabledYesButton
public boolean isEnabledYesButton()- Specified by:
isEnabledYesButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledAcceptButton
public void setEnabledAcceptButton(boolean b) - Specified by:
setEnabledAcceptButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledApplyButton
public void setEnabledApplyButton(boolean b) - Specified by:
setEnabledApplyButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledCancelButton
public void setEnabledCancelButton(boolean b) - Specified by:
setEnabledCancelButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledCloseButton
public void setEnabledCloseButton(boolean b) - Specified by:
setEnabledCloseButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledExitButton
public void setEnabledExitButton(boolean b) - Specified by:
setEnabledExitButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledHideDetailsButton
public void setEnabledHideDetailsButton(boolean b) - Specified by:
setEnabledHideDetailsButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledNoButton
public void setEnabledNoButton(boolean b) - Specified by:
setEnabledNoButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledPauseButton
public void setEnabledPauseButton(boolean b) - Specified by:
setEnabledPauseButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledRestartButton
public void setEnabledRestartButton(boolean b) - Specified by:
setEnabledRestartButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledSaveButton
public void setEnabledSaveButton(boolean b) - Specified by:
setEnabledSaveButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledSeeDetailsButton
public void setEnabledSeeDetailsButton(boolean b) - Specified by:
setEnabledSeeDetailsButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
setEnabledYesButton
public void setEnabledYesButton(boolean b) - Specified by:
setEnabledYesButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel
-
getWindowProfile
- Specified by:
getWindowProfilein interfaceorg.gvsig.andami.ui.mdiManager.IWindow
-