- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Defines a possible command-line option
Java wrapper for Qt class QCommandLineOption
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQCommandLineOption::Flag
static final class
QFlags
type for enumQCommandLineOption.Flag
-
Constructor Summary
ConstructorDescriptionQCommandLineOption
(String name) QCommandLineOption
(String name, String description) Overloaded constructor forQCommandLineOption(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
QCommandLineOption
(String name, String description, String valueName) Overloaded constructor forQCommandLineOption(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
withdefaultValue = (String)null
.QCommandLineOption
(String name, String description, String valueName, String defaultValue) QCommandLineOption
(Collection<String> names) QCommandLineOption
(Collection<String> names, String description) Overloaded constructor forQCommandLineOption(java.util.Collection, java.lang.String, java.lang.String, java.lang.String)
QCommandLineOption
(Collection<String> names, String description, String valueName) Overloaded constructor forQCommandLineOption(java.util.Collection, java.lang.String, java.lang.String, java.lang.String)
withdefaultValue = (String)null
.QCommandLineOption
(Collection<String> names, String description, String valueName, String defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QCommandLineOption other) clone()
Creates and returns a copy of this object.final QStringList
final String
final QCommandLineOption.Flags
flags()
final QStringList
names()
final void
setDefaultValue
(String defaultValue) final void
setDefaultValues
(Collection<String> defaultValues) final void
setDescription
(String description) final void
setFlags
(QCommandLineOption.Flag ... aflags) Overloaded function forsetFlags(io.qt.core.QCommandLineOption.Flags)
.final void
setFlags
(QCommandLineOption.Flags aflags) final void
setValueName
(String name) final void
swap
(QCommandLineOption other) final String
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QCommandLineOption
- Parameters:
other
-
-
QCommandLineOption
- Parameters:
name
-
-
QCommandLineOption
- Parameters:
name
-description
-valueName
-defaultValue
-
-
QCommandLineOption
- Parameters:
names
-
-
QCommandLineOption
public QCommandLineOption(Collection<String> names, String description, String valueName, String defaultValue) - Parameters:
names
-description
-valueName
-defaultValue
-
-
QCommandLineOption
Overloaded constructor for
QCommandLineOption(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
withdefaultValue = (String)null
. -
QCommandLineOption
Overloaded constructor for
QCommandLineOption(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
with:
valueName = (String)null
defaultValue = (String)null
-
QCommandLineOption
Overloaded constructor for
QCommandLineOption(java.util.Collection, java.lang.String, java.lang.String, java.lang.String)
withdefaultValue = (String)null
. -
QCommandLineOption
Overloaded constructor for
QCommandLineOption(java.util.Collection, java.lang.String, java.lang.String, java.lang.String)
with:
valueName = (String)null
defaultValue = (String)null
-
-
Method Details
-
defaultValues
- Returns:
-
description
- Returns:
-
flags
- Returns:
-
names
- Returns:
-
assign
- Parameters:
other
-
-
setDefaultValue
- Parameters:
defaultValue
-
-
setDefaultValues
- Parameters:
defaultValues
-
-
setDescription
- Parameters:
description
-
-
setFlags
- Parameters:
aflags
-
-
setValueName
- Parameters:
name
-
-
swap
- Parameters:
other
-
-
valueName
- Returns:
-
clone
Creates and returns a copy of this object.
See
QCommandLineOption::
QCommandLineOption(QCommandLineOption) -
setFlags
Overloaded function for
setFlags(io.qt.core.QCommandLineOption.Flags)
.
-