Class StatusData.Property

java.lang.Object
de.elo.utils.webapp.status.StatusData.Property
Enclosing class:
StatusData

public static class StatusData.Property
extends java.lang.Object
An object of the Property class provides one status value. The status value can optionally define an ID and an HTML action. Only properties with a non-empty ID are printed by StatusPageText.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    boolean bold
    Print as header row.
    java.lang.String htmlAction
    HTML action.
    java.lang.String id
    Property ID.
    static java.lang.String ID_MEMORY
    Property ID for memory state.
    static java.lang.String ID_PROGRAM_STATUS
    Property ID for program status.
    static java.lang.String ID_PROGRAM_VERSION
    Property ID for application version.
    static java.lang.String ID_SERVERTIME
    Property ID for server time.
    java.lang.String name
    Property name.
    java.lang.Object value
    Property value.
  • Constructor Summary

    Constructors 
    Constructor Description
    Property()
    Default constructor
    Property​(java.lang.String id, java.lang.String name, java.lang.Object value, java.lang.String htmlAction, boolean bold)
    Constructor with initialization
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • ID_MEMORY

      public static final java.lang.String ID_MEMORY
      Property ID for memory state.
      See Also:
      Constant Field Values
    • ID_SERVERTIME

      public static final java.lang.String ID_SERVERTIME
      Property ID for server time.
      See Also:
      Constant Field Values
    • ID_PROGRAM_VERSION

      public static final java.lang.String ID_PROGRAM_VERSION
      Property ID for application version.
      See Also:
      Constant Field Values
    • ID_PROGRAM_STATUS

      public static final java.lang.String ID_PROGRAM_STATUS
      Property ID for program status.
      See Also:
      Constant Field Values
    • id

      public java.lang.String id
      Property ID. Only properties with an ID are printed by StatusPageText. The ID is ignored in HTML format.
      See Also:
      StatusPageText
    • name

      public java.lang.String name
      Property name. The property name is ignored in text output. The property ID is used instead the name.
      See Also:
      StatusPageText
    • value

      public java.lang.Object value
      Property value. The function toString is called for the value when it is printed. Exception: java.util.Date values are printed as ISO values.
    • htmlAction

      public java.lang.String htmlAction
      HTML action. A property can define an optional HTML element to provide an action. E.g. update value1 This member is ignored in text output.
    • bold

      public boolean bold
      Print as header row. If this member is set, the property row is printed with the style of a header row. This member is ignored in text output
  • Constructor Details

    • Property

      public Property()
      Default constructor
    • Property

      public Property​(java.lang.String id, java.lang.String name, java.lang.Object value, java.lang.String htmlAction, boolean bold)
      Constructor with initialization
      Parameters:
      id - Property ID or null or ""
      name - Property name
      value - Property vert
      htmlAction - HTML code
      bold - true, if the property should be displayed with header style.