public class FwkPersistence extends FwkPropertyChange implements FwkPersistenceInterface
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
source
author, 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, titleName
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 |
---|
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, suspendPropertyChangeEvents
getClassName, getPresentationString, getPresentationString, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEvents
getClassName, getPresentationString, getPresentationString, setClassName, setCreationDate
getTransferData, getTransferDataFlavors, isDataFlavorSupported
getPresentationString, getPresentationString
release
public static final java.lang.String version
public FwkPersistence()
itemName
- The name of the infobus data item.public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkPropertyChange
public void getPersistentObjectNames(FwkPersistenceInfoInterface persistentObjects)
getPersistentObjectNames
in interface FwkPersistenceInterface
persistentObjects
- The names of persistent objects.public void setSource(FwkInterface source)
setSource
in interface FwkPropertyChangeInterface
setSource
in class FwkPropertyChange
source
- The component to be given as the source for any events.public FwkArrayInterface getVetoableChangeListenerArray()
getVetoableChangeListenerArray
in interface FwkVetoableChangeInterface
public FwkArrayInterface getVetoableChangeListenerArray(java.lang.String propertyName)
getVetoableChangeListenerArray
in interface FwkVetoableChangeInterface
public FwkArrayInterface getVetoableChangeArray()
getVetoableChangeArray
in interface FwkVetoableChangeInterface
public void addVetoableChangeListener(FwkVetoableChangeListenerInterface listener)
addVetoableChangeListener
in interface FwkVetoableChangeInterface
listener
- The property change listener.VetoableChangeSupport
public void addVetoableChangeListener(java.lang.String propertyName, FwkVetoableChangeListenerInterface listener)
addVetoableChangeListener
in interface FwkVetoableChangeInterface
propertyName
- The property name.listener
- The vetoable change listener.VetoableChangeSupport
protected void fireVetoableChange(java.beans.PropertyChangeEvent evt)
evt
- The vetoable change event.VetoableChangeSupport
protected 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.VetoableChangeSupport
protected 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.VetoableChangeSupport
protected 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.VetoableChangeSupport
public void removeVetoableChangeListener(FwkVetoableChangeListenerInterface listener)
removeVetoableChangeListener
in interface FwkVetoableChangeInterface
listener
- The property change listener.VetoableChangeSupport
public void removeVetoableChangeListener(java.lang.String propertyName, FwkVetoableChangeListenerInterface listener)
removeVetoableChangeListener
in interface FwkVetoableChangeInterface
propertyName
- The property name.listener
- The property change listener.VetoableChangeSupport
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
object
- The object to compare to.public java.lang.String getAuthor()
getAuthor
in interface FwkDescriptionInterface
getAuthor
in class FwkDescription
setAuthor(String)
public java.lang.String getBuild()
getBuild
in interface FwkDescriptionInterface
getBuild
in class FwkDescription
#setBuild(int)
public java.lang.String getCompany()
getCompany
in interface FwkDescriptionInterface
getCompany
in class FwkDescription
setCompany(String)
public java.lang.String getCompanyInternetAddress()
getCompanyInternetAddress
in interface FwkDescriptionInterface
getCompanyInternetAddress
in class FwkDescription
public java.lang.String getCopyright()
getCopyright
in interface FwkDescriptionInterface
getCopyright
in class FwkDescription
setCopyright(String)
public java.lang.String getCreationDate()
getCreationDate
in interface FwkDescriptionInterface
getCreationDate
in class FwkDescription
#setCreationDate(Date)
public java.lang.String getCreationDate(java.lang.String formatString)
getCreationDate
in interface FwkDescriptionInterface
getCreationDate
in class FwkDescription
formatString
- The date format string#java.text.SimpleDateFormat
,
#setCreationDate(Date)
public java.lang.String getDateFormatString()
getDateFormatString
in interface FwkDescriptionInterface
getDateFormatString
in class FwkDescription
public java.lang.String getDescription()
getDescription
in interface FwkDescriptionInterface
getDescription
in class FwkDescription
setDescription(String)
public FwkIconInterface getIcon()
getIcon
in interface FwkDescriptionInterface
getIcon
in class FwkDescription
setIcon(FwkIconInterface)
public FwkIconInterface getIcon(int type)
getIcon
in interface FwkDescriptionInterface
getIcon
in class FwkDescription
type
- The type of the icon, use the predefined values (see above).#setIcon(Icon)
public java.lang.String getIconKey()
getIconKey
in interface FwkDescriptionInterface
getIconKey
in class FwkDescription
public java.lang.String getIconKey(int type)
getIconKey
in interface FwkDescriptionInterface
getIconKey
in class FwkDescription
type
- The type of the icon, use the predefined values (see above).public java.lang.String getName()
getName
in interface FwkDescriptionInterface
getName
in class FwkDescription
setName(String)
public java.lang.String getSupportEMail()
getSupportEMail
in interface FwkDescriptionInterface
getSupportEMail
in class FwkDescription
public java.lang.String getTitleName()
getTitleName
in interface FwkDescriptionInterface
getTitleName
in class FwkDescription
setTitleName(String)
public java.lang.String getTitle()
getTitle
in interface FwkDescriptionInterface
getTitle
in class FwkDescription
public void setAuthor(java.lang.String author)
setAuthor
in interface FwkDescriptionInterface
setAuthor
in class FwkDescription
author
- The name of the author.getAuthor()
public void setBuild(java.lang.String buildnr)
setBuild
in interface FwkDescriptionInterface
setBuild
in class FwkDescription
The
- number of build.getBuild()
public void setCompany(java.lang.String company)
setCompany
in interface FwkDescriptionInterface
setCompany
in class FwkDescription
company
- The name of the company.getCompany()
public void setCompanyInternetAddress(java.lang.String address)
setCompanyInternetAddress
in interface FwkDescriptionInterface
setCompanyInternetAddress
in class FwkDescription
public void setCreationDate(java.lang.String dateString, java.lang.String formatString)
setCreationDate
in interface FwkDescriptionInterface
setCreationDate
in class FwkDescription
dateString
- The Date of the application.formatString
- The format string.#java.text.SimpleDateFormat
,
getCreationDate()
public void setDateFormatString(java.lang.String formatString)
setDateFormatString
in interface FwkDescriptionInterface
setDateFormatString
in class FwkDescription
formatString
- The format string.#java.text.SimpleDateFormat
,
getCreationDate()
public void setDescriptor(FwkDescriptionInterface descriptor)
setDescriptor
in interface FwkDescriptionInterface
setDescriptor
in class FwkDescription
desciptor
- The FwkDescription from that the value should be copied.public void setCopyright(java.lang.String copyright)
setCopyright
in interface FwkDescriptionInterface
setCopyright
in class FwkDescription
The
- copyright string.getCopyright()
public void setDescription(java.lang.String description)
setDescription
in interface FwkDescriptionInterface
setDescription
in class FwkDescription
description
- 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 FwkDescriptionInterface
setIcon
in class FwkDescription
#getIcon(FwkIconInterface)
public void setIcon(FwkIconInterface icon, int type)
setIcon
in interface FwkDescriptionInterface
setIcon
in class FwkDescription
icon
- 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 FwkDescriptionInterface
setIconKey
in class FwkDescription
key
- The keyword for the icon.public void setIconKey(java.lang.String key, int type)
setIconKey
in interface FwkDescriptionInterface
setIconKey
in class FwkDescription
key
- 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 FwkDescriptionInterface
setName
in class FwkDescription
name
- The name of the application.getName()
public void setSupportEMail(java.lang.String eMail)
setSupportEMail
in interface FwkDescriptionInterface
setSupportEMail
in class FwkDescription
eMail
- A string containing the support e-mail.public void setTitleName(java.lang.String name)
setTitleName
in interface FwkDescriptionInterface
setTitleName
in class FwkDescription
name
- The title name of the application.getTitleName()
public FwkArrayInterface getFwkMimeTypes()
public void addCommand(FwkCommandInterface command)
addCommand
in interface FwkInstructionInterface
command
- The command to be added.public void addCommand(int index, FwkCommandInterface command)
addCommand
in interface FwkInstructionInterface
index
- 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 FwkInstructionInterface
commandName
- The name of the requested command.public FwkCommandInterface[] getCommands(FwkControllerInterface controller)
getCommands
in interface FwkPersistenceInterface
controller
- The Command controller.public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
public boolean commandsAvailable()
commandsAvailable
in interface FwkInstructionInterface
public void clearCommands()
clearCommands
in interface FwkInstructionInterface
public void removeCommand(FwkCommandInterface command)
removeCommand
in interface FwkInstructionInterface
command
- The sub-command to be removed.public void setCommands(FwkCommandInterface[] commands)
setCommands
in interface FwkInstructionInterface
commands
- 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 FwkInstructionInterface
index
- 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 FwkInstructionInterface
groupIdent
- 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 FwkInstructionInterface
groupIdent
- The string identified of the group.commandName
- The name of the command.public void deleteGroup(java.lang.String groupIdent)
deleteGroup
in interface FwkInstructionInterface
groupIdent
- The string identified of the group.public FwkCommandInterface[] getGroup(java.lang.String groupIdent)
getGroup
in interface FwkInstructionInterface
groupIdent
- The string identified of the group.public boolean groupExists(java.lang.String groupIdent)
groupExists
in interface FwkInstructionInterface
public boolean destroyController()
destroyController
in interface FwkControllerInterface