org.apache.myfaces.html5.component.output
Class AbstractMeter

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.html5.component.output.AbstractMeter
All Implemented Interfaces:
EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, Draggable, AccesskeyProperty, GlobalEventProperties, Html5GlobalProperties, MouseEventProperties, TabindexProperty
Direct Known Subclasses:
Meter

@JSFComponent(name="hx:meter",
              clazz="org.apache.myfaces.html5.component.output.Meter",
              tagClass="org.apache.myfaces.html5.tag.output.MeterTag",
              defaultRendererType="org.apache.myfaces.html5.Meter",
              family="org.apache.myfaces.Meter",
              type="org.apache.myfaces.html5.Meter",
              implementz="javax.faces.component.behavior.ClientBehaviorHolder",
              defaultEventName="click")
public abstract class AbstractMeter
extends javax.faces.component.UIComponentBase
implements javax.faces.component.behavior.ClientBehaviorHolder, Html5GlobalProperties, AccesskeyProperty, TabindexProperty, MouseEventProperties, GlobalEventProperties

Convenience tag for the new Html5 meter element.

Author:
Ali Ok

Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Constructor Summary
AbstractMeter()
           
 
Method Summary
abstract  Double getHigh()
          Limit of high value of the meter.
Values larger than this value might be displayed in a special way(e.g.
abstract  Double getLow()
          Limit of low value of the meter.
Values smaller than this value might be displayed in a special way(e.g.
abstract  Double getMaximum()
          Maximum value of the component, defaults to 1.
Ending point of the meter.
abstract  Double getMinimum()
          Minimum value of the component, defaults to 0.
Starting point of the meter.
abstract  Double getOptimum()
          Optimum value of the meter.
Values close to this value might be displayed in a special way(e.g.
abstract  Double getValue()
          Value of the meter.
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFamily, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventName, getEventNames
 
Methods inherited from interface org.apache.myfaces.html5.component.properties.Html5GlobalProperties
getAnimationEnd, getDir, getLang, getOndrag, getOndragend, getOndragenter, getOndragleave, getOndragover, getOndragstart, getOndrop, getOnmousewheel, getStyle, getStyleClass, getTitle, isDraggable, isHidden
 
Methods inherited from interface org.apache.myfaces.html5.component.api.Draggable
setDraggable
 
Methods inherited from interface org.apache.myfaces.html5.component.properties.AccesskeyProperty
getAccesskey
 
Methods inherited from interface org.apache.myfaces.html5.component.properties.TabindexProperty
getTabindex
 
Methods inherited from interface org.apache.myfaces.html5.component.properties.MouseEventProperties
getOnclick, getOndblclick, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getOnmousewheel
 
Methods inherited from interface org.apache.myfaces.html5.component.properties.GlobalEventProperties
getOnblur, getOnclick, getOndblclick, getOnfocus
 

Constructor Detail

AbstractMeter

public AbstractMeter()
Method Detail

getValue

@JSFProperty(required=true,
             deferredValueType="java.lang.Double")
public abstract Double getValue()
Value of the meter. Value should be in the interval of [minimum, maximum]


getMinimum

@JSFProperty(required=false,
             deferredValueType="java.lang.Double",
             defaultValue="0.0")
public abstract Double getMinimum()
Minimum value of the component, defaults to 0.
Starting point of the meter.


getMaximum

@JSFProperty(required=false,
             deferredValueType="java.lang.Double",
             defaultValue="1.0")
public abstract Double getMaximum()
Maximum value of the component, defaults to 1.
Ending point of the meter.


getLow

@JSFProperty(required=false,
             deferredValueType="java.lang.Double")
public abstract Double getLow()
Limit of low value of the meter.
Values smaller than this value might be displayed in a special way(e.g. in a red color) by the browser.


getHigh

@JSFProperty(required=false,
             deferredValueType="java.lang.Double")
public abstract Double getHigh()
Limit of high value of the meter.
Values larger than this value might be displayed in a special way(e.g. in a red color) by the browser.


getOptimum

@JSFProperty(required=false,
             deferredValueType="java.lang.Double")
public abstract Double getOptimum()
Optimum value of the meter.
Values close to this value might be displayed in a special way(e.g. in a green color) by the browser.



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.