OracleJavaScript API Reference for Oracle ADF Faces

 

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

oracle.adf.view.js.datatransfer
Class AdfDataFlavor

org.ecmascript.object.Object
   |
   +--oracle.adf.view.js.base.AdfObject
         |
         +--oracle.adf.view.js.datatransfer.AdfDataFlavor

public class AdfDataFlavor
extends AdfObject
Class representing the abstraction of a qualified datatype for use in data transfer and drag and drop. private constructor



Field Summary

public static Object
ANY_FLAVOR
Flavor to use indicating that any flavor is supported and the drop handler will figure out what to do.
private static Object
_GENERIC_ROWDATA_FLAVOR
private Object
_isRowKey
private static Object
_JSOBJECT_PREFIX_STRING
public static Object
OBJECT_FLAVOR
Flavor to use for transferring untyped Objects
private static Object
_OBJECT_FLAVOR_MAP
private static Object
_ROWDATA_FLAVOR_MAP
public static Object
STRING_FLAVOR
Flavor to use for transferring Strings
private Object
_stringForm
private static Object
_TYPE_MAP


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

constructor, superclass


Fields inherited from org.ecmascript.object.Object

prototype


Constructor Summary

public
AdfDataFlavor(Object stringForm)
Class representing the abstraction of a qualified datatype for use in data transfer and drag and drop.


Method Summary

public Boolean
equals(Object object)
Override equals to compare AdfDataFlavors by their stringForm
public static AdfDataFlavor
getDataFlavorForClass(Function clazz, String discriminant)
Return the AdfDataFlavor to use for the specified Class
public static AdfDataFlavor
getDataFlavorForClassName(Object className, String discriminant)
Return the AdfDataFlavor to use for the specified Object class name
public static AdfDataFlavor
getObjectFlavor(Object dataObject, String discriminant)
Return the AdfDataFlavor to use for the specified object
public static AdfDataFlavor
getRowKeyDataFlavor(String discriminant)
Returns the AdfDataFlavor used for transferring Model data with optional discriminant.
public String
getStringForm()
Rerpresents the stringified form of the AdfDataFlavor for use as a key in maps
protected Object
Init(String stringForm)
Initializes the AdfDataFlavor with the specified string form
public static Boolean
isRowKeyDataFlavor(AdfDataFlavor flavor)
Returns true if the flavor is a rowKey data flavor
public String
toDebugString()


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

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


Field Detail


ANY_FLAVOR

public static Object ANY_FLAVOR

Flavor to use indicating that any flavor is supported and the drop handler will figure out what to do.

_GENERIC_ROWDATA_FLAVOR

private static Object _GENERIC_ROWDATA_FLAVOR

_isRowKey

private Object _isRowKey

_JSOBJECT_PREFIX_STRING

private static Object _JSOBJECT_PREFIX_STRING

OBJECT_FLAVOR

public static Object OBJECT_FLAVOR

Flavor to use for transferring untyped Objects

_OBJECT_FLAVOR_MAP

private static Object _OBJECT_FLAVOR_MAP

_ROWDATA_FLAVOR_MAP

private static Object _ROWDATA_FLAVOR_MAP

STRING_FLAVOR

public static Object STRING_FLAVOR

Flavor to use for transferring Strings

_stringForm

private Object _stringForm

_TYPE_MAP

private static Object _TYPE_MAP

Constructor Detail


AdfDataFlavor

public AdfDataFlavor(Object stringForm)

Class representing the abstraction of a qualified datatype for use in data transfer and drag and drop. private constructor

Parameters:
stringForm    

Method Detail


equals

public Boolean equals(Object object)

Override equals to compare AdfDataFlavors by their stringForm

Parameters:
object    
Return:
Boolean - null true if the AdfDataFlavors are the same
See also:
getStringForm()
Overrides:
AdfObject.equals(Object)

getDataFlavorForClass

public static AdfDataFlavor getDataFlavorForClass(Function clazz,
                                                  String discriminant)

Return the AdfDataFlavor to use for the specified Class

Parameters:
clazz  -  Class to create DataFlavor for
discriminant  -  Optional discriminant
Default value = undefined
Return:
AdfDataFlavor - AdfDataFlavor for this class
See also:
getDataFlavorForClassName(Object, String)
getObjectFlavor(Object, String)

getDataFlavorForClassName

public static AdfDataFlavor getDataFlavorForClassName(Object className,
                                                      String discriminant)

Return the AdfDataFlavor to use for the specified Object class name

Parameters:
className    
discriminant  -  Optional discriminant
Default value = undefined
Return:
AdfDataFlavor - AdfDataFlavor for this class
See also:
getObjectFlavor(Object, String)
getDataFlavorForClass(Function, String)

getObjectFlavor

public static AdfDataFlavor getObjectFlavor(Object dataObject,
                                            String discriminant)

Return the AdfDataFlavor to use for the specified object

Parameters:
dataObject  -  object to create a DataFlavor based on
discriminant  -  Optional discriminant
Default value = undefined
Return:
AdfDataFlavor - AdfDataFlavor for this object
See also:
getDataFlavorForClass(Function, String)
getDataFlavorForClassName(Object, String)

getRowKeyDataFlavor

public static AdfDataFlavor getRowKeyDataFlavor(String discriminant)

Returns the AdfDataFlavor used for transferring Model data with optional discriminant. When the discriminant is specified, only rowkey-consuming drop targets with the same discriminant will accept the drop.

Parameters:
discriminant  - 
Default value = undefined
Return:
AdfDataFlavor - null

getStringForm

public String getStringForm()

Rerpresents the stringified form of the AdfDataFlavor for use as a key in maps

Return:
String - null

Init

protected Object Init(String stringForm)

Initializes the AdfDataFlavor with the specified string form

Parameters:
stringForm    
Return:
Object
Overrides:
AdfObject.Init()

isRowKeyDataFlavor

public static Boolean isRowKeyDataFlavor(AdfDataFlavor flavor)

Returns true if the flavor is a rowKey data flavor

Parameters:
flavor    
Return:
Boolean - null

toDebugString

public String toDebugString()

Return:
String - Debugging string form
Overrides:
AdfObject.toDebugString()

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

 

Generated on 2011.08.31 02:41 UTC
Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.