public class FwkPersistence extends FwkPropertyChange implements FwkPersistenceInterface
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
version |
sourceauthor, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, icon, ICON, iconCount, iconKey, internetAddress, name, titleNameAUTHOR, 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 |
|---|
FwkPersistence()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(FwkCommandInterface command)
Add the command to the command array.
|
void |
addCommand(int index,
FwkCommandInterface command)
Insert a command at the specified position.
|
void |
addToGroup(int index,
java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
void |
addToGroup(java.lang.String groupIdent,
java.lang.String commandName)
Add a command to a group.
|
void |
addVetoableChangeListener(FwkVetoableChangeListenerInterface listener)
Add a VetoableChangeListener to the listener list.
|
void |
addVetoableChangeListener(java.lang.String propertyName,
FwkVetoableChangeListenerInterface listener)
Add a VetoableChangeListener for a specific property.
|
void |
clearCommands()
Clear all commands.
|
boolean |
commandsAvailable()
This method returns a boolean that indicates whether
the command array is initialized.
|
int |
compareTo(java.lang.Object o)
Compare the component to another.
|
void |
deleteGroup(java.lang.String groupIdent)
Delete command group.
|
boolean |
destroyController()
Destroy method.
|
protected void |
fireVetoableChange(java.beans.PropertyChangeEvent evt)
Fire an existing VetoableChangeEvent to any registered listeners.
|
protected void |
fireVetoableChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Report a boolean bound vetoable update to any registered listeners.
|
protected void |
fireVetoableChange(java.lang.String propertyName,
char oldValue,
char newValue)
Report an char bound vetoable update to any registered listeners.
|
protected void |
fireVetoableChange(java.lang.String propertyName,
double oldValue,
double newValue)
Report an double bound property update to any registered listeners.
|
protected void |
fireVetoableChange(java.lang.String propertyName,
float oldValue,
float newValue)
Report an float bound vetoable update to any registered listeners.
|
protected void |
fireVetoableChange(java.lang.String propertyName,
int oldValue,
int newValue)
Report an int bound property update to any registered listeners.
|
protected void |
fireVetoableChange(java.lang.String propertyName,
long oldValue,
long newValue)
Report an long bound vetoable update to any registered listeners.
|
void |
fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a bound property update to any registered listeners.
|
java.lang.String |
getAuthor()
Get the author name.
|
java.lang.String |
getBuild()
Get the build number.
|
FwkCommandInterface |
getCommand(java.lang.String commandName)
Return the command that matches the given command name.
|
FwkCommandInterface[] |
getCommands()
Retrieve the command array of the command.
|
FwkCommandInterface[] |
getCommands(FwkControllerInterface controller)
Retrieve the command array of the component.
|
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.
|
FwkArrayInterface |
getFwkMimeTypes()
Return the mimetypes of the component.
|
FwkCommandInterface[] |
getGroup(java.lang.String groupIdent)
Retrieve the command group.
|
FwkIconInterface |
getIcon()
Get the icon of the application.
|
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()
Get the name.
|
void |
getPersistentObjectNames(FwkPersistenceInfoInterface persistentObjects)
Get the names of the persistent objects from a component.
|
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.String |
getVersion()
Return the version string of the FWK component.
|
FwkArrayInterface |
getVetoableChangeArray()
Get an array containing the property names for that listeners are registered.
|
FwkArrayInterface |
getVetoableChangeListenerArray()
Get an array containing the registered vetoable change listeners.
|
FwkArrayInterface |
getVetoableChangeListenerArray(java.lang.String propertyName)
Get an array containing the registered vetoable change listeners for the
specific vetoable.
|
boolean |
groupExists(java.lang.String groupIdent)
Check whether a group exists.
|
void |
removeCommand(FwkCommandInterface command)
Remove a sub-command.
|
void |
removeFromGroup(java.lang.String groupIdent,
java.lang.String commandName)
Remove a command from a group.
|
void |
removeVetoableChangeListener(FwkVetoableChangeListenerInterface listener)
Remove a VetoableChangeListener from the listener list.
|
void |
removeVetoableChangeListener(java.lang.String propertyName,
FwkVetoableChangeListenerInterface listener)
Remove a VetoableChangeListener for a specific property.
|
void |
setAuthor(java.lang.String author)
Set the author name.
|
void |
setBuild(java.lang.String buildnr)
Set the build number.
|
void |
setCommands(FwkCommandInterface[] commands)
Set the sub-commands of the command.
|
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,
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(FwkCompareInterface descriptor)
Initialize the object with values of the given descriptor.
|
void |
setDescriptor(FwkDescriptionInterface descriptor)
Initialize the object with values of the given FwkDescription.
|
void |
setIcon(FwkIconInterface icon)
Get the icon of the application.
|
void |
setIcon(FwkIconInterface icon,
int type)
Set the image icon of the application
This method fires a property change event on property "Icon".
|
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 application name.
|
void |
setSource(FwkInterface source)
Set the bean source object of the veto change support.
|
void |
setSupportEMail(java.lang.String eMail)
Get the support e-mail.
|
void |
setTitleName(java.lang.String name)
Set the application title name.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersion, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, setClassName, setCreationDategetTransferData, getTransferDataFlavors, isDataFlavorSupportedgetPresentationString, getPresentationStringreleasepublic static final java.lang.String version
public FwkPersistence()
itemName - The name of the infobus data item.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkPropertyChangepublic void getPersistentObjectNames(FwkPersistenceInfoInterface persistentObjects)
getPersistentObjectNames in interface FwkPersistenceInterfacepersistentObjects - The names of persistent objects.public void setSource(FwkInterface source)
setSource in interface FwkPropertyChangeInterfacesetSource in class FwkPropertyChangesource - The component to be given as the source for any events.public FwkArrayInterface getVetoableChangeListenerArray()
getVetoableChangeListenerArray in interface FwkVetoableChangeInterfacepublic FwkArrayInterface getVetoableChangeListenerArray(java.lang.String propertyName)
getVetoableChangeListenerArray in interface FwkVetoableChangeInterfacepublic FwkArrayInterface getVetoableChangeArray()
getVetoableChangeArray in interface FwkVetoableChangeInterfacepublic void addVetoableChangeListener(FwkVetoableChangeListenerInterface listener)
addVetoableChangeListener in interface FwkVetoableChangeInterfacelistener - The property change listener.VetoableChangeSupportpublic void addVetoableChangeListener(java.lang.String propertyName,
FwkVetoableChangeListenerInterface listener)
addVetoableChangeListener in interface FwkVetoableChangeInterfacepropertyName - The property name.listener - The vetoable change listener.VetoableChangeSupportprotected void fireVetoableChange(java.beans.PropertyChangeEvent evt)
evt - The vetoable change event.VetoableChangeSupportprotected void fireVetoableChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
vetoableName - The vetoable name.oldValue - The old value of the vetoable.newValue - The new value of the vetoable.VetoableChangeSupportprotected void fireVetoableChange(java.lang.String propertyName,
char oldValue,
char newValue)
propertyName - The property name.oldValue - The old value of the property.newValue - The new value of the property.protected void fireVetoableChange(java.lang.String propertyName,
int oldValue,
int newValue)
propertyName - The property name.oldValue - The old value of the property.newValue - The new value of the property.VetoableChangeSupportprotected void fireVetoableChange(java.lang.String propertyName,
long oldValue,
long newValue)
propertyName - The property name.oldValue - The old value of the property.newValue - The new value of the property.protected void fireVetoableChange(java.lang.String propertyName,
float oldValue,
float newValue)
propertyName - The property name.oldValue - The old value of the property.newValue - The new value of the property.protected void fireVetoableChange(java.lang.String propertyName,
double oldValue,
double newValue)
propertyName - The property name.oldValue - The old value of the property.newValue - The new value of the property.public void fireVetoableChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyName - The property name.oldValue - The old value of the property.newValue - The new value of the property.VetoableChangeSupportpublic void removeVetoableChangeListener(FwkVetoableChangeListenerInterface listener)
removeVetoableChangeListener in interface FwkVetoableChangeInterfacelistener - The property change listener.VetoableChangeSupportpublic void removeVetoableChangeListener(java.lang.String propertyName,
FwkVetoableChangeListenerInterface listener)
removeVetoableChangeListener in interface FwkVetoableChangeInterfacepropertyName - The property name.listener - The property change listener.VetoableChangeSupportpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableobject - The object to compare to.public java.lang.String getAuthor()
getAuthor in interface FwkDescriptionInterfacegetAuthor in class FwkDescriptionsetAuthor(String)public java.lang.String getBuild()
getBuild in interface FwkDescriptionInterfacegetBuild in class FwkDescription#setBuild(int)public java.lang.String getCompany()
getCompany in interface FwkDescriptionInterfacegetCompany in class FwkDescriptionsetCompany(String)public java.lang.String getCompanyInternetAddress()
getCompanyInternetAddress in interface FwkDescriptionInterfacegetCompanyInternetAddress in class FwkDescriptionpublic java.lang.String getCopyright()
getCopyright in interface FwkDescriptionInterfacegetCopyright in class FwkDescriptionsetCopyright(String)public java.lang.String getCreationDate()
getCreationDate in interface FwkDescriptionInterfacegetCreationDate in class FwkDescription#setCreationDate(Date)public java.lang.String getCreationDate(java.lang.String formatString)
getCreationDate in interface FwkDescriptionInterfacegetCreationDate in class FwkDescriptionformatString - The date format string#java.text.SimpleDateFormat,
#setCreationDate(Date)public java.lang.String getDateFormatString()
getDateFormatString in interface FwkDescriptionInterfacegetDateFormatString in class FwkDescriptionpublic java.lang.String getDescription()
getDescription in interface FwkDescriptionInterfacegetDescription in class FwkDescriptionsetDescription(String)public FwkIconInterface getIcon()
getIcon in interface FwkDescriptionInterfacegetIcon in class FwkDescriptionsetIcon(FwkIconInterface)public FwkIconInterface getIcon(int type)
getIcon in interface FwkDescriptionInterfacegetIcon in class FwkDescriptiontype - The type of the icon, use the predefined values (see above).#setIcon(Icon)public java.lang.String getIconKey()
getIconKey in interface FwkDescriptionInterfacegetIconKey in class FwkDescriptionpublic java.lang.String getIconKey(int type)
getIconKey in interface FwkDescriptionInterfacegetIconKey in class FwkDescriptiontype - The type of the icon, use the predefined values (see above).public java.lang.String getName()
getName in interface FwkDescriptionInterfacegetName in class FwkDescriptionsetName(String)public java.lang.String getSupportEMail()
getSupportEMail in interface FwkDescriptionInterfacegetSupportEMail in class FwkDescriptionpublic java.lang.String getTitleName()
getTitleName in interface FwkDescriptionInterfacegetTitleName in class FwkDescriptionsetTitleName(String)public java.lang.String getTitle()
getTitle in interface FwkDescriptionInterfacegetTitle in class FwkDescriptionpublic void setAuthor(java.lang.String author)
setAuthor in interface FwkDescriptionInterfacesetAuthor in class FwkDescriptionauthor - The name of the author.getAuthor()public void setBuild(java.lang.String buildnr)
setBuild in interface FwkDescriptionInterfacesetBuild in class FwkDescriptionThe - number of build.getBuild()public void setCompany(java.lang.String company)
setCompany in interface FwkDescriptionInterfacesetCompany in class FwkDescriptioncompany - The name of the company.getCompany()public void setCompanyInternetAddress(java.lang.String address)
setCompanyInternetAddress in interface FwkDescriptionInterfacesetCompanyInternetAddress in class FwkDescriptionpublic void setCreationDate(java.lang.String dateString,
java.lang.String formatString)
setCreationDate in interface FwkDescriptionInterfacesetCreationDate in class FwkDescriptiondateString - The Date of the application.formatString - The format string.#java.text.SimpleDateFormat,
getCreationDate()public void setDateFormatString(java.lang.String formatString)
setDateFormatString in interface FwkDescriptionInterfacesetDateFormatString in class FwkDescriptionformatString - The format string.#java.text.SimpleDateFormat,
getCreationDate()public void setDescriptor(FwkDescriptionInterface descriptor)
setDescriptor in interface FwkDescriptionInterfacesetDescriptor in class FwkDescriptiondesciptor - The FwkDescription from that the value should be copied.public void setCopyright(java.lang.String copyright)
setCopyright in interface FwkDescriptionInterfacesetCopyright in class FwkDescriptionThe - copyright string.getCopyright()public void setDescription(java.lang.String description)
setDescription in interface FwkDescriptionInterfacesetDescription in class FwkDescriptiondescription - The description of the application.getDescription()public void setDescriptor(FwkCompareInterface descriptor)
desciptor - The FwkCompare from that the value should be copied.public void setIcon(FwkIconInterface icon)
setIcon in interface FwkDescriptionInterfacesetIcon in class FwkDescription#getIcon(FwkIconInterface)public void setIcon(FwkIconInterface icon, int type)
setIcon in interface FwkDescriptionInterfacesetIcon in class FwkDescriptionicon - The icon to be set.type - The type of the icon, use predefined values defined above.getIcon()public void setIconKey(java.lang.String key)
setIconKey in interface FwkDescriptionInterfacesetIconKey in class FwkDescriptionkey - The keyword for the icon.public void setIconKey(java.lang.String key,
int type)
setIconKey in interface FwkDescriptionInterfacesetIconKey in class FwkDescriptionkey - 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 FwkDescriptionInterfacesetName in class FwkDescriptionname - The name of the application.getName()public void setSupportEMail(java.lang.String eMail)
setSupportEMail in interface FwkDescriptionInterfacesetSupportEMail in class FwkDescriptioneMail - A string containing the support e-mail.public void setTitleName(java.lang.String name)
setTitleName in interface FwkDescriptionInterfacesetTitleName in class FwkDescriptionname - The title name of the application.getTitleName()public FwkArrayInterface getFwkMimeTypes()
public void addCommand(FwkCommandInterface command)
addCommand in interface FwkInstructionInterfacecommand - The command to be added.public void addCommand(int index,
FwkCommandInterface command)
addCommand in interface FwkInstructionInterfaceindex - The position where the command has to be inserted.command - The command to be added.public FwkCommandInterface getCommand(java.lang.String commandName)
getCommand in interface FwkInstructionInterfacecommandName - The name of the requested command.public FwkCommandInterface[] getCommands(FwkControllerInterface controller)
getCommands in interface FwkPersistenceInterfacecontroller - The Command controller.public FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacepublic boolean commandsAvailable()
commandsAvailable in interface FwkInstructionInterfacepublic void clearCommands()
clearCommands in interface FwkInstructionInterfacepublic void removeCommand(FwkCommandInterface command)
removeCommand in interface FwkInstructionInterfacecommand - The sub-command to be removed.public void setCommands(FwkCommandInterface[] commands)
setCommands in interface FwkInstructionInterfacecommands - The array containing the sub-commands.FwkInstructionInterface.addCommand(FwkCommandInterface command)public void addToGroup(int index,
java.lang.String groupIdent,
java.lang.String commandName)
addToGroup in interface FwkInstructionInterfaceindex - Index where the command should be placed.groupIdent - The string identified of the group.commandName - The name of the command.public void addToGroup(java.lang.String groupIdent,
java.lang.String commandName)
addToGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.commandName - The name of the command.public void removeFromGroup(java.lang.String groupIdent,
java.lang.String commandName)
removeFromGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.commandName - The name of the command.public void deleteGroup(java.lang.String groupIdent)
deleteGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.public FwkCommandInterface[] getGroup(java.lang.String groupIdent)
getGroup in interface FwkInstructionInterfacegroupIdent - The string identified of the group.public boolean groupExists(java.lang.String groupIdent)
groupExists in interface FwkInstructionInterfacepublic boolean destroyController()
destroyController in interface FwkControllerInterface