com.sun.rave.web.ui.component
Class Alarm

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIGraphic
              extended by com.sun.rave.web.ui.component.ImageComponentBase
                  extended by com.sun.rave.web.ui.component.ImageComponent
                      extended by com.sun.rave.web.ui.component.AlarmBase
                          extended by com.sun.rave.web.ui.component.Alarm
All Implemented Interfaces:
java.util.Comparator, javax.faces.component.StateHolder

public class Alarm
extends AlarmBase
implements java.util.Comparator

Defines a component for displaying an alarm icon based on the alarm seveirty.


Field Summary
static java.lang.String DEFAULT_SEVERITY
           
static java.lang.String SEVERITY_CRITICAL
           
static java.lang.String SEVERITY_DOWN
          Severity of an alarm.
static java.lang.String SEVERITY_MAJOR
           
static java.lang.String SEVERITY_MINOR
           
static java.lang.String SEVERITY_OK
           
 
Fields inherited from class javax.faces.component.UIGraphic
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
Alarm()
          Default constructor.
Alarm(java.lang.String severity)
          Create an instance with the given severity.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare the given objects for severity order.
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this Comparator.
 
Methods inherited from class com.sun.rave.web.ui.component.AlarmBase
getAlt, getFamily, getOnClick, getOnDblClick, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getSeverity, getStyle, getStyleClass, getToolTip, isVisible, restoreState, saveState, setAlt, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setSeverity, setStyle, setStyleClass, setToolTip, setVisible
 
Methods inherited from class com.sun.rave.web.ui.component.ImageComponentBase
getAlign, getBorder, getHeight, getHspace, getIcon, getLongDesc, getUrl, getValueBinding, getVspace, getWidth, setAlign, setBorder, setHeight, setHspace, setIcon, setLongDesc, setUrl, setValueBinding, setVspace, setWidth
 
Methods inherited from class javax.faces.component.UIGraphic
getValue, getValueExpression, setValue, setValueExpression
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEVERITY_DOWN

public static final java.lang.String SEVERITY_DOWN
Severity of an alarm.

See Also:
Constant Field Values

SEVERITY_CRITICAL

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

SEVERITY_MAJOR

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

SEVERITY_MINOR

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

SEVERITY_OK

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

DEFAULT_SEVERITY

public static final java.lang.String DEFAULT_SEVERITY
See Also:
Constant Field Values
Constructor Detail

Alarm

public Alarm()
Default constructor.


Alarm

public Alarm(java.lang.String severity)
Create an instance with the given severity.

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
            throws java.lang.ClassCastException
Compare the given objects for severity order.

Specified by:
compare in interface java.util.Comparator
Throws:
java.lang.ClassCastException

equals

public boolean equals(java.lang.Object o)
               throws java.lang.ClassCastException
Indicates whether some other object is "equal to" this Comparator.

Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Throws:
java.lang.ClassCastException