Class OutputProgress

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class OutputProgress extends Output
This component extends Output and must be used to put in output a progress bar. It is possible to set the minimum and maximum values of the progress bar for each row using a float value or a value passed between the output values (see Control.getValues()).
See Also:
GCApi:
component
  • Field Details

    • _min

      protected Float _min
    • _max

      protected Float _max
    • _maxname

      protected String _maxname
    • _minname

      protected String _minname
    • _tf

      protected TextFormat _tf
  • Constructor Details

    • OutputProgress

      public OutputProgress()
  • Method Details

    • setMAXNAME

      public void setMAXNAME(String s)
      Sets the maximum value of the progress bar with the value of another output value. The output must contain a float value or a convertible value in float.
      Parameters:
      s - Key of the value (see Control.getValues()) to use to set the maximum value of the progress bar.
    • setMINNAME

      public void setMINNAME(String s)
      Sets the minimum value of the progress bar with the value of another output value. The output must contain a float value or a convertible value in float.
      Parameters:
      s - Key of the value (see Control.getValues()) to use to set the minimum value of the progress bar.
    • setFORMAT

      public void setFORMAT(String s)
      Sets the format to show over the progress bar. To define the format we use TextFormat passing as the first value the current value of the progress bar, and as the second value the maximum.
      Pay attention that the value are interpreted as float, so if you want intercept a specific integer value you must use ".0" to the end of the value in the format string.
      Parameters:
      s - String to set the format. The first value passed is the current value of the progress bar, the second is the maximum. To more information on how to build the format string, see TextFormat.
    • setMIN

      public void setMIN(String s)
      Sets the minimum value of the progress bar with a specific value.
      Parameters:
      s - Float value to use to set the minimum value of the progress bar.
    • setMAX

      public void setMAX(String s)
      Sets the maximum value of the progress bar with a specific value.
      Parameters:
      s - Float value to use to set the maximum value of the progress bar.
    • toFloat

      protected Float toFloat(Object o)
    • calcValue

      protected Float calcValue()
    • calcMax

      protected Float calcMax()
    • calcMin

      protected Float calcMin()
    • getHtmlValue

      public org.apache.ecs.Element getHtmlValue(EntitySet es)
      Overrides:
      getHtmlValue in class Output
    • setStyle

      protected void setStyle(org.apache.ecs.ElementAttributes d)
      Overrides:
      setStyle in class Output
    • buildSetupScript

      public void buildSetupScript(StringBuilder sb)
      Description copied from class: Component
      Every component can add a script to the StringBuilder, script executed when the component is created.
      Overrides:
      buildSetupScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script