|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-05 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--oracle.adf.view.js.base.AdfObject | +--oracle.adf.view.js.component.AdfUIComponent
public class AdfUIComponent extends AdfObject
Field Summary |
|
---|---|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private Object |
|
private static Object |
|
private static Object |
|
public static Object |
|
public static Object |
|
public static Object |
|
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
---|---|
public |
|
Method Summary |
|
---|---|
public Object |
|
protected Object |
|
public Object |
|
private Object |
|
public Object |
|
public Object |
|
protected Object |
|
private static Object |
|
public static Object |
|
private static Object |
|
protected Object |
|
private Object |
|
private Object |
|
private Object |
|
private static Object |
|
public AdfUIComponent |
|
static Object |
|
public AdfUIComponent |
|
static AdfUIComponent |
|
private static Object |
|
public Object |
|
public String |
|
public String |
|
public String |
|
protected Object |
|
public Object |
|
private Object |
|
public Object |
|
public Object |
|
public Object |
|
public Object |
|
public String |
|
public Object |
|
public Object |
|
public Object |
|
public Object |
|
public Object |
|
public Object |
|
protected static Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
private static Object |
|
private Object |
|
protected static Object |
|
public Object |
|
public Object |
|
public Object |
|
static Object |
|
public Object |
|
private static Object |
|
public Boolean |
|
public Object |
|
public static Object |
|
public Object |
|
protected Object |
|
private static Object |
|
public Object |
|
public Object |
|
public Object |
|
protected static Object |
|
public Object |
|
public Object |
|
public Object |
|
static Object |
|
Object |
|
public Object |
|
protected Object |
|
private static Object |
|
protected static Object |
|
private Object |
|
public Object |
|
private static Object |
|
public Number |
|
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toString |
Field Detail |
---|
private static Object _ACCESSOR_CACHE
private static Object _ACCESSOR_NAME_CACHE
private static Object _ADD_LISTENER_CACHE
private static Object _ADD_LISTENER_NAME_CACHE
private static Object _BEHAVIORS_KEY
private static Object _CLASS_PROPERTY_KEYS
private Object _clientId
private static Object _COMPONENT_FACTORY
private static Object _CONSTANT_CACHE
private static Object _DEFAULT_VALUE_UNDEFINED
private static Object _FLAG_PERSISTENCE
private static Object _MUTATOR_CACHE
private static Object _MUTATOR_NAME_CACHE
private Object _props
private static Object _REMOVE_LISTENER_CACHE
private static Object _REMOVE_LISTENER_NAME_CACHE
public static Object STATE_COMPLETE
getReadyState()
public static Object STATE_LOADING
getReadyState()
public static Object USAGE_PRIVATE_CHILD
satisfiesUsage(Object)
Constructor Detail |
---|
public AdfUIComponent(Object componentType)
componentType |
Method Detail |
---|
public Object addEventListener(Object eventType,
Object listener,
Object instance)
null
listener.eventType |
||
listener |
||
instance |
Object
protected Object AddNotify()
Object
public Object broadcast(Object event)
event |
Object
private Object _bubbleEvent(Object event)
event |
Object
public Object clearChanges()
Object
public Object clone()
Object
AdfObject.clone()
protected Object ComparePropertyValues(Object propName,
Object oldValue,
Object newValue)
propName |
||
oldValue |
||
newValue |
Object
private static Object _createAccessorName(Object propertyName)
propertyName |
Object
public static Object createComponent(Object componentType)
componentType |
Object
private static Object _createMutatorName(Object propertyName,
Object constantName)
propertyName |
||
constantName |
Object
protected Object DeliverDerivedPropertyEvents(Object propName,
Object oldValue,
Object newValue)
propName |
||
oldValue |
||
newValue |
Object
private Object _deliverEvent(Object event)
event |
Object
private Object _deliverEventToListener(AdfBaseEvent event,
Object instance,
Function listener)
event |
||
instance |
- |
Default value = null
|
listener |
Object
private Object _deliverEventToListeners(AdfBaseEvent event,
Object listeners)
event |
||
listeners |
Object
private static Object _findAbsoluteComponent(Object searchScopedId)
searchScopedId |
Object
public AdfUIComponent findComponent(String expr,
Boolean skipDeprecation)
expr |
- | A non-null search expression identifying the AdfUIComponent to be returned. Expressions are relative to this source component and must account for NamingContainers. Each colon beyond the first will pop out of a naming container. So "::" will either pop out of the current component if the current component is a naming container, or will pop out of the naming container of the current component if it is not a naming container. ":::" will search from the grandparent NamingContainer and up the comonent tree for each additional colon given. A single colon will search from the root. |
skipDeprecation |
- | Optional argument that defaults to false that if set to true relative searches will not attempt to use any deprecated syntaxes when attempting to find the component. |
AdfUIComponent
- the matching component instance, or undefined
if no component matching that search expression existsAdfPage.findComponentByAbsoluteId(String)
static Object __findComponent(Object expr,
Object component,
Object skipDeprecation)
expr |
||
component |
||
skipDeprecation |
Object
public AdfUIComponent findComponentByLocator(String locator)
locator |
- | an implementation-agnostic String identifier. Provided primarily for test automation users. For most components, locator will be same as absoluteId, except in the case of stamping components like table. |
AdfUIComponent
- the matching component instance, or undefined
if no component matching that absolute locator existsAdfPage.findComponentByAbsoluteLocator(String)
static AdfUIComponent __findComponentByLocator(String locator,
Object component)
locator |
- | an implementation-agnostic String identifier. Provided primarily for test automation users. For most components, absoluteLocator will be same as absoluteId, except in the case of stamping components like table. |
component |
AdfUIComponent
- the matching component instance, or undefined
if no component matching that absolute locator existsAdfPage.findComponentByAbsoluteLocator(String)
private static Object _findRelativeComponent(Object clientId,
Object isNamingContainer,
Object ncCount,
Object searchClientId,
Object separator,
Object expr,
Object skipDeprecation)
clientId |
||
isNamingContainer |
||
ncCount |
||
searchClientId |
||
separator |
||
expr |
||
skipDeprecation |
Object
public Object focus()
Object
public String getAbsoluteId()
AdfPage.findComponentByAbsoluteId
or by prepending a ":", to AdfUIComponent.findComponent
on any AdfUIComponent instance. to find this component instance as long as the component instance isn't stamped.String
- The absolute scoped id for the componentfindComponent(String, Boolean)
AdfPage.findComponentByAbsoluteId(String)
public String getAbsoluteLocator()
findComponentByAbsoluteLocator
. The absolute locator can be used to locate any component instance stamped or otherwise. The absoluteId returned by getAbsoluteId
can only be used to to find the component instance as long as it isn't stamped.String
- The absolute locator for the componentgetAbsoluteId()
AdfPage.findComponentByAbsoluteLocator(String)
public String getAccessibleName()
String
- The accessible name of the component or null
if none is available.protected Object GetChanges()
Object
public Object getClientId()
Returns the client-specific ID for this component generated by the Server. The identifiers should not be persisted, as their contents are implementation-dependent and can change across releases.
For a stable id across releases, use a scoped id insteadGiven the clientId, this component instance can be retrieved on the client by calling AdfPage.findComponent()
on the client. On the server, this clientId can be passed to UIComponent.invokeOnComponent
to execute code in this component's context.
Object
AdfPage.findComponent(String)
private Object _getClientListeners()
Object
public Object getComponentType()
Object
public Object getDescendantComponents(Array<AdfUIComponent> children)
There is no guarantee about the order of the children returned. If visiting the children in a known order is required please use AdfUIComponent.visitChildren.
All descendent children are returned, visible or not. If ignoring hidden children is required please use AdfUIComponent.visitChildren.
This method is faster than AdfUIComponent.visitChildren, if the limitations above are acceptable it is preferable to use this method.
children |
- | array to store child components in. Descendent components will be added to the end of the array. This param is optional, if not passed in an array will be created. |
Object
- array of descendent componentspublic Object getDragSource()
Object
public Object getDropTarget()
Object
public String getInlineStyleProperty(String propName)
The supplied parameter (propName) value should conform to CSS format and should be in lower case. for example, the method call to get the background color would be getInlineStyleProperty('background-color')
. Note that 'backgroundColor' (DOM property) should not be passed as property name.
propName |
- | The name of the css property to set |
String
- Returns the value corresponding to the CSS propertyAdfUIPeer.getInlineStyleProperty(Object, String)
public Object getParent()
Object
public Object getPeer()
Object
public Object getProperty(Object propName)
propName |
Object
public Object getPropertyKeys()
Object
public Object getPropertyValue(Object propName)
propName |
Object
public Object getReadyState()
AdfUIComponent.STATE_LOADING
The UIComponent is still loading state or contentAdfUIComponent.STATE_COMPLETE
The UIComponent is fully loadedObject
protected static Object GetSubclassPropertyKeys()
Object
protected Object HandleBubbledEvent(Object event)
event |
Object
protected Object HandleEvent(Object event)
event |
Object
protected Object Init(Object componentType,
Object clientId,
Object properties,
Object usageFlags)
componentType |
||
clientId |
||
properties |
||
usageFlags |
Object
AdfObject.Init()
private static Object _initAccessors(Object ourClass,
Object propertyNames,
Object constantSuffix,
Object accessorPrefix,
Object mutatorPrefix)
ourClass |
||
propertyNames |
||
constantSuffix |
||
accessorPrefix |
||
mutatorPrefix |
Object
private Object _initBehaviors(Object behaviors)
behaviors |
Object
protected static Object InitClass()
AdfUIComponent subclasses that need to implement subclass-specific class initialization should write a static InitSubclass method. If present, this method will be called after the default class initialization with the subclass' constructor as the this
parameter.
Object
public Object initializeProperty(String propName,
Object newValue)
propName |
- | The name of the property to set |
newValue |
- | The value to set the property to |
Object
public Object isDescendant(Object possibleAncestor)
possibleAncestor |
Object
public Object isEventRoot()
Object
static Object __isNamingContainer(Object constructor)
constructor |
Object
public Object isShowing()
Object
private static Object _matchAbsoluteIdCallback(Object component)
component |
Object
public Boolean processPushData(Object payload,
Number changeCount)
payload |
- | Peer-specific payload for the component |
changeCount |
- | Monotonically increasing Change count for this change |
Boolean
- Returns true
if the component should continue to receive active data events.public Object queueEvent(Object event)
event |
Object
public static Object registerComponent(Object componentType,
Object componentClass)
AdfUIComponent.createComponent
.componentType |
||
componentClass |
Object
createComponent(Object)
public Object removeEventListener(Object eventType,
Object listener,
Object instance)
null
listener.eventType |
||
listener |
||
instance |
Object
protected Object RemoveNotify()
Object
private static Object _removePersistedFlag(Object propertyName)
propertyName |
Object
- propertyName with persistence flag removed if it containspublic Object resizeNotify(Object oldWidth,
Object oldHeight,
Object newWidth,
Object newHeight)
oldWidth |
||
oldHeight |
||
newWidth |
||
newHeight |
Object
public Object satisfiesUsage(Object usage)
usage |
Object
- null true
if the component satisfies the specified usageUSAGE_PRIVATE_CHILD
public Object scrollIntoView(Boolean focus,
String subTargetId)
focus |
- | indicates if the component should be only scrolled into view or focus as well
Default value = false
|
subTargetId |
- | optional component dependent DOM sub-id that needs to be scrolled/focused into view
Default value = null
|
Object
protected static Object SetDisconnectedProperty(Object componentClass,
Object propName)
componentClass |
||
propName |
Object
public Object setDragSource(Object dragSource)
dragSource |
Object
public Object setDropTarget(Object dropTarget)
dropTarget |
Object
public Object setInlineStyleProperty(String propName,
String propValue)
The supplied parameter (propName) value should conform to CSS format and should be in lower case. for example, the method call to set the background color to blue would be setInlineStyleProperty('background-color','blue')
. Note that 'backgroundColor' (DOM property) should not be passed as property name.
The property value set via setInlineStyleProperty
will not be synchronized with the server-side property.
propName |
- | The name of the css property to set |
propValue |
- | The value for this css property |
Object
AdfUIPeer.setInlineStyleProperty(Object, String, String)
static Object __setNamingContainer(Object constructor,
Object isNC)
constructor |
||
isNC |
Object
Object __setParent(Object newParent)
newParent |
Object
public Object setProperty(String propName,
Object newValue,
Object persist,
Number propagate)
Changing the value of a property supported by the component will normmaly result in the new property value being synchronized with the server automatically. However, certain properties are never synchronized with the server for security reasons. Attempting to set one of these property will result in an Error being thrown.
propName |
- | The name of the property to set |
newValue |
- | The new value for this property |
persist |
||
propagate |
- | Determines whether the property change should be sent to the server Possible values are:
|
Object
- The old value of this propertyError
if an attempt is made to set a secured property.AdfPropertyChangeEvent
protected Object SetPropertyImpl(Object propName,
Object oldValue,
Object newValue)
propName |
||
oldValue |
||
newValue |
Object
private static Object _setPropertyInfo(Function componentClass,
String propName,
String metadataProp,
Object metadataValue)
componentClass |
- | Component class to change type on |
propName |
- | a valid property name for this class |
metadataProp |
- | a valid metadata property name |
metadataValue |
- | new value for this metadata |
Object
protected static Object SetPropertyType(Function componentClass,
String propName,
String typeName)
componentClass |
- | Component class to change type on |
propName |
- | a valid property name for this class |
typeName |
- | a valid type name |
Object
private Object _setSource(Object source)
source |
Object
public Object toDebugString()
Object
AdfObject.toDebugString()
private static Object _trimAbsoluteScopedId(Object absoluteScopedId,
Object trimCount)
absoluteScopedId |
||
trimCount |
Object
public Number visitChildren(Function callback,
Object context,
Boolean ignoreHidden)
Please note that you do take a performance hit for using ignoreHidden.
callback |
- | a function that will be called on each child |
context |
- | an object that will be set as "this" when the callback is invoked; can be null if no context is required. |
ignoreHidden |
- | if true, hidden DOM nodes will be skipped |
Number
- null
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E12046-05 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |