| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.webapp.designer.DeviceRegistry
public class DeviceRegistry
Device class is determened based on the model, while reference device for that device class is savet in the DTCache.
| Nested Class Summary | |
|---|---|
static class | 
DeviceRegistry.Callback
 | 
| Field Summary | |
|---|---|
static java.lang.String | 
DEVICE_CLASS_PROP_NAME
 | 
static java.lang.Object | 
KEY_CUSTOMIZE_DEVICE_LIST_ACTION
Action to invoke to customize list of devices.  | 
static java.lang.Object | 
KEY_DEVICE_CALLBACK
If the callback is not specified for the device, it is assumed that the device is available for any web-app designer its class is available for.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_CALLBACK
If the callback is not specified for the device class, it is assumed that device class is available for any web-app designer.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_DEVICE_COMPARATOR
Comparator used to order device names belonging to a device class.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_ICON
Icon representing the device class.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_ICON_KEY
Key into a resource bundle for the icon representing device class.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_NAME
Display name of the device class.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_RESOURCE_BUNDLE
Resource bundle for device class.  | 
static java.lang.Object | 
KEY_DEVICE_CLASS_SHORT_DESCRIPTION
Short descritpion of the device class.  | 
static java.lang.Object | 
KEY_DEVICE_NAME
Display name of the device.  | 
static java.lang.Object | 
KEY_DEVICE_SIZE
Size of the deveice, if it has fixed dimensions.  | 
static java.lang.Object | 
KEY_DEVICE_STYLE_SHEET
User agent style sheet for the device.  | 
static java.lang.Object | 
KEY_DEVICE_USER_AGENT
User agent value of the device.  | 
static java.lang.Object | 
KEY_NO_DEVICE_LABEL
Label to display when no device is chosen.  | 
static java.lang.Object | 
KEY_PREFERRED_DEVICE
Existance of this property marks the device as preferred in its class.  | 
static java.lang.String | 
REFERENCE_DEVICE_PROP_NAME
Map of device properties.  | 
static java.lang.String | 
REFERENCE_DEVICE_PROPERTIES_PROP_NAME
 | 
| Method Summary | |
|---|---|
 void | 
addDeviceClass(java.lang.Object deviceClassID,
               java.util.Map deviceClassProperties)
 | 
 void | 
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
 | 
 void | 
addReferenceDevice(java.lang.Object deviceClassID,
                   java.util.Map deviceProperties)
Registeres new reference device for the device category.  | 
 void | 
addReferenceDevice(java.lang.Object deviceClassID,
                   java.lang.String deviceName)
Registeres new reference device for the device category.  | 
 java.lang.Object | 
findDeviceClassID(java.lang.String deviceClassName)
 | 
 java.util.Map | 
getDeviceClassProperties(java.lang.Object deviceClassID)
 | 
 java.util.Collection<java.lang.Object> | 
getKnownDeviceClasses()
Returns collection of the registered device class IDs.  | 
 java.util.Collection<java.lang.String> | 
getKnownReferenceDevices(java.lang.Object deviceClassID)
Returns list of names for reference devices that are registered for the given device class.  | 
 java.lang.String | 
getReferenceDeviceName(Context context)
Returns name of selected reference device given by the context.  | 
 java.lang.String | 
getReferenceDeviceName(Context context,
                       java.lang.Object deviceClassID)
Returns name of selected reference device given by the context.  | 
 java.lang.String | 
getReferenceDeviceName(Context context,
                       java.lang.String deviceClassName)
 | 
 java.util.Map | 
getReferenceDeviceProperties(java.lang.Object deviceClassID,
                             java.lang.String deviceName)
 | 
static DeviceRegistry | 
getRegistry()
 | 
 boolean | 
isReferenceDeviceNameSet(Context context)
 | 
 void | 
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
 | 
 void | 
removeReferenceDevice(java.lang.Object deviceClassID,
                      java.lang.String deviceName)
Removed reference device for the device category.  | 
 void | 
removeReferenceDeviceProperty(java.lang.Object deviceClassID,
                              java.lang.String deviceName,
                              java.lang.Object propertyKey)
Device display name can not removed.  | 
 void | 
setReferenceDeviceName(Context context,
                       java.lang.String name)
Sets name of selected reference device for the node given by the context.  | 
 void | 
setReferenceDeviceProperty(java.lang.Object deviceClassID,
                           java.lang.String deviceName,
                           java.lang.Object propertyKey,
                           java.lang.Object propertyValue)
Device display name can not changed.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.Object KEY_DEVICE_CLASS_NAME
public static final java.lang.Object KEY_DEVICE_CLASS_RESOURCE_BUNDLE
ArrayResourceBundlepublic static final java.lang.Object KEY_DEVICE_CLASS_ICON_KEY
public static final java.lang.Object KEY_DEVICE_CLASS_ICON
public static final java.lang.Object KEY_DEVICE_CLASS_SHORT_DESCRIPTION
public static final java.lang.Object KEY_DEVICE_CLASS_CALLBACK
public static final java.lang.Object KEY_DEVICE_CLASS_DEVICE_COMPARATOR
public static final java.lang.Object KEY_DEVICE_NAME
public static final java.lang.Object KEY_DEVICE_USER_AGENT
public static final java.lang.Object KEY_DEVICE_SIZE
public static final java.lang.Object KEY_DEVICE_STYLE_SHEET
public static final java.lang.Object KEY_DEVICE_CALLBACK
public static final java.lang.Object KEY_PREFERRED_DEVICE
public static final java.lang.Object KEY_NO_DEVICE_LABEL
public static final java.lang.Object KEY_CUSTOMIZE_DEVICE_LIST_ACTION
public static final java.lang.String DEVICE_CLASS_PROP_NAME
public static final java.lang.String REFERENCE_DEVICE_PROP_NAME
public static final java.lang.String REFERENCE_DEVICE_PROPERTIES_PROP_NAME
| Method Detail | 
|---|
public static DeviceRegistry getRegistry()
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
public java.util.Collection<java.lang.Object> getKnownDeviceClasses()
public void addDeviceClass(java.lang.Object deviceClassID,
                           java.util.Map deviceClassProperties)
public java.util.Map getDeviceClassProperties(java.lang.Object deviceClassID)
public java.lang.Object findDeviceClassID(java.lang.String deviceClassName)
public void addReferenceDevice(java.lang.Object deviceClassID,
                               java.lang.String deviceName)
deviceClassID - deviceName - 
public void removeReferenceDevice(java.lang.Object deviceClassID,
                                  java.lang.String deviceName)
deviceClassID - deviceName - 
public void addReferenceDevice(java.lang.Object deviceClassID,
                               java.util.Map deviceProperties)
deviceClassID - deviceProperties - 
public java.util.Map getReferenceDeviceProperties(java.lang.Object deviceClassID,
                                                  java.lang.String deviceName)
public void setReferenceDeviceProperty(java.lang.Object deviceClassID,
                                       java.lang.String deviceName,
                                       java.lang.Object propertyKey,
                                       java.lang.Object propertyValue)
deviceClassID - deviceName - propertyKey - propertyValue - 
public void removeReferenceDeviceProperty(java.lang.Object deviceClassID,
                                          java.lang.String deviceName,
                                          java.lang.Object propertyKey)
deviceClassID - deviceName - propertyKey - public java.util.Collection<java.lang.String> getKnownReferenceDevices(java.lang.Object deviceClassID)
String.CASE_INSENSITIVE_ORDER is used.
deviceClassID - 
public java.lang.String getReferenceDeviceName(Context context)
context - 
public java.lang.String getReferenceDeviceName(Context context,
                                               java.lang.String deviceClassName)
context - deviceClassName - 
getReferenceDeviceName(Context, Object)public boolean isReferenceDeviceNameSet(Context context)
public java.lang.String getReferenceDeviceName(Context context,
                                               java.lang.Object deviceClassID)
context - deviceClassID - 
public void setReferenceDeviceName(Context context,
                                   java.lang.String name)
context - name - null value removes reference device name
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||