public class GStandardDialog extends GDialog implements GClear
Index | Class | Item | Constraint |
0 | MyContainer | container | "newline" |
1 | ButtonPanel | buttonBox | "dock South" (see table below) |
Index | Class | Item | Constraint |
1, 0 | GButton | m_yesButton | "split 2 , alignx Left" |
1, 1 | GButton | m_noButton | "alignx Left" |
1, 2 | GButton | m_cancelButton | "alignx Right" |
Modifier and Type | Class and Description |
---|---|
static class |
GStandardDialog.TypeOfDialog
Enumerate defining the possible configurations of the dialog buttons.
|
GPanel.Panel, GPanel.ScrollBarVisibility
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GStandardDialog(String title,
GContainer mainContainer,
GStandardDialog.TypeOfDialog typeDialog)
Constructor.
|
GStandardDialog(String widgetId,
String title,
GContainer mainContainer,
GStandardDialog.TypeOfDialog typeDialog)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
beforeClickingButtons()
Actions to be performed before clicking any button.
|
void |
clear()
Called when the element is to be cleared, so it can perform the actions required to return to the last
saved/loaded values.
|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
void |
generic()
Abstract generic function that need to be implemented by the descendants.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
void |
onButtonOne()
Actions to be performed when clicking in OK or YES buttons.
|
void |
onButtonTwo()
Actions to be performed when clicking in CANCEL or NO buttons.
|
protected void |
setDefaultConstraints()
set the defaults constraints
|
void |
setGContainer(GContainer mainContainer)
Set the main container.
|
void |
show()
Show the dialog on the screen.
|
dispose, getCancelled, getJDialog, hide, setMaximumSize, setMinimumSize, setPreferredSize, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, 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, 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 GStandardDialog(String title, GContainer mainContainer, GStandardDialog.TypeOfDialog typeDialog)
title
- of the dialog.mainContainer
- GContainer to be included in the dialog.typeDialog
- type of the dialog, that defines the buttons that will be displayed in the
dialog.public GStandardDialog(String widgetId, String title, GContainer mainContainer, GStandardDialog.TypeOfDialog typeDialog)
widgetId
- widget identifier.title
- of the dialog.mainContainer
- GContainer to be included in the dialog.typeDialog
- type of the dialog, that defines the buttons that will be displayed in the
dialog.protected final void setDefaultConstraints()
GPanel
setDefaultConstraints
in class GPanel
public void setGContainer(GContainer mainContainer)
mainContainer
- the new main container.public void display() throws GException
display
in interface GDisplay
GException
- in case of problem while reading the value from file.public void clear() throws GException
clear
in interface GClear
GException
- in case of problem while clearing the values.public void generic() throws GException
generic
in class GPanel
GException
- in case of problem.public void onButtonOne()
public void onButtonTwo()
public void beforeClickingButtons()
public GComponent getSubComponent(int position) throws GComponentException
getSubComponent
in class GComponent
position
- position of the requested component.GComponentException
- in case the position argument is invalid.Copyright © 2024. All rights reserved.