Package de.elo.utils.webapp.status
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
-
Method Summary
-
Field Details
-
ID_MEMORY
public static final java.lang.String ID_MEMORYProperty ID for memory state.- See Also:
- Constant Field Values
-
ID_SERVERTIME
public static final java.lang.String ID_SERVERTIMEProperty ID for server time.- See Also:
- Constant Field Values
-
ID_PROGRAM_VERSION
public static final java.lang.String ID_PROGRAM_VERSIONProperty ID for application version.- See Also:
- Constant Field Values
-
ID_PROGRAM_STATUS
public static final java.lang.String ID_PROGRAM_STATUSProperty ID for program status.- See Also:
- Constant Field Values
-
id
public java.lang.String idProperty ID. Only properties with an ID are printed byStatusPageText
. The ID is ignored in HTML format.- See Also:
StatusPageText
-
name
public java.lang.String nameProperty 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 valueProperty 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 htmlActionHTML 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 boldPrint 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 namevalue
- Property verthtmlAction
- HTML codebold
- true, if the property should be displayed with header style.
-