Class StringArgument
java.lang.Object
org.gorpipe.querydialogs.BasicBean
org.gorpipe.querydialogs.AbstractListBean
org.gorpipe.querydialogs.Argument
org.gorpipe.querydialogs.argument.StringArgument
- All Implemented Interfaces:
java.io.Serializable,javax.swing.ListModel
- Direct Known Subclasses:
GridArgument
public class StringArgument extends Argument
Represents an argument that expects a string value.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.gorpipe.querydialogs.Argument
allowedValues, defaultValue, DEFERRED_LIST, path2LoadedValues, path2LoadedValuesHeader, PROPERTY_OPERATOR, PROPERTY_VALUE, type, value -
Constructor Summary
Constructors Constructor Description StringArgument(StringArgument arg)StringArgument(ArgumentDescription argDescr, boolean quoted, java.lang.Boolean optional, java.lang.Object defaultValue, java.util.List<? extends java.lang.Object> allowedValues, java.net.URI valuesPath, ValueFormatter formatter, java.util.List<java.lang.String> operators, java.lang.Boolean advanced, java.lang.Integer displayWidth, ArgumentType argType, java.lang.Boolean singleSelection)Constructor. -
Method Summary
Modifier and Type Method Description StringArgumentcopyArgument()Make a copy of the argument.java.lang.StringgetFormat()Get the format for the string argument.java.lang.StringgetFormattedValue()ValueFormattergetFormatter()FilteringColumnDefinitiongetHelpDefinition()Get help definition for argument.java.lang.ObjectgetPersistingValueObject()Get the persisting value.booleanisEmpty()Get if argument is empty.booleanisSingleSelection()Check if only single selection is allowed for argument.voidsetFormat(java.lang.String format)voidsetHelpDefinition(FilteringColumnDefinition helpDefinition)Set help definition for argument.voidsetPersistingValueObject(SubjectLists persistingValueObject)Set the persisting value.Methods inherited from class org.gorpipe.querydialogs.Argument
checkAllowed, deferredValuesLoaded, getDefaultValue, getDescription, getDisplayName, getDisplayWidth, getElementAt, getName, getOperator, getOperators, getSize, getTooltip, getType, getValue, getValuesHeader, getValuesPath, hasDeferredValues, isAdvanced, isOptional, loadDeferredValues, parseValue, setDisplayWidth, setOperator, setValue, setValue, toStringMethods inherited from class org.gorpipe.querydialogs.AbstractListBean
addListDataListener, fireContentsChanged, removeListDataListenerMethods inherited from class org.gorpipe.querydialogs.BasicBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
StringArgument
public StringArgument(ArgumentDescription argDescr, boolean quoted, java.lang.Boolean optional, java.lang.Object defaultValue, java.util.List<? extends java.lang.Object> allowedValues, java.net.URI valuesPath, ValueFormatter formatter, java.util.List<java.lang.String> operators, java.lang.Boolean advanced, java.lang.Integer displayWidth, ArgumentType argType, java.lang.Boolean singleSelection)Constructor.- Parameters:
argDescr-quoted-optional-defaultValue-allowedValues-valuesPath-formatter-operators-advanced-displayWidth-argType-singleSelection-
-
StringArgument
-
-
Method Details
-
getFormat
public java.lang.String getFormat()Get the format for the string argument.- Returns:
- the format for the string argument
-
setFormat
public void setFormat(java.lang.String format) -
getFormattedValue
public java.lang.String getFormattedValue() -
getHelpDefinition
Get help definition for argument.- Returns:
- the help definition
-
setHelpDefinition
Set help definition for argument.- Parameters:
helpDefinition- the help definition to set
-
getPersistingValueObject
public java.lang.Object getPersistingValueObject()Get the persisting value.- Returns:
- the persisting value
-
setPersistingValueObject
Set the persisting value.- Parameters:
persistingValueObject- the persisting value
-
copyArgument
Description copied from class:ArgumentMake a copy of the argument.- Specified by:
copyArgumentin classArgument- Returns:
- the argument copy
-
isSingleSelection
public boolean isSingleSelection()Check if only single selection is allowed for argument.- Returns:
trueif only single selection is allowed for argument, otherwisefalse
-
isEmpty
public boolean isEmpty()Description copied from class:ArgumentGet if argument is empty. -
getFormatter
-