public class GPanTest extends GFrame implements GListener
| Index | Class | Item | Constraint |
| 0 | GInternalPanel | internalPanel | "newline , pushx , pushy , growx , growy"
(see table below) |
| Index | Class | Item | Constraint |
| 0, 0 | GButton | loadButton | "split 8" |
| 0, 1 | GButton | saveButton | "gapleft 4" |
| 0, 2 | GButton | clearButton | "gapleft 4" |
| 0, 3 | GButton | copyButton | "gapleft 4" |
| 0, 4 | GButton | pasteButton | "gapleft 4" |
| 0, 5 | GButton | importButton | "gapleft 4" |
| 0, 6 | GButton | exportButton | "gapleft 4" |
| 0, 7 | GButton | condenseStatusButton | "gapleft 4" |
| 0, 8 | GButton | quitButton | "pushx , alignx Right" |
| 0, 9 | MyPanel | testComponentPanel | "newline , pushx , pushy , growx , growy" |
| 0, 10 | GStatusDialog | condensedStatusDialog | "newline , pushx , pushy , growx , growy" (see table below) |
| Index | Class | Item | Constraint |
| 0, 10, 0 | GLabel | statusTitle | "newline , split 2" |
| 0, 10, 1 | GLabel | statusLabel | (null) |
| 0, 10, 2 | GTextAreaWithLabel | warningListLabel | 0, 10, 2, 0 => "newline" 0, 10, 2, 1 => "newline , pushx , pushy , growx , growy , width 350 , height 100" |
| 0, 10, 3 | GTextAreaWithLabel | errorListLabel | 0, 10, 3, 0 => "newline" 0, 10, 3, 1 => "newline , pushx , pushy , growx , growy , width 350 , height 100" |
GFrame.CloseActionGComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GPanTest(String title,
GComponent testComponent)
Constructor.
|
GPanTest(String title,
GComponent testComponent,
String confFilename)
Constructor.
|
GPanTest(String title,
GMenuBar menuBar,
GComponent testComponent)
Constructor.
|
GPanTest(String title,
GMenuBar menuBar,
GComponent testComponent,
String confFilename)
Constructor.
|
GPanTest(String title,
GMenuBar menuBar,
GComponent testComponent,
String confFilename,
boolean showStatusButton,
boolean showIsModified)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
after(GEvent e)
Called after the event is processed.
|
void |
before(GEvent e)
Called before the event is processed.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
void |
setAskOnQuit(boolean askOnQuit)
Set the flag controlling if a dialog shall be displayed before qutting.
|
void |
setShowExceptionDialog(boolean showExecptionDialog)
Set the flag controlling th edisplay of the exception dialog.
|
void |
showException(Throwable exception)
Show the exception dialog containing the exception information.
|
display, dispose, getComponent, getJFrame, setDefaultCloseOperation, setGMenuBar, setGPanel, setMaximumSize, setMinimumSize, setPreferredSize, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedactivateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, 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, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, 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 GPanTest(String title, GMenuBar menuBar, GComponent testComponent, String confFilename, boolean showStatusButton, boolean showIsModified)
title - to be displayed in the frame.menuBar - to be displayed in the frame.testComponent - component to test.confFilename - data file name.showStatusButton - whether to display or not the condensed "Status" button and dialogue.
Additionally, the testComponent must implement GCondensedStatusInterface.showIsModified - whether to display or not the condensed "isModified" button and
dialogue. Additionally, the testComponent must implement
GCondensedIsModifiedInterface.public GPanTest(String title, GMenuBar menuBar, GComponent testComponent, String confFilename)
title - to be displayed in the frame.menuBar - to be displayed in the frame.testComponent - component to test.confFilename - data file name.public GPanTest(String title, GMenuBar menuBar, GComponent testComponent)
title - to be displayed in the frame.menuBar - to be displayed in the frame.testComponent - component to test.public GPanTest(String title, GComponent testComponent, String confFilename)
title - to be displayed in the frame.testComponent - component to test.confFilename - data file name.public GPanTest(String title, GComponent testComponent)
title - to be displayed in the frame.testComponent - component to test.public GComponent getSubComponent(int position) throws GComponentException
getSubComponent in class GComponentposition - position of the requested component.GComponentException - in case the position argument is invalid.public void before(GEvent e) throws GException
before in interface GListenere - event to processed.GException - in case there is a problem managing the event.public void after(GEvent e) throws GException
after in interface GListenere - processed event.GException - in case there is a problem managing the event.public void setAskOnQuit(boolean askOnQuit)
askOnQuit - true if the dialog shall be displayed, false otherwise.public void setShowExceptionDialog(boolean showExecptionDialog)
showExecptionDialog - if true the exception dialog is displayed when execptions occurs
in the event loop.public void showException(Throwable exception)
exception - the exception do display.Copyright © 2024. All rights reserved.