public class FwkInfoBusImmediateAccess extends FwkItem implements FwkInfoBusImmediateAccessInterface
,
Serialized FormModifier 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, suspendChangeManager
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
INFOBUS_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, suspendChangeManager
addCommand, 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, setTitleName
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEvents
getClassName, getPresentationString, getPresentationString, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getAuthor, 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, setTitleName
release
addDataItemChangeListener, removeDataItemChangeListener
getCommands, getPersistentObjectNames
destroyController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
public static final java.lang.String version
protected java.util.HashMap properties
protected FwkArray children
protected boolean valid
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkItem
public java.lang.String getValueAsString()
getValueAsString
in interface javax.infobus.ImmediateAccess
public void setValue(java.lang.Object col) throws javax.infobus.InvalidDataException
setValue
in interface javax.infobus.ImmediateAccess
value
- the new value.javax.infobus.InvalidDataException
public java.lang.Object getValueAsObject()
getValueAsObject
in interface javax.infobus.ImmediateAccess
public boolean hasValidValues()
hasValidValues
in interface FwkInfoBusImmediateAccessInterface
public void setValidValues(boolean flag)
setValidValues
in interface FwkInfoBusImmediateAccessInterface
flag
- true if the values should be valid.public boolean isGroup()
isGroup
in interface FwkInfoBusImmediateAccessInterface
public boolean hasChildren()
hasChildren
in interface FwkInfoBusItemGroupInterface
public int getChildrenCount(boolean recursive)
getChildrenCount
in interface FwkInfoBusItemGroupInterface
recursive
- if true the counter will parse the child groups.public FwkArrayInterface getChildren()
getChildren
in interface FwkInfoBusItemGroupInterface
public FwkArrayInterface getChildren(FwkArrayInterface array)
getChildren
in interface FwkInfoBusItemGroupInterface
array
- 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 FwkInfoBusItemGroupInterface
public FwkArrayInterface getAllChildren(FwkArrayInterface array)
getAllChildren
in interface FwkInfoBusItemGroupInterface
array
- 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 FwkInfoBusItemGroupInterface
array
- An array containing the names of children of the group.public boolean addChild(FwkInfoBusItemGroupInterface child)
addChild
in interface FwkInfoBusItemGroupInterface
child
- The new child.public boolean containsChild(FwkInfoBusItemGroupInterface child)
containsChild
in interface FwkInfoBusItemGroupInterface
child
- the child to be checked.public void removeChild(FwkInfoBusItemGroupInterface child)
removeChild
in interface FwkInfoBusItemGroupInterface
child
- The new child.public void removeChild(FwkInfoBusItemGroupInterface child, boolean recursive)
removeChild
in interface FwkInfoBusItemGroupInterface
child
- The new child.public void removeAllChildren()
removeAllChildren
in interface FwkInfoBusItemGroupInterface
public void addChildListener(FwkChildListenerInterface l)
addChildListener
in interface FwkInfoBusItemGroupInterface
l
- The listener to be added.public void removeChildListener(FwkChildListenerInterface l)
removeChildListener
in interface FwkInfoBusItemGroupInterface
l
- 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.Transferable
getTransferData
in class FwkDescription
flavor
- 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.UnsupportedFlavorException
java.awt.datatransfer.DataFlavor.getRepresentationClass()
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
getTransferDataFlavors
in class FwkDescription
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
isDataFlavorSupported
in class FwkDescription
flavor
- the requested flavor for the datapublic void setProperty(java.lang.String keyword, java.lang.Object value)
setProperty
in interface FwkInfoBusImmediateAccessInterface
setProperty
in interface FwkItemInterface
setProperty
in class FwkItem
keyword
- 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 FwkItemInterface
getProperty
in interface javax.infobus.DataItem
getProperty
in class FwkItem
keyword
- The keyword to that a property value is searched.