public abstract class GDialog extends GPanel implements WindowListener
show()
, and hidden with method
hide(boolean)
. This class extends the class GPanel (to display the content). When calling
show()
, the method GPanel.mainClear()
is called before displaying in order to
re-initialize the content.GPanel.Panel, GPanel.ScrollBarVisibility
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GDialog(String title)
Constructor.
|
GDialog(String widgetId,
String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the dialog.
|
boolean |
getCancelled()
Get the flag indicating if the dialog was closed by a cancel operation (cancel button or close window).
|
JDialog |
getJDialog()
Get the associated JDialog.
|
void |
hide(boolean isCancelled)
Hide the dialog from the screen.
|
void |
setMaximumSize(Dimension d)
Set the maximum size of the dialog.
|
void |
setMinimumSize(Dimension d)
Set the minimum size of the dialog.
|
void |
setPreferredSize(Dimension d)
Set the preferred size of the dialog.
|
void |
show()
Show the dialog on the screen.
|
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
clearConstraint, generic, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, setDefaultConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setUnitIncrement, setVerticalScroll, unput
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GDialog(String title)
title
- to be displayed in the frame.public JDialog getJDialog()
public void show() throws GException
GException
- in case of problem clearing the dialog.public void dispose()
public void hide(boolean isCancelled)
isCancelled
- Indicates if the dialog is hidden because it is cancelled or by another cause.public boolean getCancelled()
public void setMinimumSize(Dimension d)
d
- minimum size dimension.public void setPreferredSize(Dimension d)
d
- preferred size dimension.public void setMaximumSize(Dimension d)
d
- maximum size dimension.public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
Copyright © 2024. All rights reserved.