org.richfaces.event
Class AttributedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by org.richfaces.event.AttributedEvent
All Implemented Interfaces:
java.io.Serializable, AttributeHolder
Direct Known Subclasses:
ScrollableGridViewEvent

public abstract class AttributedEvent
extends javax.faces.event.FacesEvent
implements AttributeHolder

Base class for events carrying component attributes. By using it, renderer-specific attributes can be applied when event is broadcast

Author:
Maksim Kaszynski
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AttributedEvent(javax.faces.component.UIComponent component)
           
AttributedEvent(javax.faces.component.UIComponent component, java.util.Map<java.lang.String,java.lang.Object> attributes)
           
 
Method Summary
 void applyAttributes()
          copy attributes to event source
 void applyAttributes(javax.faces.component.UIComponent component)
          Copy attributes from event map to component
 java.lang.Object getAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class javax.faces.event.FacesEvent
getComponent, getPhaseId, isAppropriateListener, processListener, queue, setPhaseId
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributedEvent

public AttributedEvent(javax.faces.component.UIComponent component)

AttributedEvent

public AttributedEvent(javax.faces.component.UIComponent component,
                       java.util.Map<java.lang.String,java.lang.Object> attributes)
Method Detail

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface AttributeHolder

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface AttributeHolder
Returns:

applyAttributes

public void applyAttributes(javax.faces.component.UIComponent component)
Description copied from interface: AttributeHolder
Copy attributes from event map to component

Specified by:
applyAttributes in interface AttributeHolder

applyAttributes

public void applyAttributes()
copy attributes to event source



Copyright © 2010. All Rights Reserved.