public class FwkInfoBusImmediateAccess extends FwkItem implements FwkInfoBusImmediateAccessInterface
,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
protected class |
FwkInfoBusImmediateAccess.ElementConsumer
The consumer class.
|
| Modifier and Type | Field and Description |
|---|---|
protected FwkArray |
children |
protected java.util.HashMap |
properties |
protected boolean |
valid |
static java.lang.String |
version |
changeManager, suspendChangeManagersourceauthor, 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_NAMEINFOBUS_SOURCE| Constructor and Description |
|---|
FwkInfoBusImmediateAccess()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChild(FwkInfoBusItemGroupInterface child)
Add a child to group.
|
void |
addChildListener(FwkChildListenerInterface l)
Add a child listener.
|
boolean |
containsChild(FwkInfoBusItemGroupInterface child)
Return a boolean whether the given child is already in group.
|
protected void |
fireChildAdded(java.lang.Object child)
Fire a child added event.
|
protected void |
fireChildRemoved(java.lang.Object child)
Fire a child removed event.
|
FwkArrayInterface |
getAllChildren()
Returns the children of the group.
|
FwkArrayInterface |
getAllChildren(FwkArrayInterface array)
Returns the children of the group recursivly.
|
FwkArrayInterface |
getChildren()
Returns the children of the group.
|
FwkArrayInterface |
getChildren(FwkArrayInterface array)
Returns the children of the group.
|
int |
getChildrenCount(boolean recursive)
Return the total number of children.
|
java.lang.Object |
getProperty(java.lang.String keyword)
Get a property value.
|
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.Object |
getValueAsObject()
Get the value as object.
|
java.lang.String |
getValueAsString()
Get the vale as string.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
boolean |
hasChildren()
Returns a boolean that indicates whether the group has children.
|
boolean |
hasValidValues()
Returns a boolean whether the item has valid values.
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
Returns whether or not the specified data flavor is supported for this object.
|
boolean |
isGroup()
Returns a boolean that indicates whether the item is a group.
|
void |
removeAllChildren()
Remove all children from group.
|
void |
removeChild(FwkInfoBusItemGroupInterface child)
Remove a child to group.
|
void |
removeChild(FwkInfoBusItemGroupInterface child,
boolean recursive)
Remove a child recursively from group.
|
void |
removeChildListener(FwkChildListenerInterface l)
Remove a child listener.
|
void |
setChildren(FwkArrayInterface array)
Sets the children of the group.
|
void |
setProperty(java.lang.String keyword,
java.lang.Object value)
Set a property value.
|
void |
setValidValues(boolean flag)
Set the flag for valid values.
|
void |
setValue(java.lang.Object col)
Set the value of the item.
|
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setName, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, removeCommand, removeFromGroup, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCommands, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSource, setSupportEMail, setTitleNameaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNamegetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamereleaseaddDataItemChangeListener, removeDataItemChangeListenergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListeneraddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringpublic static final java.lang.String version
protected java.util.HashMap properties
protected FwkArray children
protected boolean valid
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkItempublic java.lang.String getValueAsString()
getValueAsString in interface javax.infobus.ImmediateAccesspublic void setValue(java.lang.Object col)
throws javax.infobus.InvalidDataException
setValue in interface javax.infobus.ImmediateAccessvalue - the new value.javax.infobus.InvalidDataExceptionpublic java.lang.Object getValueAsObject()
getValueAsObject in interface javax.infobus.ImmediateAccesspublic boolean hasValidValues()
hasValidValues in interface FwkInfoBusImmediateAccessInterfacepublic void setValidValues(boolean flag)
setValidValues in interface FwkInfoBusImmediateAccessInterfaceflag - true if the values should be valid.public boolean isGroup()
isGroup in interface FwkInfoBusImmediateAccessInterfacepublic boolean hasChildren()
hasChildren in interface FwkInfoBusItemGroupInterfacepublic int getChildrenCount(boolean recursive)
getChildrenCount in interface FwkInfoBusItemGroupInterfacerecursive - if true the counter will parse the child groups.public FwkArrayInterface getChildren()
getChildren in interface FwkInfoBusItemGroupInterfacepublic FwkArrayInterface getChildren(FwkArrayInterface array)
getChildren in interface FwkInfoBusItemGroupInterfacearray - An array to store the children.
If this parameter is null the routine must create it.
The parameter or the newly created array will be returned.public FwkArrayInterface getAllChildren()
getAllChildren in interface FwkInfoBusItemGroupInterfacepublic FwkArrayInterface getAllChildren(FwkArrayInterface array)
getAllChildren in interface FwkInfoBusItemGroupInterfacearray - An array to store the recursive children.
If this parameter is null the routine must create it.
The parameter or the newly created array will be returned.public void setChildren(FwkArrayInterface array)
setChildren in interface FwkInfoBusItemGroupInterfacearray - An array containing the names of children of the group.public boolean addChild(FwkInfoBusItemGroupInterface child)
addChild in interface FwkInfoBusItemGroupInterfacechild - The new child.public boolean containsChild(FwkInfoBusItemGroupInterface child)
containsChild in interface FwkInfoBusItemGroupInterfacechild - the child to be checked.public void removeChild(FwkInfoBusItemGroupInterface child)
removeChild in interface FwkInfoBusItemGroupInterfacechild - The new child.public void removeChild(FwkInfoBusItemGroupInterface child, boolean recursive)
removeChild in interface FwkInfoBusItemGroupInterfacechild - The new child.public void removeAllChildren()
removeAllChildren in interface FwkInfoBusItemGroupInterfacepublic void addChildListener(FwkChildListenerInterface l)
addChildListener in interface FwkInfoBusItemGroupInterfacel - The listener to be added.public void removeChildListener(FwkChildListenerInterface l)
removeChildListener in interface FwkInfoBusItemGroupInterfacel - The listener to be removed.protected void fireChildAdded(java.lang.Object child)
child - the child that was added.protected void fireChildRemoved(java.lang.Object child)
child - the child that was removed.public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
throws java.io.IOException,
java.awt.datatransfer.UnsupportedFlavorException
getTransferData in interface java.awt.datatransfer.TransferablegetTransferData in class FwkDescriptionflavor - 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 supportejava.awt.datatransfer.UnsupportedFlavorExceptionjava.awt.datatransfer.DataFlavor.getRepresentationClass()public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.TransferablegetTransferDataFlavors in class FwkDescriptionpublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
isDataFlavorSupported in interface java.awt.datatransfer.TransferableisDataFlavorSupported in class FwkDescriptionflavor - the requested flavor for the datapublic void setProperty(java.lang.String keyword,
java.lang.Object value)
setProperty in interface FwkInfoBusImmediateAccessInterfacesetProperty in interface FwkItemInterfacesetProperty in class FwkItemkeyword - The keyword of the new property value.value - Thge value belongs to the keyword.public java.lang.Object getProperty(java.lang.String keyword)
getProperty in interface FwkItemInterfacegetProperty in interface javax.infobus.DataItemgetProperty in class FwkItemkeyword - The keyword to that a property value is searched.