OracleJavaScript API Reference for Oracle ADF Faces

 

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

oracle.adfinternal.view.js.behavior
Class AdfMatchMediaBehavior

Warning:

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.



Field Summary

private Object
_cannotMatchInServer
private Object
_matched
private Object
_matchedPropertyValue
private Object
_mediaQuery
private Object
_propertyName
private Object
_unmatchedPropertyValue


Fields inherited from oracle.adf.view.js.base.AdfObject

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfMatchMediaBehavior(Object propertyName, Object matchedPropertyValue, Object mediaQuery, Object unmatchedPropertyValue, Object matchedInServer, Object cannotMatchInServer)
Client behavior implementation for responsive design based on media queries.


Method Summary

public Object
destroy()
Overridden from AdfClientBehavior.
private Object
_handleChange(Object mql)
Callback method called from PAGE when it finds that media has matched or unmatched.
protected Object
Init(Object propertyName, Object matchedPropertyValue, Object mediaQuery, Object unmatchedPropertyValue, Object matchedInServer, Object cannotMatchInServer)
Initializes the instance.
public Object
initialize(Object component)
Overriding base method from AdfClientBehavior
private Object
_isPropertyChanged()
Check whether the property was set by this Client behavior only.
private Object
_setDefaultProperty()
Sets the unmatchedPropertyValue on media mismatch match and PPRs.
private Object
_setProperty()
Sets the matchedPropertyValue on media match and PPRs.


Methods inherited from oracle.adf.view.js.base.AdfObject

adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, exportPrototypeSymbol, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString


Field Detail


_cannotMatchInServer

private Object _cannotMatchInServer

_matched

private Object _matched

_matchedPropertyValue

private Object _matchedPropertyValue

_mediaQuery

private Object _mediaQuery

_propertyName

private Object _propertyName

_unmatchedPropertyValue

private Object _unmatchedPropertyValue

Constructor Detail


AdfMatchMediaBehavior

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    

Method Detail


destroy

public Object destroy()

Overridden from AdfClientBehavior. Unregisters the listeners from PAGE while uninitializing.

Return:
Object
Overrides:
AdfClientBehavior.destroy(Object)

_handleChange

private Object _handleChange(Object mql)

Callback method called from PAGE when it finds that media has matched or unmatched.

Parameters:
mql    
Return:
Object

Init

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()

initialize

public Object initialize(Object component)

Overriding base method from AdfClientBehavior

Parameters:
component    
Return:
Object
Overrides:
AdfClientBehavior.initialize(Object)

_isPropertyChanged

private Object _isPropertyChanged()

Check whether the property was set by this Client behavior only.

Return:
Object

_setDefaultProperty

private Object _setDefaultProperty()

Sets the unmatchedPropertyValue on media mismatch match and PPRs.

Return:
Object

_setProperty

private Object _setProperty()

Sets the matchedPropertyValue on media match and PPRs.

Return:
Object

SUMMARY: FIELD | CONSTR | METHOD    DETAIL: FIELD | CONSTR | METHOD

 

Generated on 2015.07.15 10:12 UTC
Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.