Class CodeScanner

  • All Implemented Interfaces:
    java.util.EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, org.primefaces.component.api.MixedClientBehaviorHolder, org.primefaces.component.api.Widget

    public class CodeScanner
    extends javax.faces.component.UIComponentBase
    implements org.primefaces.component.api.Widget, javax.faces.component.behavior.ClientBehaviorHolder, org.primefaces.component.api.MixedClientBehaviorHolder
    CodeScanner component.
    Since:
    10.0
    Author:
    Jasper de Vries <jepsar@gmail.com>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPONENT_FAMILY  
      static java.lang.String COMPONENT_TYPE  
      static java.lang.String DEFAULT_RENDERER  
      static java.lang.String EVENT_CODE_SCANNED  
      static java.lang.String STYLE_CLASS  
      • Fields inherited from class javax.faces.component.UIComponent

        ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
      • Fields inherited from interface org.primefaces.component.api.Widget

        ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeScanner()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static Code getCode​(java.lang.String clientId, java.util.Map<java.lang.String,​java.lang.String> params)  
      java.lang.String getDefaultEventName()  
      java.lang.String getDeviceId()  
      java.util.Collection<java.lang.String> getEventNames()  
      java.lang.String getFamily()  
      java.lang.String getFor()  
      java.lang.Integer getHeight()  
      java.lang.String getOnerror()  
      java.lang.String getOnsuccess()  
      java.lang.String getStyle()  
      java.lang.String getStyleClass()  
      java.lang.String getType()  
      CodeScanner.ReaderType getTypeEnum()  
      java.util.Collection<java.lang.String> getUnobstrusiveEventNames()  
      java.lang.String getWidgetVar()  
      java.lang.Integer getWidth()  
      boolean isAutoStart()  
      boolean isVideo()  
      void queueEvent​(javax.faces.event.FacesEvent event)  
      void setAutoStart​(boolean autoStart)  
      void setDeviceId​(java.lang.String deviceId)  
      void setFor​(java.lang.String aFor)  
      void setHeight​(java.lang.Integer height)  
      void setOnerror​(java.lang.String onerror)  
      void setOnsuccess​(java.lang.String onsuccess)  
      void setStyle​(java.lang.String style)  
      void setStyleClass​(java.lang.String styleClass)  
      void setType​(java.lang.String type)  
      void setVideo​(boolean video)  
      void setWidgetVar​(java.lang.String widgetVar)  
      void setWidth​(java.lang.Integer width)  
      • Methods inherited from class javax.faces.component.UIComponentBase

        addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
      • Methods inherited from class javax.faces.component.UIComponent

        encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
      • 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
      • Methods inherited from interface org.primefaces.component.api.Widget

        resolveWidgetVar, resolveWidgetVar
    • Constructor Detail

      • CodeScanner

        public CodeScanner()
    • Method Detail

      • getFamily

        public java.lang.String getFamily()
        Specified by:
        getFamily in class javax.faces.component.UIComponent
      • getDefaultEventName

        public java.lang.String getDefaultEventName()
        Specified by:
        getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHolder
        Overrides:
        getDefaultEventName in class javax.faces.component.UIComponentBase
      • getWidgetVar

        public java.lang.String getWidgetVar()
      • setWidgetVar

        public void setWidgetVar​(java.lang.String widgetVar)
      • getType

        public java.lang.String getType()
      • setType

        public void setType​(java.lang.String type)
      • getStyle

        public java.lang.String getStyle()
      • setStyle

        public void setStyle​(java.lang.String style)
      • getStyleClass

        public java.lang.String getStyleClass()
      • setStyleClass

        public void setStyleClass​(java.lang.String styleClass)
      • getWidth

        public java.lang.Integer getWidth()
      • setWidth

        public void setWidth​(java.lang.Integer width)
      • getHeight

        public java.lang.Integer getHeight()
      • setHeight

        public void setHeight​(java.lang.Integer height)
      • isAutoStart

        public boolean isAutoStart()
      • setAutoStart

        public void setAutoStart​(boolean autoStart)
      • getOnsuccess

        public java.lang.String getOnsuccess()
      • setOnsuccess

        public void setOnsuccess​(java.lang.String onsuccess)
      • getOnerror

        public java.lang.String getOnerror()
      • setOnerror

        public void setOnerror​(java.lang.String onerror)
      • isVideo

        public boolean isVideo()
      • setVideo

        public void setVideo​(boolean video)
      • getDeviceId

        public java.lang.String getDeviceId()
      • setDeviceId

        public void setDeviceId​(java.lang.String deviceId)
      • getFor

        public java.lang.String getFor()
      • setFor

        public void setFor​(java.lang.String aFor)
      • getEventNames

        public java.util.Collection<java.lang.String> getEventNames()
        Specified by:
        getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
        Overrides:
        getEventNames in class javax.faces.component.UIComponentBase
      • getUnobstrusiveEventNames

        public java.util.Collection<java.lang.String> getUnobstrusiveEventNames()
        Specified by:
        getUnobstrusiveEventNames in interface org.primefaces.component.api.MixedClientBehaviorHolder
      • queueEvent

        public void queueEvent​(javax.faces.event.FacesEvent event)
        Overrides:
        queueEvent in class javax.faces.component.UIComponentBase
      • getCode

        protected static Code getCode​(java.lang.String clientId,
                                      java.util.Map<java.lang.String,​java.lang.String> params)