Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.ui.taglib.display
Class DateDecorator

java.lang.Object
  extended by org.hyperic.hq.ui.taglib.display.Decorator
      extended by org.hyperic.hq.ui.taglib.display.ColumnDecorator
          extended by org.hyperic.hq.ui.taglib.display.BaseDecorator
              extended by org.hyperic.hq.ui.taglib.display.DateDecorator
All Implemented Interfaces:
java.lang.Cloneable, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class DateDecorator
extends BaseDecorator

This class decorates longs representing dates to dates.


Field Summary
protected  java.lang.String bundle
           
static java.lang.String defaultKey
           
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
DateDecorator()
           
 
Method Summary
 java.lang.String decorate(java.lang.Object obj)
          Decorates a date represented as a long.
 java.lang.String getActive()
           
 javax.servlet.jsp.PageContext getContext()
           
 java.lang.Boolean getIsElapsedTime()
          Getter for property isElapsedTime.
 java.lang.Boolean getIsGroup()
          If this is a group, display "DIFFERENT" if the metric interval value is "0".
 void setActive(java.lang.String active)
           
 void setContext(javax.servlet.jsp.PageContext context)
           
 void setIsElapsedTime(java.lang.Boolean isElapsedTime)
          Setter for property isElapsedTime.
 void setIsGroup(java.lang.Boolean isGroup)
          Setter for property isGroup.
 
Methods inherited from class org.hyperic.hq.ui.taglib.display.BaseDecorator
doEndTag, doStartTag, generateErrorComment, getName, getParent, release, setName, setParent
 
Methods inherited from class org.hyperic.hq.ui.taglib.display.Decorator
finish, finishRow, getList, getListIndex, getObject, getPageContext, getViewIndex, init, initRow, setPageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
setPageContext
 

Field Detail

defaultKey

public static final java.lang.String defaultKey
See Also:
Constant Field Values

bundle

protected java.lang.String bundle
Constructor Detail

DateDecorator

public DateDecorator()
Method Detail

decorate

public java.lang.String decorate(java.lang.Object obj)
Decorates a date represented as a long.

Specified by:
decorate in class BaseDecorator
Parameters:
obj - a long representing the time as a long
Returns:
formatted date

getIsElapsedTime

public java.lang.Boolean getIsElapsedTime()
Getter for property isElapsedTime.

Returns:
Value of property isElapsedTime.

setIsElapsedTime

public void setIsElapsedTime(java.lang.Boolean isElapsedTime)
Setter for property isElapsedTime.

Parameters:
isElapsedTime - New value of property isElapsedTime.

getIsGroup

public java.lang.Boolean getIsGroup()
If this is a group, display "DIFFERENT" if the metric interval value is "0".

Returns:
Value of property isGroup.

setIsGroup

public void setIsGroup(java.lang.Boolean isGroup)
Setter for property isGroup.

Parameters:
isGroup - New value of property isGroup.

getContext

public javax.servlet.jsp.PageContext getContext()

setContext

public void setContext(javax.servlet.jsp.PageContext context)

getActive

public java.lang.String getActive()
Returns:
Returns the active.

setActive

public void setActive(java.lang.String active)
Parameters:
active - The active to set.

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.