Interface IPriorityEnumeration

All Superinterfaces:
IEnumeration

public interface IPriorityEnumeration extends IEnumeration
Author:
dobisekm
  • Method Details

    • getClosestStandardOpt

      IPriorityOpt getClosestStandardOpt(float value)
      Tries to find closest standard priority option with lower value. Catches the case when value is lower than the lowest standard option.
      Parameters:
      value -
      Returns:
      The option, can be null if there are no options defined.
    • getClosestStandardOpt

      IPriorityOpt getClosestStandardOpt(float value, Object controlValue)
      Tries to find closest standard priority option with lower value. Catches the case when value is lower than the lowest standard option.

      This method checks only the option definition for given controlValue (even if null).

      Parameters:
      value -
      controlValue - control value
      Returns:
      The option, can be null if there are no options defined.
      Since:
      3.1.1
      See Also:
    • getClosestStandardOpt

      IPriorityOpt getClosestStandardOpt(float value, IPObject pobject)
      Tries to find closest standard priority option with lower value. Catches the case when value is lower than the lowest standard option.

      This method checks only the option definition applicable to given object.

      If pobject is not specified then it acts as getClosestStandardOpt(float, Object) with null control value.

      Parameters:
      value -
      pobject - persistence object
      Returns:
      The option, can be null if there are no options defined.
      Since:
      3.1.1
      See Also:
    • wrapOption

      IPriorityOpt wrapOption(float value)
      Shortcut method, converts the float to string and calls the IEnumeration.wrapOption(String).

      The string conversion is done with the precision of three decimal digits (e.g. 99.999).

      Parameters:
      value -
      Returns:
      The option, never null.
    • wrapOption

      IPriorityOpt wrapOption(float value, Object controlValue)
      Shortcut method, converts the float to string and calls the IEnumeration.wrapOption(String, Object).

      The string conversion is done with the precision of three decimal digits (e.g. 99.999).

      Parameters:
      value -
      controlValue -
      Returns:
      The option, never null.
      Since:
      3.1.1
      See Also:
    • wrapOption

      IPriorityOpt wrapOption(float value, IPObject pobject)
      Shortcut method, converts the float to string and calls the IEnumeration.wrapOption(String, IPObject).

      The string conversion is done with the precision of three decimal digits (e.g. 99.999).

      Parameters:
      value -
      pobject -
      Returns:
      The option, never null.
      Since:
      3.1.1
      See Also: