Class 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
  • 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

      public StringArgument​(StringArgument arg)
  • 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

      public FilteringColumnDefinition getHelpDefinition()
      Get help definition for argument.
      Returns:
      the help definition
    • setHelpDefinition

      public void setHelpDefinition​(FilteringColumnDefinition helpDefinition)
      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

      public void setPersistingValueObject​(SubjectLists persistingValueObject)
      Set the persisting value.
      Parameters:
      persistingValueObject - the persisting value
    • copyArgument

      public StringArgument copyArgument()
      Description copied from class: Argument
      Make a copy of the argument.
      Specified by:
      copyArgument in class Argument
      Returns:
      the argument copy
    • isSingleSelection

      public boolean isSingleSelection()
      Check if only single selection is allowed for argument.
      Returns:
      true if only single selection is allowed for argument, otherwise false
    • isEmpty

      public boolean isEmpty()
      Description copied from class: Argument
      Get if argument is empty.
      Overrides:
      isEmpty in class Argument
      Returns:
      true if argument is empty, otherwise false
    • getFormatter

      public ValueFormatter getFormatter()