Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
12c Release 1 (12.1.2.0.0)
E23185-01


oracle.adf.view.rich.util
Class TargetUtils

java.lang.Object
  extended by oracle.adf.view.rich.util.TargetUtils


public class TargetUtils
extends Object

Constructor Summary
TargetUtils()
           

 

Method Summary
static Set<org.apache.myfaces.trinidad.component.UIXComponent> addRenderTargetsForEvent(String eventName, javax.faces.component.UIComponent component)
          Called when the component is in the right context, this method looks at its Target instances, retrieves the render list and then adds the component to render to the partial target list.
static StringBuilder encodeTargetList(javax.faces.component.UIComponent component)
          Encodes the target list associated with a component for sending down to the client.
static Set<String> getExecuteIdsForEvent(String eventName, javax.faces.component.UIComponent component)
           
static Set<String> getTargetExecuteIdsForEvent(Target target, String eventName, javax.faces.component.UIComponent baseComponent)
           
static Set<String> getValueAsSet(javax.el.ValueExpression expr)
          Returns a Set<String> of values when provided a ValueExpression or a literal String.
static void setStringSetProperty(org.apache.myfaces.trinidad.bean.FacesBean bean, org.apache.myfaces.trinidad.bean.PropertyKey key, javax.el.ValueExpression expression)
          Set a property of type java.util.Set<java.lang.String>.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TargetUtils

public TargetUtils()

Method Detail

getValueAsSet

public static Set<String> getValueAsSet(javax.el.ValueExpression expr)
Returns a Set<String> of values when provided a ValueExpression or a literal String.
Parameters:
expr - a ValueExpression or a literal text that is usually an attribute value for one of the attributes on the Target tag.
Returns:
a Set.

encodeTargetList

public static StringBuilder encodeTargetList(javax.faces.component.UIComponent component)
Encodes the target list associated with a component for sending down to the client.
Parameters:
component -
Returns:
a StringBuilder containing the taget list

setStringSetProperty

public static void setStringSetProperty(org.apache.myfaces.trinidad.bean.FacesBean bean,
                                        org.apache.myfaces.trinidad.bean.PropertyKey key,
                                        javax.el.ValueExpression expression)
Set a property of type java.util.Set<java.lang.String>. If the value is an EL expression, it will be stored as a ValueExpression.
Parameters:
bean -
key -
expression -

getExecuteIdsForEvent

public static Set<String> getExecuteIdsForEvent(String eventName,
                                                javax.faces.component.UIComponent component)
Parameters:
eventName - the name of the event for which the set of executeIds is being determined
component - an instance of UIComponent that is in the right context.
Returns:
the Set<String> execute clientIds.

getTargetExecuteIdsForEvent

public static Set<String> getTargetExecuteIdsForEvent(Target target,
                                                      String eventName,
                                                      javax.faces.component.UIComponent baseComponent)
Parameters:
target - the Target object typically associated to a component
eventName - the name of the event
Returns:
the Set of execute clientIds defined on the target instance for the specified event.

addRenderTargetsForEvent

public static Set<org.apache.myfaces.trinidad.component.UIXComponent> addRenderTargetsForEvent(String eventName,
                                                                                               javax.faces.component.UIComponent component)
Called when the component is in the right context, this method looks at its Target instances, retrieves the render list and then adds the component to render to the partial target list.
Parameters:
eventName - name of the event that the event source raised and for which the render targets are determined
component - instance of UIComponent
Returns:
a set that isn't hooked up to anything

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
12c Release 1 (12.1.2.0.0)
E23185-01


Copyright © 2013 Oracle Corporation. All Rights Reserved.