public class GSaveResults extends GDialog implements GListener
GPanel.Panel, GPanel.ScrollBarVisibility
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GSaveResults(String title,
File exeFirstCurrentDirectory)
Constructor.
|
GSaveResults(String title,
File exeFirstCurrentDirectory,
String resultFilesDotSuffix,
String contextDotSuffix)
Constructor.
|
GSaveResults(String widgetId,
String title,
File exeFirstCurrentDirectory)
Constructor.
|
GSaveResults(String widgetId,
String title,
File exeFirstCurrentDirectory,
String resultFilesDotSuffix,
String contextDotSuffix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMultipleResultFile(String fileName,
String suffixRex,
String prefix,
boolean needed)
Add a multiple result file to the list of result files.
|
void |
addSingleResultFile(String fileName,
String prefix,
boolean needed)
Add a single result file.
|
void |
addSingleResultFile(String fileName,
String prefix,
String dotSuffix,
boolean needed)
Add a single result file
|
void |
after(GEvent eve)
Method managing what occurs after action.
|
void |
before(GEvent eve)
Called before the event is processed.
|
void |
clearResultFileList()
Clear the result file list.
|
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.
|
GSaveFileResultList |
getResultList()
Get the result list of the last save operation.
|
void |
setContextFile(String fileName,
String prefix,
boolean needed)
Set the context file.
|
protected void |
setDefaultConstraints()
set the defaults constraints
|
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, 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 GSaveResults(String widgetId, String title, File exeFirstCurrentDirectory)
widgetId
- widget identifier.title
- title of the panel.exeFirstCurrentDirectory
- current directory where to start for the first display.public GSaveResults(String title, File exeFirstCurrentDirectory)
title
- title of the panel.exeFirstCurrentDirectory
- current directory where to start for the first display.public GSaveResults(String title, File exeFirstCurrentDirectory, String resultFilesDotSuffix, String contextDotSuffix)
title
- title of the panel.exeFirstCurrentDirectory
- current directory where to start for the first display.resultFilesDotSuffix
- suffix (after dot) of the result files.contextDotSuffix
- suffix (after dot) of the context file.public GSaveResults(String widgetId, String title, File exeFirstCurrentDirectory, String resultFilesDotSuffix, String contextDotSuffix)
widgetId
- widget identifier.title
- title of the panel.exeFirstCurrentDirectory
- current directory where to start for the first display.resultFilesDotSuffix
- suffix (after dot) of the result files.contextDotSuffix
- suffix (after dot) of the context file.protected void setDefaultConstraints()
GPanel
setDefaultConstraints
in class GPanel
public void setContextFile(String fileName, String prefix, boolean needed)
fileName
- initial file name (eventually using the absolute path).prefix
- prefix to be used for the final file name.needed
- indicates if the file is needed or optional.public void clearResultFileList()
public void addSingleResultFile(String fileName, String prefix, boolean needed)
fileName
- initial file name (eventually using the absolute path).prefix
- prefix to be used for the final file name.needed
- indicates if the file is needed or optional.public void addSingleResultFile(String fileName, String prefix, String dotSuffix, boolean needed)
fileName
- initial file name (eventually using the absolute path).prefix
- prefix to be used for the final file name.dotSuffix
- suffix to be used for the final file name.needed
- indicates if the file is needed or optional.public void addMultipleResultFile(String fileName, String suffixRex, String prefix, boolean needed)
fileName
- initial file name glob expression.suffixRex
- regular expression to extract the suffix of the source file from the file
name.prefix
- prefix to be used for the final file name.needed
- indicates if the file is needed or optional.public GSaveFileResultList getResultList()
public void show() throws GException
show
in class GDialog
GException
- in case of problem clearing the dialog.public void display() throws GException
display
in interface GDisplay
GException
- in case of problem while reading the value from file.public void generic() throws GException
generic
in class GPanel
GException
- in case of problem.public void before(GEvent eve) throws GException
before
in interface GListener
eve
- event to processed.GException
- in case there is a problem managing the event.public void after(GEvent eve) throws GException
after
in interface GListener
eve
- GENIUS event.GException
- GENIUS exceptionCopyright © 2024. All rights reserved.