org.apache.myfaces.custom.inputAjax
Class AbstractListener

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.inputAjax.AbstractListener
All Implemented Interfaces:
javax.faces.component.StateHolder

public abstract class AbstractListener
extends javax.faces.component.UIComponentBase

Allows a component to listen for events on another component with AJAX input elements. On is the id of the component you want to listen on. eventType is what happened to the component, for instance "onChange" action is what to do if the event occurs, default is "update". Will be able to call arbitrary javascript functions too. NOTE: eventType and action are NOT implemented yet


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String LISTENER_MAP_ENTRY
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
AbstractListener()
           
 
Method Summary
abstract  java.lang.String getAction()
          NOT IMPLEMENTED - Action to take (ie: update, submit, call (call a javascript function))
abstract  java.lang.String getEventType()
          NOT IMPLEMENTED - Type of event (ie: onchange, onclick)
 java.lang.String getFamily()
           
abstract  java.lang.String getOn()
          Id of another component.
 boolean isRendered()
           
 
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, getValueBinding, invokeOnComponent, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_FAMILY

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

COMPONENT_TYPE

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

LISTENER_MAP_ENTRY

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

AbstractListener

public AbstractListener()
Method Detail

isRendered

public boolean isRendered()
Overrides:
isRendered in class javax.faces.component.UIComponentBase

getFamily

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

getOn

public abstract java.lang.String getOn()
Id of another component.


getEventType

public abstract java.lang.String getEventType()
NOT IMPLEMENTED - Type of event (ie: onchange, onclick)


getAction

public abstract java.lang.String getAction()
NOT IMPLEMENTED - Action to take (ie: update, submit, call (call a javascript function))



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