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.ScrollBarVisibilityGComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_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, unputactivateConstraintsByType, 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, writeConfigItempublic 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 WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerCopyright © 2024. All rights reserved.