public class GStandardPanelDialog extends GDialog implements GClear
| Index | Class | Item | Constraint |
| 0 | MyPanel | panel | "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 |
GStandardPanelDialog.TypeOfDialog
Enumerate defining the possible configurations of the dialog buttons.
|
GPanel.Panel, GPanel.ScrollBarVisibilityGComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GStandardPanelDialog(String title,
GPanel mainPanel,
GStandardPanelDialog.TypeOfDialog typeDialog)
Constructor.
|
GStandardPanelDialog(String widgetId,
String title,
GPanel mainPanel,
GStandardPanelDialog.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 |
setGPanel(GPanel mainPanel)
Set the main panel.
|
void |
show()
Show the dialog on the screen.
|
dispose, getCancelled, getJDialog, hide, setMaximumSize, setMinimumSize, setPreferredSize, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedclearConstraint, 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, 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, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GStandardPanelDialog(String title, GPanel mainPanel, GStandardPanelDialog.TypeOfDialog typeDialog)
title - of the dialog.mainPanel - GPanel to be included in the dialog.typeDialog - type of the dialog, that defines the buttons that will be displayed in the
dialog.public GStandardPanelDialog(String widgetId, String title, GPanel mainPanel, GStandardPanelDialog.TypeOfDialog typeDialog)
widgetId - widget identifier.title - of the dialog.mainPanel - GPanel 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()
GPanelsetDefaultConstraints in class GPanelpublic void setGPanel(GPanel mainPanel)
setGPanel in class GComponentmainPanel - the new main panel.public void display()
throws GException
display in interface GDisplayGException - in case of problem while reading the value from file.public void clear()
throws GException
clear in interface GClearGException - in case of problem while clearing the values.public void generic()
throws GException
generic in class GPanelGException - in case of problem.public void onButtonOne()
public void onButtonTwo()
public void beforeClickingButtons()
public GComponent getSubComponent(int position) throws GComponentException
getSubComponent in class GComponentposition - position of the requested component.GComponentException - in case the position argument is invalid.Copyright © 2024. All rights reserved.