public class FwkPropertyBus extends java.lang.Object implements java.io.Serializable, FwkPropertyBusInterface
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.awt.datatransfer.DataFlavor |
BOOLEAN
Mnemonics for the java.lang.Boolean mime type.
|
protected static java.awt.datatransfer.DataFlavor |
BOOLEAN_FLAVOR |
protected static int |
BOOLEAN_INDEX |
static java.lang.String |
BUSDEFAULTNAME
FWK property bus default name.
|
static java.lang.String |
BUSNAME
FWK property bus name.
|
static java.lang.String |
BUSNAMEKEY
FWK property bus key.
|
static java.awt.datatransfer.DataFlavor |
BYTE
Mnemonics for the java.lang.Byte mime type.
|
protected static java.awt.datatransfer.DataFlavor |
BYTE_FLAVOR |
protected static int |
BYTE_INDEX |
static java.awt.datatransfer.DataFlavor |
CHARACTER
Mnemonics for the java.lang.Character mime type.
|
protected static java.awt.datatransfer.DataFlavor |
CHARACTER_FLAVOR |
protected static int |
CHARACTER_INDEX |
static java.awt.datatransfer.DataFlavor[] |
DATAFLAVORS
The data flavor list.
|
static java.awt.datatransfer.DataFlavor |
DOUBLE
Mnemonics for the java.lang.Float mime type.
|
protected static java.awt.datatransfer.DataFlavor |
DOUBLE_FLAVOR |
protected static int |
DOUBLE_INDEX |
protected static java.awt.datatransfer.DataFlavor[] |
flavors |
static java.awt.datatransfer.DataFlavor |
FLOAT
Mnemonics for the java.lang.Flaot mime type.
|
protected static java.awt.datatransfer.DataFlavor |
FLOAT_FLAVOR |
protected static int |
FLOAT_INDEX |
static java.awt.datatransfer.DataFlavor |
GROUP
Mnemonics for the FwkPropertyGroupInterface mime type.
|
protected static java.awt.datatransfer.DataFlavor |
GROUP_FLAVOR |
protected static int |
GROUP_INDEX |
protected static int |
INDEX_LENGTH |
static java.awt.datatransfer.DataFlavor |
INTEGER
Mnemonics for the java.lang.Integer mime type.
|
protected static java.awt.datatransfer.DataFlavor |
INTEGER_FLAVOR |
protected static int |
INTEGER_INDEX |
static java.awt.datatransfer.DataFlavor |
LONG
Mnemonics for the java.lang.Long mime type.
|
protected static java.awt.datatransfer.DataFlavor |
LONG_FLAVOR |
protected static int |
LONG_INDEX |
static java.lang.String[] |
MIMETYPES
The mime type list.
|
static java.awt.datatransfer.DataFlavor |
OBJECT
Mnemonics for the java.lang.Object mime type.
|
protected static int |
OBJECT_INDEX |
static java.awt.datatransfer.DataFlavor |
SHORT
Mnemonics for the java.lang.Short mime type.
|
protected static java.awt.datatransfer.DataFlavor |
SHORT_FLAVOR |
protected static int |
SHORT_INDEX |
static java.awt.datatransfer.DataFlavor |
STRING
Mnemonics for the java.lang.String mime type.
|
protected static java.awt.datatransfer.DataFlavor |
STRING_FLAVOR |
protected static int |
STRING_INDEX |
static java.lang.String |
version |
Constructor and Description |
---|
FwkPropertyBus() |
Modifier and Type | Method and Description |
---|---|
static void |
addPropery(java.lang.String name,
java.lang.Boolean value)
Adds a new property to the internal property map.
|
static void |
addPropery(java.lang.String name,
java.lang.String value)
Adds a new property to the internal property map.
|
static java.awt.datatransfer.DataFlavor |
getBooleanDataFlavor()
Retrieves the data flavor for the boolean.
|
static java.awt.datatransfer.DataFlavor |
getByteDataFlavor()
Retrieves the data flavor for the byte.
|
static java.awt.datatransfer.DataFlavor |
getCharacterDataFlavor()
Retrieves the data flavor for the character.
|
static java.awt.datatransfer.DataFlavor[] |
getDataFlavors()
Retrieves an array containing all supported mime data flavors.
|
static java.awt.datatransfer.DataFlavor |
getDoubleDataFlavor()
Retrieves the data flavor for the double.
|
static java.awt.datatransfer.DataFlavor |
getFloatDataFlavor()
Retrieves the data flavor for the float.
|
static java.awt.datatransfer.DataFlavor |
getGroupDataFlavor()
Retrieves the data flavor for the property group.
|
static java.awt.datatransfer.DataFlavor |
getIntegerDataFlavor()
Retrieves the data flavor for the integer.
|
static java.awt.datatransfer.DataFlavor |
getLongDataFlavor()
Retrieves the data flavor for the long.
|
static java.awt.datatransfer.DataFlavor |
getObjectDataFlavor()
Retrieves the data flavor of the object.
|
static java.util.Map |
getProperties()
Get the all available properties
|
static java.lang.String |
getProperty(java.lang.String propertyName)
Get the property with the requested name.
|
static boolean |
getProperty(java.lang.String propertyName,
boolean propertyDefault)
Get a property with default.
|
static byte |
getProperty(java.lang.String propertyName,
byte propertyDefault)
Get a property with default.
|
static char |
getProperty(java.lang.String propertyName,
char propertyDefault)
Get a property with default.
|
static java.lang.Object |
getProperty(java.lang.String propertyName,
java.awt.datatransfer.DataFlavor flavor)
Get the property with the requested name.
|
static double |
getProperty(java.lang.String propertyName,
double propertyDefault)
Get a property with default.
|
static float |
getProperty(java.lang.String propertyName,
float propertyDefault)
Get a property with default.
|
static int |
getProperty(java.lang.String propertyName,
int propertyDefault)
Get a property with default.
|
static long |
getProperty(java.lang.String propertyName,
long propertyDefault)
Get a property with default.
|
static java.lang.Object |
getProperty(java.lang.String propertyName,
java.lang.Object propertyDefault)
Get a property with default.
|
static short |
getProperty(java.lang.String propertyName,
short propertyDefault)
Get a property with default.
|
static java.lang.String |
getProperty(java.lang.String propertyName,
java.lang.String propertyDefault)
Get a property with default.
|
static FwkPropertyGroupInterface |
getPropertyGroup(java.lang.String groupName)
Get the property with the requested name.
|
static java.util.Map |
getPropertyGroups()
Get the all available properties
|
static java.awt.datatransfer.DataFlavor |
getShortDataFlavor()
Retrieves the data flavor for the short.
|
static java.awt.datatransfer.DataFlavor |
getStringDataFlavor()
Retrieves the data flavor for the string.
|
java.lang.String |
getVersion() |
static void |
loadFile(java.lang.String filename)
Load the content of the INI file into the property producer.
|
static void |
readUserPropertyFile(java.lang.String className)
Read the high priority property filename of the user.
|
static void |
setProperties(java.util.Map map)
Set the properties.
|
public static final java.lang.String version
public static final java.lang.String BUSDEFAULTNAME
public static final java.lang.String BUSNAMEKEY
public static java.lang.String BUSNAME
public static final java.lang.String[] MIMETYPES
protected static final int OBJECT_INDEX
protected static final int BOOLEAN_INDEX
protected static final int BYTE_INDEX
protected static final int CHARACTER_INDEX
protected static final int DOUBLE_INDEX
protected static final int FLOAT_INDEX
protected static final int INTEGER_INDEX
protected static final int LONG_INDEX
protected static final int SHORT_INDEX
protected static final int STRING_INDEX
protected static final int GROUP_INDEX
protected static final int INDEX_LENGTH
public static final java.awt.datatransfer.DataFlavor[] DATAFLAVORS
public static final java.awt.datatransfer.DataFlavor OBJECT
public static final java.awt.datatransfer.DataFlavor BOOLEAN
public static final java.awt.datatransfer.DataFlavor BYTE
public static final java.awt.datatransfer.DataFlavor CHARACTER
public static final java.awt.datatransfer.DataFlavor DOUBLE
public static final java.awt.datatransfer.DataFlavor FLOAT
public static final java.awt.datatransfer.DataFlavor INTEGER
public static final java.awt.datatransfer.DataFlavor LONG
public static final java.awt.datatransfer.DataFlavor SHORT
public static final java.awt.datatransfer.DataFlavor STRING
public static final java.awt.datatransfer.DataFlavor GROUP
protected static java.awt.datatransfer.DataFlavor[] flavors
protected static java.awt.datatransfer.DataFlavor BOOLEAN_FLAVOR
protected static java.awt.datatransfer.DataFlavor BYTE_FLAVOR
protected static java.awt.datatransfer.DataFlavor CHARACTER_FLAVOR
protected static java.awt.datatransfer.DataFlavor DOUBLE_FLAVOR
protected static java.awt.datatransfer.DataFlavor FLOAT_FLAVOR
protected static java.awt.datatransfer.DataFlavor INTEGER_FLAVOR
protected static java.awt.datatransfer.DataFlavor LONG_FLAVOR
protected static java.awt.datatransfer.DataFlavor SHORT_FLAVOR
protected static java.awt.datatransfer.DataFlavor STRING_FLAVOR
protected static java.awt.datatransfer.DataFlavor GROUP_FLAVOR
public java.lang.String getVersion()
public static void readUserPropertyFile(java.lang.String className)
className
- the name of the class.public static void setProperties(java.util.Map map)
map
- The property map.public static void addPropery(java.lang.String name, java.lang.String value)
name
- Name of the property.value
- Value of type String.public static void addPropery(java.lang.String name, java.lang.Boolean value)
name
- Name of the property.value
- Value of type Boolean.public static java.lang.Object getProperty(java.lang.String propertyName, java.awt.datatransfer.DataFlavor flavor)
propertyName
- The requested property name.mimeType
- The requested mime type.public static java.lang.String getProperty(java.lang.String propertyName)
propertyName
- The requested property name.public static boolean getProperty(java.lang.String propertyName, boolean propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static int getProperty(java.lang.String propertyName, int propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static short getProperty(java.lang.String propertyName, short propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static byte getProperty(java.lang.String propertyName, byte propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static char getProperty(java.lang.String propertyName, char propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static long getProperty(java.lang.String propertyName, long propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static float getProperty(java.lang.String propertyName, float propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static double getProperty(java.lang.String propertyName, double propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static java.lang.String getProperty(java.lang.String propertyName, java.lang.String propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static java.lang.Object getProperty(java.lang.String propertyName, java.lang.Object propertyDefault)
propertyName
- The name of the property.propertyDefault
- The default property.public static FwkPropertyGroupInterface getPropertyGroup(java.lang.String groupName)
groupName
- The requested property name.public static java.util.Map getProperties()
propertyName
- The requested property name.public static java.util.Map getPropertyGroups()
propertyName
- The requested property name.public static void loadFile(java.lang.String filename)
filename
- The name of the initialization file.public static java.awt.datatransfer.DataFlavor getObjectDataFlavor()
public static java.awt.datatransfer.DataFlavor getBooleanDataFlavor()
public static java.awt.datatransfer.DataFlavor getByteDataFlavor()
public static java.awt.datatransfer.DataFlavor getCharacterDataFlavor()
public static java.awt.datatransfer.DataFlavor getDoubleDataFlavor()
public static java.awt.datatransfer.DataFlavor getFloatDataFlavor()
public static java.awt.datatransfer.DataFlavor getIntegerDataFlavor()
public static java.awt.datatransfer.DataFlavor getLongDataFlavor()
public static java.awt.datatransfer.DataFlavor getShortDataFlavor()
public static java.awt.datatransfer.DataFlavor getStringDataFlavor()
public static java.awt.datatransfer.DataFlavor getGroupDataFlavor()
public static java.awt.datatransfer.DataFlavor[] getDataFlavors()