Class DisplayConstraint.DisplayConstraintOption

  • Enclosing class:
    DisplayConstraint

    public class DisplayConstraint.DisplayConstraintOption
    extends java.lang.Object
    Representation of a constraint operation to populate a dropdown. Label is value to be displayed in the dropdown, property is the index of the constraint that will be selected.
    Author:
    Richard Smith
    • Constructor Summary

      Constructors 
      Constructor Description
      DisplayConstraintOption​(java.lang.String label, java.lang.Integer property)
      Construct with the constraint lable and index
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()
      Get the value to be displayed in the dropdown for this operation.
      java.lang.Integer getProperty()
      Get the constraint index to be put in form when this op is selected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisplayConstraintOption

        public DisplayConstraintOption​(java.lang.String label,
                                       java.lang.Integer property)
        Construct with the constraint lable and index
        Parameters:
        label - the value to be shown in dropdown
        property - the constraint index to be added to form on selection
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Get the value to be displayed in the dropdown for this operation.
        Returns:
        the display value
      • getProperty

        public java.lang.Integer getProperty()
        Get the constraint index to be put in form when this op is selected.
        Returns:
        the constraint index