public class FwkPropertyGroup extends FwkPropertyFile implements FwkPropertyGroupInterface
Example of a PropertyGroup File.
BEGIN FwkContainer
LookAndFeel = Windows
BEGIN Text
About = Über
Open = Öffnen
BEGIN Error
Open = Konnte Datei nicht öffnen
Read = Konnte Datei nicht lesen
END
END
END
AsamCommander.Text.Connect = Verbinden
// Comments are possible.
/*
The last entry leads to:
BEGIN AsamCommander
BEGIN Text
Connect = Verbinden
END
END
*/
The FwkPropertyGroup has the following features:,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
FwkPropertyGroup.SectionInputStream |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BEGIN |
protected static java.lang.String |
COMMENT_CHARS |
protected static java.lang.String |
END |
static java.lang.String |
version |
AUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME| Constructor and Description |
|---|
FwkPropertyGroup()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FwkPropertyGroupInterface |
addGroup(java.lang.String name,
FwkPropertyGroupInterface newGroup)
Add a property group.
|
java.lang.Object |
clone()
Clone the object.
|
java.lang.String |
getAuthor()
Get the author name.
|
java.lang.String |
getBuild()
Get the build number.
|
java.lang.String |
getClassName()
Get the class name of the FWK object.
|
java.lang.String |
getCompany()
Get the company name.
|
java.lang.String |
getCompanyInternetAddress()
Get the internet address of the company.
|
java.lang.String |
getCopyright()
Get the copyright.
|
java.lang.String |
getCreationDate()
Get the creation date.
|
java.lang.String |
getCreationDate(java.lang.String formatString)
Get the creation date.
|
java.lang.String |
getDateFormatString()
Get the date format string.
|
java.lang.String |
getDescription()
Get the description.
|
FwkPropertyGroupInterface |
getGroup(java.lang.String name)
Get a group.
|
FwkIconInterface |
getIcon()
Get the icon image.
|
FwkIconInterface |
getIcon(int type)
Get the image icon of the application
|
java.lang.String |
getIconKey()
Get the property keyword of the icon.
|
java.lang.String |
getIconKey(int type)
Get the property keyword of the icon.
|
java.lang.String |
getName()
Return the name of the ASAM-FWK object.
|
java.lang.String |
getPresentationString()
Retrieves the representation string.
|
java.lang.String |
getPresentationString(java.util.Locale locale)
Retrieves the representation string.
|
java.lang.String |
getProperty(java.lang.String key)
Get the property with the requested name.
|
boolean |
getProperty(java.lang.String key,
boolean dflt)
Get the property.
|
byte |
getProperty(java.lang.String key,
byte dflt)
Get the property.
|
char |
getProperty(java.lang.String key,
char dflt)
Get the property.
|
java.lang.Object |
getProperty(java.lang.String propertyName,
java.awt.datatransfer.DataFlavor flavor)
Get the property with the requested name.
|
double |
getProperty(java.lang.String key,
double dflt)
Get the property.
|
float |
getProperty(java.lang.String key,
float dflt)
Get the property.
|
int |
getProperty(java.lang.String key,
int dflt)
Get the property.
|
long |
getProperty(java.lang.String key,
long dflt)
Get the property.
|
java.lang.Object |
getProperty(java.lang.String groupKey,
java.lang.Object defaultValue)
Get the property with the requested name.
|
short |
getProperty(java.lang.String key,
short dflt)
Get the property.
|
java.lang.String |
getProperty(java.lang.String groupKey,
java.lang.String defaultValue)
Get the property with the requested name.
|
boolean |
getProperty(java.lang.String group,
java.lang.String propertyName,
boolean propertyDefault)
Get a property with default.
|
byte |
getProperty(java.lang.String group,
java.lang.String propertyName,
byte propertyDefault)
Get a property with default.
|
char |
getProperty(java.lang.String group,
java.lang.String propertyName,
char propertyDefault)
Get a property with default.
|
java.lang.Object |
getProperty(java.lang.String group,
java.lang.String propertyName,
java.awt.datatransfer.DataFlavor flavor)
Get the property with the requested name.
|
double |
getProperty(java.lang.String group,
java.lang.String propertyName,
double propertyDefault)
Get a property with default.
|
float |
getProperty(java.lang.String group,
java.lang.String propertyName,
float propertyDefault)
Get a property with default.
|
int |
getProperty(java.lang.String group,
java.lang.String propertyName,
int propertyDefault)
Get a property with default.
|
long |
getProperty(java.lang.String group,
java.lang.String propertyName,
long propertyDefault)
Get a property with default.
|
java.lang.Object |
getProperty(java.lang.String group,
java.lang.String propertyName,
java.lang.Object propertyDefault)
Get a property with default.
|
short |
getProperty(java.lang.String group,
java.lang.String propertyName,
short propertyDefault)
Get a property with default.
|
java.lang.String |
getProperty(java.lang.String group,
java.lang.String propertyName,
java.lang.String propertyDefault)
Get a property with default.
|
FwkPropertyGroupInterface |
getPropertyGroup(java.lang.String name)
Get a property group.
|
java.lang.String |
getSupportEMail()
Get the support e-mail.
|
java.lang.String |
getTitle()
Get the title.
|
java.lang.String |
getTitleName()
Get the title name.
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Returns an object which represents the data to be transferred.
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
java.util.Enumeration |
groupNames()
Return an enumeration of the group names.
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Returns whether or not the specified data flavor is supported for this object.
|
void |
list(java.io.PrintStream out)
Prints this property list out to the specified output stream.
|
void |
list(java.io.PrintWriter out)
Prints this property list out to the specified output stream.
|
void |
list(java.io.PrintWriter out,
java.lang.String prefix)
Prints this property list out to the specified output stream.
|
void |
load(java.io.InputStream inStream)
Load the properties from input stream.
|
boolean |
load(java.lang.String resource)
Load the property group from file or resource.
|
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard.
|
static void |
main(java.lang.String[] args) |
java.util.Enumeration |
propertyNames()
Return en enumeration of the property names.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Put a property value into the map.
|
java.lang.Object |
put(java.lang.String group,
java.util.Map values)
Put a property group.
|
static FwkPropertyGroupInterface |
read(java.io.File file,
FwkPropertyGroupInterface ret)
Read the property group file.
|
static FwkPropertyGroupInterface |
read(java.io.InputStream is,
FwkPropertyGroupInterface ret)
Read the property group file.
|
static FwkPropertyGroupInterface |
read(java.io.Reader reader,
FwkPropertyGroupInterface ret)
Read the property group file.
|
static FwkPropertyGroupInterface |
read(java.lang.String spec,
FwkPropertyGroupInterface ret)
Read the property group file.
|
static FwkPropertyGroupInterface |
read(java.net.URL url,
FwkPropertyGroupInterface ret)
Read the property group file.
|
java.lang.Object |
readConstructor(org.w3c.dom.Document document,
org.w3c.dom.Element node)
Read a construtor dom node.
|
void |
readFromDOM(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
Read from DOM
|
boolean |
readingDOM()
Get the DOM reading flag.
|
void |
readingDOM(boolean flag)
Set a flag that the object is currently reading the DOM.
|
protected static boolean |
readNextSection(FwkPropertyGroupInterface parent,
java.io.BufferedReader in,
java.lang.String sectionName) |
FwkPropertyGroupInterface |
removeGroup(java.lang.String name)
Remove a property group.
|
boolean |
save(java.lang.String resource)
Save the property group from file or resource.
|
void |
setAuthor(java.lang.String author)
Set the author name.
|
void |
setBuild(java.lang.String buildnr)
Set the build number.
|
void |
setClassName(java.lang.String className)
Set the class name of the FWK object.
|
void |
setCompany(java.lang.String company)
Set the company name.
|
void |
setCompanyInternetAddress(java.lang.String address)
Set the internet address of the company.
|
void |
setCopyright(java.lang.String copyright)
Set the copyright.
|
void |
setCreationDate(java.lang.String dateString)
Set the Date of the application.
|
void |
setCreationDate(java.lang.String dateString,
java.lang.String formatString)
Set the Date of the application.
|
void |
setDateFormatString(java.lang.String formatString)
Set the Date format string.
|
void |
setDescription(java.lang.String description)
Set the description of the application.
|
void |
setDescriptor(FwkDescriptionInterface descriptor)
Initialize the object with values of the given FwkDescription.
|
void |
setIcon(FwkIconInterface icon)
Set the icon image.
|
void |
setIcon(FwkIconInterface icon,
int type)
Set the image icon of the application
|
void |
setIconKey(java.lang.String key)
Set the property keyword of the icon.
|
void |
setIconKey(java.lang.String key,
int type)
Set the property keyword of the icon.
|
void |
setName(java.lang.String name)
Set the name of the ASAM-FWK object.
|
java.lang.Object |
setProperty(java.lang.String key,
boolean value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
byte value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
char value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
double value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
float value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
int value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
long value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
short value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
boolean value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
byte value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
char value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
double value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
float value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
int value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
long value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
short value)
Set a property value.
|
java.lang.Object |
setProperty(java.lang.String groupKey,
java.lang.String key,
java.lang.String value)
Set a property value.
|
void |
setSupportEMail(java.lang.String eMail)
Get the support e-mail.
|
void |
setTitleName(java.lang.String titleName)
Set the title of the application.
|
void |
store(java.io.OutputStream out,
java.lang.String header)
Write the group to the output stream.
|
java.lang.String |
toString()
Get a string representation of the object.
|
org.w3c.dom.Element |
writeConstructor(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
Write a construtor dom node.
|
org.w3c.dom.Element |
writeMapToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Element node,
java.util.Map classProperties)
This method writes a map of the given object to DOM.
|
org.w3c.dom.Element |
writeToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
Write the container as child to the given DOM node.
|
boolean |
writeToXML(java.lang.String filename,
boolean validate)
Writes the canvas to an XML file.
|
createKeys, createKeys, createUserKey, createUserKey, fileLoad, getClassLoader, getFwkMimeTypes, getInputStream, getObject, getObject, getParams, load, load, load, release, searchForProperty, urlLoadload, loadFromXML, save, store, storeToXML, storeToXML, stringPropertyNamesclear, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitclear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, valuesreleaseprotected static final java.lang.String BEGIN
protected static final java.lang.String END
protected static final java.lang.String COMMENT_CHARS
public static final java.lang.String version
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkPropertyFilepublic java.lang.Object clone()
clone in interface FwkPropertyGroupInterfaceclone in class java.util.Hashtable<java.lang.Object,java.lang.Object>public java.lang.Object getProperty(java.lang.String group,
java.lang.String propertyName,
java.awt.datatransfer.DataFlavor flavor)
getProperty in interface FwkPropertyGroupInterfacegroup - The group of the property.propertyName - The requested property name.mimeType - The requested mime type.public java.lang.Object getProperty(java.lang.String propertyName,
java.awt.datatransfer.DataFlavor flavor)
propertyName - The requested property name.mimeType - The requested mime type.public java.lang.Object getProperty(java.lang.String groupKey,
java.lang.Object defaultValue)
getProperty(groupName, propKey, defaultValue) where the defaultValue
is the second parameter of this call.getProperty in interface FwkPropertyGroupInterfacegroupKey - The name of the group.defaultValue - The requested property name.public java.lang.String getProperty(java.lang.String groupKey,
java.lang.String defaultValue)
getProperty(groupName, propKey, defaultValue) where the defaultValue
is the second parameter of this call.getProperty in interface FwkPropertyGroupInterfacegetProperty in class java.util.PropertiesgroupKey - The name of the group.defaultValue - The requested property name.public boolean getProperty(java.lang.String key,
boolean dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public int getProperty(java.lang.String key,
int dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the group.dflt - The default value.public short getProperty(java.lang.String key,
short dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public byte getProperty(java.lang.String key,
byte dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public char getProperty(java.lang.String key,
char dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public long getProperty(java.lang.String key,
long dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public float getProperty(java.lang.String key,
float dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public double getProperty(java.lang.String key,
double dflt)
getProperty in interface FwkPropertyGroupInterfacekey - The name of the property.
The group name must be separated by a dot from group property name.dflt - The default value.public java.lang.String getProperty(java.lang.String key)
getProperty in interface FwkPropertyGroupInterfacegetProperty in class java.util.PropertiespropertyName - The requested property name.public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
setProperty in interface FwkPropertyGroupInterfacesetProperty in class java.util.Propertieskey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
boolean value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
int value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
short value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
byte value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
char value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
long value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
float value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String key,
double value)
setProperty in interface FwkPropertyGroupInterfacekey - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
java.lang.String value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
boolean value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
int value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
short value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
byte value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
char value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
long value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
float value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public java.lang.Object setProperty(java.lang.String groupKey,
java.lang.String key,
double value)
setProperty in interface FwkPropertyGroupInterfacegroupKey - - The name of the group.key - - the key to be placed into this property list.value - - the value corresponding to key.public boolean getProperty(java.lang.String group,
java.lang.String propertyName,
boolean propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public int getProperty(java.lang.String group,
java.lang.String propertyName,
int propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public short getProperty(java.lang.String group,
java.lang.String propertyName,
short propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public byte getProperty(java.lang.String group,
java.lang.String propertyName,
byte propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public char getProperty(java.lang.String group,
java.lang.String propertyName,
char propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public long getProperty(java.lang.String group,
java.lang.String propertyName,
long propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public float getProperty(java.lang.String group,
java.lang.String propertyName,
float propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public double getProperty(java.lang.String group,
java.lang.String propertyName,
double propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public java.lang.String getProperty(java.lang.String group,
java.lang.String propertyName,
java.lang.String propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public java.lang.Object getProperty(java.lang.String group,
java.lang.String propertyName,
java.lang.Object propertyDefault)
getProperty in interface FwkPropertyGroupInterfacegroup - The name of the group.propertyName - The name of the property.propertyDefault - The default property.public FwkPropertyGroupInterface getPropertyGroup(java.lang.String name)
getPropertyGroup in interface FwkPropertyGroupInterfacename - the name of the property group.public FwkPropertyGroupInterface addGroup(java.lang.String name, FwkPropertyGroupInterface newGroup)
addGroup in interface FwkPropertyGroupInterfacename - the name of the property group.newGroup - The group to be added.public FwkPropertyGroupInterface removeGroup(java.lang.String name)
removeGroup in interface FwkPropertyGroupInterfacename - the name of the property group.public void list(java.io.PrintStream out)
list in interface FwkPropertyGroupInterfacelist in class java.util.Propertiesout - an output stream.public void list(java.io.PrintWriter out)
list in interface FwkPropertyGroupInterfacelist in class java.util.Propertiesout - an output stream.public void list(java.io.PrintWriter out,
java.lang.String prefix)
list in interface FwkPropertyGroupInterfaceout - an output stream.prefix - a line prefix for output.public void store(java.io.OutputStream out,
java.lang.String header)
throws java.io.IOException
store in class java.util.Propertiesjava.io.IOExceptionpublic java.util.Enumeration groupNames()
groupNames in interface FwkPropertyGroupInterfacepublic java.util.Enumeration propertyNames()
propertyNames in interface FwkPropertyGroupInterfacepropertyNames in class java.util.Propertiespublic boolean load(java.lang.String resource)
load in interface FwkPropertyGroupInterfaceload in class FwkPropertyFileresource - The resource or filename.public boolean save(java.lang.String resource)
save in interface FwkPropertyGroupInterfaceresource - The resource or filename.public void load(java.io.InputStream inStream)
load in class java.util.PropertiesinStream - the input stream.public static FwkPropertyGroupInterface read(java.lang.String spec, FwkPropertyGroupInterface ret)
spec - the url or file spec to be read.group - The group to that the value should be append.
If null the method creates and returns a new one.public static FwkPropertyGroupInterface read(java.io.File file, FwkPropertyGroupInterface ret)
file - the file to be read.group - The group to that the value should be append.
If null the method creates and returns a new one.public FwkPropertyGroupInterface getGroup(java.lang.String name)
getGroup in interface FwkPropertyGroupInterfacename - the name of the group.public java.lang.Object put(java.lang.String group,
java.util.Map values)
group - The property group.values - the properties of the group.public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Map<java.lang.Object,java.lang.Object>put in class java.util.Hashtable<java.lang.Object,java.lang.Object>key - The key including the group separated by dot.value - The value.public java.lang.Object readConstructor(org.w3c.dom.Document document,
org.w3c.dom.Element node)
readConstructor in interface FwkDOMHandlerInterfacedocument - The documnent Object Model.dtd - The dtd descriptor.node - The node.classProperties - Map the contains the writable object properties.
May be null.public void readFromDOM(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
readFromDOM in interface FwkDOMHandlerInterfacepublic org.w3c.dom.Element writeConstructor(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
writeConstructor in interface FwkDOMHandlerInterfacedocument - The documnent Object Model.dtd - The dtd descriptor.node - The node.classProperties - Map the contains the writable object properties.
May be null.public org.w3c.dom.Element writeToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
writeToDOM in interface FwkDOMHandlerInterfacedocument - The documnent Object Model.node - The parent node.classProperties - Map the contains the writable object properties.
May be null.public org.w3c.dom.Element writeMapToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Element node,
java.util.Map classProperties)
map - The map that should be dumped to DOM.document - The document object model.dtd - The dtd descriptor.node - The node of the object.classProperties - Map the contains the writable properties.
May be null.public boolean writeToXML(java.lang.String filename,
boolean validate)
writeToXML in interface FwkDOMHandlerInterfacefilename - The name of the xml file.validate - Write a validated cml file.public void readingDOM(boolean flag)
readingDOM in interface FwkDOMHandlerInterfaceflag - true if the object reads currently fom DOM.public boolean readingDOM()
readingDOM in interface FwkDOMHandlerInterfacepublic java.lang.String getAuthor()
getAuthor in interface FwkDescriptionInterfacesetAuthor(String)public java.lang.String getBuild()
getBuild in interface FwkDescriptionInterface#setBuild(int)public java.lang.String getClassName()
getClassName in interface FwkDescriptionInterfacesetClassName(String)public java.lang.String getCompany()
getCompany in interface FwkDescriptionInterfacegetCompany in interface FwkDOMHandlerInterfacesetCompany(String)public java.lang.String getCompanyInternetAddress()
getCompanyInternetAddress in interface FwkDescriptionInterfacepublic java.lang.String getCopyright()
getCopyright in interface FwkDescriptionInterfacesetCopyright(String)public java.lang.String getCreationDate()
getCreationDate in interface FwkDescriptionInterface#setCreationDate(Date)public java.lang.String getCreationDate(java.lang.String formatString)
getCreationDate in interface FwkDescriptionInterfaceformatString - The date format string#java.text.SimpleDateFormat,
#setCreationDate(Date)public java.lang.String getDateFormatString()
getDateFormatString in interface FwkDescriptionInterfacepublic java.lang.String getDescription()
getDescription in interface FwkDescriptionInterfacesetDescription(String)public FwkIconInterface getIcon()
getIcon in interface FwkDescriptionInterfacesetIcon(FwkIconInterface)public FwkIconInterface getIcon(int type)
getIcon in interface FwkDescriptionInterfacetype - The type of the icon, use the predefined values (see above).#setIcon(Icon)public java.lang.String getIconKey()
getIconKey in interface FwkDescriptionInterfacepublic java.lang.String getIconKey(int type)
getIconKey in interface FwkDescriptionInterfacetype - The type of the icon, use the predefined values (see above).public java.lang.String getName()
getName in interface FwkDescriptionInterfacepublic java.lang.String getPresentationString(java.util.Locale locale)
getPresentationString in interface FwkDescriptionInterfacelocale - The Locale object or null.public java.lang.String getPresentationString()
getPresentationString in interface FwkDescriptionInterfacepublic java.lang.String getSupportEMail()
getSupportEMail in interface FwkDescriptionInterfacepublic java.lang.String getTitle()
getTitle in interface FwkDescriptionInterfacepublic java.lang.String getTitleName()
getTitleName in interface FwkDescriptionInterfacesetName(String)public void setAuthor(java.lang.String author)
setAuthor in interface FwkDescriptionInterfaceauthor - The name of the author.getAuthor()public void setBuild(java.lang.String buildnr)
setBuild in interface FwkDescriptionInterfacebuildnr - The string representing the build number.getBuild()public void setClassName(java.lang.String className)
setClassName in interface FwkDescriptionInterfaceclassName - The class name.getClassName()public void setCompany(java.lang.String company)
setCompany in interface FwkDescriptionInterfacecompany - The name of the company.getCompany()public void setCompanyInternetAddress(java.lang.String address)
setCompanyInternetAddress in interface FwkDescriptionInterfacepublic void setCopyright(java.lang.String copyright)
setCopyright in interface FwkDescriptionInterfaceThe - copyright string.getCopyright()public void setCreationDate(java.lang.String dateString,
java.lang.String formatString)
setCreationDate in interface FwkDescriptionInterfacedateString - The Date of the application.formatString - The format string.#java.text.SimpleDateFormat,
getCreationDate()public void setCreationDate(java.lang.String dateString)
setCreationDate in interface FwkDescriptionInterfacedateString - The Date of the application.#java.text.SimpleDateFormat,
getCreationDate()public void setDateFormatString(java.lang.String formatString)
setDateFormatString in interface FwkDescriptionInterfaceformatString - The format string.#java.text.SimpleDateFormat,
getCreationDate()public void setDescription(java.lang.String description)
setDescription in interface FwkDescriptionInterfacedescription - The description of the application.getDescription()public void setDescriptor(FwkDescriptionInterface descriptor) throws FwkException
setDescriptor in interface FwkDescriptionInterfacedescriptor - The FwkDescription from that the value should be copied.FwkExceptionpublic void setIcon(FwkIconInterface icon)
setIcon in interface FwkDescriptionInterfaceThe - icon of the application.getIcon()public void setIcon(FwkIconInterface icon, int type)
setIcon in interface FwkDescriptionInterfaceicon - The icon to be set.type - The type of the icon, use predefined values defined above.
If this value is out of range, no icon will be set.getIcon()public void setIconKey(java.lang.String key)
setIconKey in interface FwkDescriptionInterfacekey - The keyword for the icon.public void setIconKey(java.lang.String key,
int type)
setIconKey in interface FwkDescriptionInterfacekey - The keyword for the icon.type - The type of the icon, use predefined values defined above.public void setName(java.lang.String name)
setName in interface FwkDescriptionInterfacename - The name of the object.getName()public void setSupportEMail(java.lang.String eMail)
setSupportEMail in interface FwkDescriptionInterfaceeMail - A string containing the support e-mail.public void setTitleName(java.lang.String titleName)
setTitleName in interface FwkDescriptionInterfacename - The name of the title.getName()public java.lang.String toString()
toString in class FwkPropertyFilepublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.Transferablepublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported in interface java.awt.datatransfer.Transferableflavor - - the requested flavor for the datapublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
getTransferData in interface java.awt.datatransfer.Transferableflavor - - the requested flavor for the datajava.io.IOException - - if the data is no longer available in the requested flavor.
UnsupportedFlavorException - if the requested data flavor is not supported.java.awt.datatransfer.UnsupportedFlavorExceptionjava.awt.datatransfer.DataFlavor.getRepresentationClass()public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
lostOwnership in interface java.awt.datatransfer.ClipboardOwnerclipboard - - the clipboard that is no longer ownedcontents - - the contents which this owner had placed on the clipboardpublic static FwkPropertyGroupInterface read(java.net.URL url, FwkPropertyGroupInterface ret)
url - the url to be read.group - The group to that the value should be append.
If null the method creates and returns a new one.public static FwkPropertyGroupInterface read(java.io.InputStream is, FwkPropertyGroupInterface ret)
is - the inputstream from that the group should be filled up.group - The group to that the value should be append.
If null the method creates and returns a new one.public static FwkPropertyGroupInterface read(java.io.Reader reader, FwkPropertyGroupInterface ret)
reader - the reader from that the group should be filled up.group - The group to that the value should be append.
If null the method creates and returns a new one.protected static boolean readNextSection(FwkPropertyGroupInterface parent, java.io.BufferedReader in, java.lang.String sectionName)
public static void main(java.lang.String[] args)