public abstract static class DocumentedDistribution2.Configuration<MM extends Model,GG extends Gui> extends Object implements Cloneable
DocumentedDistribution2
.
An instance must be passed by the constructor code of the that subclass
when calling the super constructor
DocumentedDistribution2.DocumentedDistribution2(Configuration)
.Modifier and Type | Field and Description |
---|---|
@Opt String |
buildDate
The current build date.
|
@Opt String |
copyrightString
The year and holders of the copyright.
|
MM |
defaultOptionsModel
One instance of the options model class must be provided here by the
derived sub-class(="the caller").
|
@Opt String |
DEnS_download_position
The URL from which the "DEnS" jar file may be read.
|
String |
DEnS_local_dir_name
The name of the directory into which DEnS (= documentation, example and source)
will be downloaded, relative to
DocumentedDistribution2.DEnS_dir (=the one single user-defined DEnS
download point). |
@Opt String |
emailForBugReport
Where to send bug reports.
|
boolean |
emptyOptionsCauseOnlyUsage
Whether a completely empty command line shows usage() and exits.
|
int |
enumSetFlowWidth
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
@Opt String[] |
examplesShortNames
Nick names under which the standard examples are presented in the Menu.
|
Function<MM,Boolean> |
getOpt_clearPersistency
Access to the cmd line option for clearing the persistency store.
|
Function<MM,Boolean> |
getOpt_gui
Access to the cmd line option for always starting the gui.
|
Function<MM,Boolean> |
getOpt_help
Access to the cmd line option for printing the help text.
|
Function<MM,String> |
getOpt_language
Access to the cmd line option for language selection.
|
Function<MM,Boolean> |
getOpt_version
Access to the cmd line option for printing the version.
|
@Opt String |
iconRelativePath
Relative path of a resource holding a middle-sized icon, used in message windows etc.
|
int |
insetsLabelsHorizontal
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
int |
insetsLabelsVertical
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
int |
insetsOptionsHorizontal
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
int |
insetsOptionsVertical
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
@Opt String |
licenseString
The license under which the program and its sources may by used, distibuted etc.
|
boolean |
noWarranty
Whether to print a standard "no warranty" string.
|
GG |
optionsGui
Instance employed in all graphic based modes of operation.
|
int |
overallHeight
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
int |
overallWidth
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
int |
parameterControlFlowWidth
The subclass can change these geometric GUI parameters according to
OS dependent heuristics.
|
@Opt String |
programContextName
The name of a programming projet this program belongs to.
|
String |
programName
The name of this program.
|
String |
programVersionString
The current version of this program.
|
boolean |
resumeLastRunOptions
Whether on start-up the parameters of the last payload run are reconstructed.
|
boolean |
runsOnFiles
Whether the program needs input data in the file system.
|
boolean |
runsOnlineOnly
Whether the program needs permanent internet access for running.
|
boolean |
runSwitchesToMessageTab
Whether the run button click causes a switch to the message pane.
|
boolean |
startWithStatusInformationDialog
Whether to start with the status info window.
|
boolean |
storeOnlySuccessful
Whether to store the parameters into the persistent storage only after
an execution without errors or exceptions.
|
CatalogByString |
translations
Each constructor call must provide by this field an instance of
MuLiCatalog
which contains
the translations for all payload specific texts AND for the texts used here in this
class (but NOT for those used in {@link DownloadDialog]). |
List<Icon> |
user_language_icons
List of optional flag icons in parallel with
user_languages . |
List<String> |
user_languages
List language codes.
|
Constructor and Description |
---|
Configuration() |
public String programName
@Opt public @Opt String iconRelativePath
@Opt public @Opt String programContextName
public String programVersionString
@Opt public @Opt String licenseString
public boolean noWarranty
public boolean runsOnFiles
public boolean runsOnlineOnly
public boolean startWithStatusInformationDialog
public String DEnS_local_dir_name
DocumentedDistribution2.DEnS_dir
(=the one single user-defined DEnS
download point).@Opt public @Opt String[] examplesShortNames
@Opt public @Opt String DEnS_download_position
public CatalogByString translations
MuLiCatalog
which contains
the translations for all payload specific texts AND for the texts used here in this
class (but NOT for those used in DownloadDialog]).
This can be achieved by either extending an instance of {@link Translations}
(i.e. adding the specific texts) or, vice versa, by creating a fresh {@link MuLiCatalog}
and adding all translations defined here by
{@code myCatalog.putAll(new Translations())}.
public MM extends Model defaultOptionsModel
makeDefaultInstance()
.@Opt public GG extends Gui optionsGui
public List<String> user_languages
public List<Icon> user_language_icons
user_languages
.public int insetsOptionsHorizontal
public int insetsOptionsVertical
public int insetsLabelsHorizontal
public int insetsLabelsVertical
public int overallHeight
public int overallWidth
public int parameterControlFlowWidth
public int enumSetFlowWidth
public boolean resumeLastRunOptions
public boolean storeOnlySuccessful
public boolean runSwitchesToMessageTab
public boolean emptyOptionsCauseOnlyUsage
public Function<MM extends Model,Boolean> getOpt_version
public Function<MM extends Model,Boolean> getOpt_help
public Function<MM extends Model,Boolean> getOpt_gui
public Function<MM extends Model,String> getOpt_language
see also the complete user documentation .