JavaScript API Reference for Oracle ADF Faces
oracle.adfinternal.view.js.behavior
Class AdfMatchMediaBehavior
Warning:
- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.
org.ecmascript.object.Object
|
+--oracle.adf.view.js.base.AdfObject
|
+--oracle.adf.view.js.base.AdfClientBehavior
|
+--oracle.adfinternal.view.js.behavior.AdfMatchMediaBehavior
public class AdfMatchMediaBehavior
extends AdfClientBehavior
Client behavior implementation for responsive design based on media queries. The component which has this behavior will opt to change one or more of its properties on a media match. propertyName - name of the client component property to be changed on media query match/unmatch. matchedPropertyValue - value of the property on media query match. unmatchedPropertyValue - value of the property if media query does not match. matchedInServer - indicates whether this was matched in server in which case this behavior will have the correct unmatchedPropertyValue. The unmatchedPropertyValue will be stored in PAGE and will be used by peer ClientBehavior as its unmatchedPropertyValue.
Methods inherited from oracle.adf.view.js.base.AdfObject
|
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
private Object _cannotMatchInServer
private Object _matched
private Object _matchedPropertyValue
private Object _mediaQuery
private Object _propertyName
private Object _unmatchedPropertyValue
public AdfMatchMediaBehavior(Object propertyName,
Object matchedPropertyValue,
Object mediaQuery,
Object unmatchedPropertyValue,
Object matchedInServer,
Object cannotMatchInServer)
Client behavior implementation for responsive design based on media queries. The component which has this behavior will opt to change one or more of its properties on a media match. propertyName - name of the client component property to be changed on media query match/unmatch. matchedPropertyValue - value of the property on media query match. unmatchedPropertyValue - value of the property if media query does not match. matchedInServer - indicates whether this was matched in server in which case this behavior will have the correct unmatchedPropertyValue. The unmatchedPropertyValue will be stored in PAGE and will be used by peer ClientBehavior as its unmatchedPropertyValue.
- Parameters:
-
propertyName |
|
|
matchedPropertyValue |
|
|
mediaQuery |
|
|
unmatchedPropertyValue |
|
|
matchedInServer |
|
|
cannotMatchInServer |
|
|
public Object destroy()
Overridden from AdfClientBehavior. Unregisters the listeners from PAGE while uninitializing.
- Return:
Object
- Overrides:
AdfClientBehavior.destroy(Object)
private Object _handleChange(Object mql)
Callback method called from PAGE when it finds that media has matched or unmatched.
- Parameters:
-
- Return:
Object
protected Object Init(Object propertyName,
Object matchedPropertyValue,
Object mediaQuery,
Object unmatchedPropertyValue,
Object matchedInServer,
Object cannotMatchInServer)
Initializes the instance. Subclasses of AdfObject must call their superclass' Init
- Parameters:
-
propertyName |
|
|
matchedPropertyValue |
|
|
mediaQuery |
|
|
unmatchedPropertyValue |
|
|
matchedInServer |
|
|
cannotMatchInServer |
|
|
- Return:
Object
- Overrides:
AdfObject.Init()
public Object initialize(Object component)
Overriding base method from AdfClientBehavior
- Parameters:
-
- Return:
Object
- Overrides:
AdfClientBehavior.initialize(Object)
private Object _isPropertyChanged()
Check whether the property was set by this Client behavior only.
- Return:
Object
private Object _setDefaultProperty()
Sets the unmatchedPropertyValue on media mismatch match and PPRs.
- Return:
Object
private Object _setProperty()
Sets the matchedPropertyValue on media match and PPRs.
- Return:
Object
Generated on 2015.07.15 10:12 UTC
Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.