public class OdsxSelector extends FwkApplication implements OdsxSelectorInterface, FwkPropertyChangeListenerInterface
Property Keyword | Datatype | Default | Description |
---|---|---|---|
OdsxSelector.Text.SystemErrorTitle | String | OdsxSelector.Text.SystemErrorTitle | The title string for error messages. |
OdsxSelector.FilterXMLFile | String | com_highqsoft_odsx_OdsxFilter.xml | The XML file for the filter object. If this file could not be read the object instantiate the class that is given via the property OdsxSelector.Filter |
OdsxSelector.Filter | String | com.highqsoft.odsx.OdsxFilter | The filter class. This class is use when the object isn't able to load the XML file only. |
Interface | Description |
---|---|
OdsxSessionMenuInterface | Classes that implements that interface controling the popup menu of the tabbed paneles |
OdsxSessionCustomizerInterface | Classes that implements that interface provides the additional popup menu entires of the tabbed paneles |
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
OdsxSelector.AddThread
The thread that adds an element to the producer.
|
class |
OdsxSelector.OdsxPathConsumer
The consumer class.
|
class |
OdsxSelector.RemoveAllThread
The thread that removes all element from producer.
|
class |
OdsxSelector.RemoveThread
The thread that removes an element from producer.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
asamPath
The asam path buffer.
|
protected OdsxSelector.OdsxPathConsumer |
consumer
The element consumer.
|
protected static FwkDescriptionInterface |
descriptor
The description.
|
static OdsxFilterInterface |
FILTER
Instance of the default filter.
|
protected static java.lang.String |
FILTER_CLASSNAME
Default filter.
|
protected static java.lang.String |
FILTER_XMLFILE
Default filter XML file.
|
protected OdsxFilterInterface |
odsFilter
The filter of ASAM-ODS elements.
|
protected OdsxSessionInterface |
odsSession
The Odsx session for this selector.
|
static java.awt.datatransfer.DataFlavor[] |
pathFlavor
The path data flavor.
|
protected OdsxPresentableElementProducer |
producer
The element producer.
|
protected boolean |
recursive
If this flag is true the ods filter will be set recursivly.
|
protected java.lang.String |
rootTitleName
The root title name.
|
protected boolean |
setAsRoot
If this flag is true the asam path will be used as tree root.
|
static java.lang.String |
SYSTEM_ERROR_TITLE
The error message titles
|
protected java.util.Vector |
treeMouseListeners
The tree mouse listener buffer.
|
protected java.util.Vector |
treeMouseMotionListeners
The tree mouse motion listener buffer.
|
protected OdsxFilteredTreeNode |
treeRoot
The root of the selection tree.
|
static java.lang.String |
version |
applicationThread, args, controller, eternal, executeStateListeners, pageFormat, panel, port, readingDOM, serviceControlManager, statusLabel, statusPanel
infoBusMemberSupport
changeManager, properties, 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
BUSNAME
INFOBUS_SOURCE
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 |
---|
OdsxSelector()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(OdsxPresentableElementInterface elem)
Publishes an ASAM-ODS instance dataitem.
|
void |
addMimeType(java.lang.String type)
Add a mimetype.
|
void |
addMouseListener(java.awt.event.MouseListener listener)
Add a mouse listener.
|
void |
addMouseMotionListener(java.awt.event.MouseMotionListener listener)
Add a mouse motion listener.
|
void |
dataItemRequested(javax.infobus.InfoBusItemRequestedEvent ev)
Invoked whenever a dataitem is requested.
|
boolean |
exit()
Exit the application.
|
java.lang.Object |
findDataItem(java.lang.String dataItemName)
Seeks a DataItem for a given data item name.
|
java.lang.Object |
findDataItem(java.lang.String dataItemName,
java.awt.datatransfer.DataFlavor[] flavors)
Seeks a DataItem for a given data item name.
|
java.lang.Object[] |
findMultipleDataItems(java.lang.String dataItemName)
Seeks all available dataitems that match the pattern.
|
java.lang.Object[] |
findMultipleDataItems(java.lang.String dataItemName,
java.awt.datatransfer.DataFlavor[] flavors)
Seeks all available dataitems that match the pattern.
|
void |
fireExecuteStateEvent(FwkExecuteStateEventInterface event)
Fire an execute state event.
|
void |
fireItemAvailable(javax.infobus.DataItem item,
java.awt.datatransfer.DataFlavor[] flavor)
Fire an item revoked event on the given item name.
|
void |
fireItemRevoked(javax.infobus.DataItem item)
Fire an item revoked event on the given item name.
|
FwkCommandInterface[] |
getCommands()
Retrieve the command array.
|
java.awt.datatransfer.DataFlavor |
getDataFlavor(int index)
Return the data flavor of the mimetype.
|
java.awt.datatransfer.DataFlavor[] |
getDataFlavors()
Return the data flavor array of all mimetypes.
|
static FwkDescriptionInterface |
getDescriptor() |
OdsxFilterInterface |
getFilter()
Get the filter of this selector.
|
java.lang.String[] |
getMimeTypes()
Get the mime type string list.
|
FwkPanelInterface |
getPanel()
Get the panel of this application.
|
java.lang.String |
getRootTitleName()
Get the name of the root title.
|
OdsxSessionInterface |
getSession()
Get the session of this selector.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static void |
main(java.lang.String[] args)
Main test module of this application.
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
This method will be invoked, whenever a property changed.
|
void |
remove(OdsxPresentableElementInterface elem)
Remove a dataitem from bus.
|
void |
remove(java.lang.String ident)
Remove a dataitem from bus.
|
void |
removeAll()
Remove all item from bus.
|
void |
removeMimeType(java.lang.String type)
Remove a mimetype.
|
boolean |
revoke(java.lang.String itemName,
java.awt.datatransfer.DataFlavor[] flavor)
This method revoke an item from producer list.
|
void |
run()
the run implementation.
|
void |
setController(FwkControllerInterface controller)
Set the controller.
|
void |
setFilter(OdsxFilterInterface odsFilter,
boolean recursive)
Set the filter of this selector.
|
void |
setPanel(FwkPanelInterface panel)
Set the panel of the selector.
|
void |
setRootTitleName(java.lang.String rootTitleName)
Set the name of the root title.
|
void |
setSelectedAsamPath(java.lang.String asamPath)
Set the current selection to the given AsamPath.
|
void |
setSelectedAsamPath(java.lang.String asamPath,
boolean setAsRoot,
boolean open)
Set the current selection to the given AsamPath.
|
void |
setSession(OdsxSessionInterface odsSession)
Set the session of this selector.
|
addExecuteStateListener, destroyController, getController, getFwkPort, getNumberOfPages, getPageFormat, getPrintable, getPrintJobName, getPriority, getStatusPanel, hasFwkPort, init, isEternal, isInterrupted, isRegistered, print, readConstructor, readFromDOM, readingDOM, readingDOM, register, register, register, removeExecuteStateListener, setArguments, setEternal, setPageFormat, setPriority, setServiceControlManager, start, stop, unregister, writeConstructor, writeToDOM, writeToXML
addInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setName
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManager
addCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, 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, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addExecuteStateListener, getFwkPort, getStatusPanel, hasFwkPort, init, isEternal, isRegistered, register, register, register, removeExecuteStateListener, setArguments, setEternal, setServiceControlManager, unregister
getCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXML
getPrintJobName, setPageFormat
getNumberOfPages, getPageFormat, getPrintable
getPriority, isInterrupted, setPriority, start, stop
register, unregister
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
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
getAuthor, getBuild, getClassName, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
release
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getController
public static final java.lang.String version
public static final OdsxFilterInterface FILTER
public static final java.awt.datatransfer.DataFlavor[] pathFlavor
protected static final java.lang.String FILTER_CLASSNAME
protected static final java.lang.String FILTER_XMLFILE
public static final java.lang.String SYSTEM_ERROR_TITLE
protected static final FwkDescriptionInterface descriptor
protected OdsxSessionInterface odsSession
protected OdsxFilterInterface odsFilter
protected boolean recursive
protected OdsxFilteredTreeNode treeRoot
protected OdsxPresentableElementProducer producer
protected OdsxSelector.OdsxPathConsumer consumer
protected java.lang.String rootTitleName
protected java.util.Vector treeMouseListeners
protected java.util.Vector treeMouseMotionListeners
protected java.lang.String asamPath
protected boolean setAsRoot
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkApplication
public static FwkDescriptionInterface getDescriptor()
public void run()
run
in interface java.lang.Runnable
run
in class FwkApplication
public void add(OdsxPresentableElementInterface elem)
add
in interface OdsxSelectorInterface
elem
- The instance to be added.public void addMimeType(java.lang.String type)
addMimeType
in interface FwkMimeTypeInterface
type
- Mimetype string to be added.public void addMouseListener(java.awt.event.MouseListener listener)
addMouseListener
in interface OdsxSelectorInterface
listener
- The mouse listener.public void addMouseMotionListener(java.awt.event.MouseMotionListener listener)
addMouseMotionListener
in interface OdsxSelectorInterface
listener
- The mouse motion listener.public void dataItemRequested(javax.infobus.InfoBusItemRequestedEvent ev)
dataItemRequested
in interface javax.infobus.InfoBusDataProducer
ev
- The item-requested event.public boolean exit()
exit
in interface FwkApplicationInterface
exit
in class FwkApplication
public java.lang.Object findDataItem(java.lang.String dataItemName)
findDataItem
in interface FwkInfoBusProducerInterface
dataItemName
- The item to be found.public java.lang.Object findDataItem(java.lang.String dataItemName, java.awt.datatransfer.DataFlavor[] flavors)
findDataItem
in interface FwkInfoBusProducerInterface
dataItemName
- The item to be found.flavors
- The flavors that should be support by the item.public java.lang.Object[] findMultipleDataItems(java.lang.String dataItemName)
findMultipleDataItems
in interface FwkInfoBusProducerInterface
pattern
- The dataitem pattern.flavors
- The flavors that should be support by the item.public java.lang.Object[] findMultipleDataItems(java.lang.String dataItemName, java.awt.datatransfer.DataFlavor[] flavors)
findMultipleDataItems
in interface FwkInfoBusProducerInterface
pattern
- The dataitem pattern.flavors
- The flavors that should be support by the item.public void fireItemAvailable(javax.infobus.DataItem item, java.awt.datatransfer.DataFlavor[] flavor)
fireItemAvailable
in interface FwkInfoBusProducerInterface
itemName
- The name of the item for that the event should be fired.public void fireItemRevoked(javax.infobus.DataItem item)
fireItemRevoked
in interface FwkInfoBusProducerInterface
itemName
- The name of the item for that the event should be fired.public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
getCommands
in class FwkPersistence
public java.awt.datatransfer.DataFlavor getDataFlavor(int index) throws FwkException
getDataFlavor
in interface FwkMimeTypeInterface
index
- The index of the mime type.FwkException
- with the error number FWK_CANNOT_CREATE_DATAFLAVOR.public java.awt.datatransfer.DataFlavor[] getDataFlavors() throws FwkException
getDataFlavors
in interface FwkMimeTypeInterface
FwkException
- with the error number AO_EVENT.public OdsxFilterInterface getFilter()
getFilter
in interface OdsxSelectorInterface
public java.lang.String[] getMimeTypes()
getMimeTypes
in interface FwkMimeTypeInterface
public FwkPanelInterface getPanel()
getPanel
in interface FwkApplicationInterface
getPanel
in class FwkApplication
public java.lang.String getRootTitleName()
getRootTitleName
in interface OdsxSelectorInterface
public OdsxSessionInterface getSession()
getSession
in interface OdsxSelectorInterface
public void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange
in interface java.beans.PropertyChangeListener
ev
- The property change event.public void remove(OdsxPresentableElementInterface elem)
remove
in interface OdsxSelectorInterface
elem
- item to be removed.public void remove(java.lang.String ident)
remove
in interface OdsxSelectorInterface
ident
- the identification string of item to be removed.public void removeAll()
removeAll
in interface OdsxSelectorInterface
public void removeMimeType(java.lang.String type)
removeMimeType
in interface FwkMimeTypeInterface
type
- Mimetype to be removed.public boolean revoke(java.lang.String itemName, java.awt.datatransfer.DataFlavor[] flavor)
The method returns a boolean that indicates whether producer supports the revokation. It is possible to test the revoke by passing a null string to that method.
revoke
in interface FwkInfoBusProducerInterface
itemName
- The name of the item to be revoked or null to get the
support flag.flavor
- The data flavor of the item to be revoked.public void setController(FwkControllerInterface controller)
setController
in interface FwkControlledByInterface
setController
in class FwkApplication
controller
- the new controller.public void setFilter(OdsxFilterInterface odsFilter, boolean recursive)
setFilter
in interface OdsxSelectorInterface
odsFilter
- The filter of this selector.recursive
- Recursively set the filters in all nodes.public void setPanel(FwkPanelInterface panel)
setPanel
in interface FwkApplicationInterface
setPanel
in class FwkApplication
panel
- The panel of the selector.public void setRootTitleName(java.lang.String rootTitleName)
setRootTitleName
in interface OdsxSelectorInterface
rootTitleName
- The name of the root title..public void fireExecuteStateEvent(FwkExecuteStateEventInterface event)
fireExecuteStateEvent
in interface FwkApplicationInterface
fireExecuteStateEvent
in class FwkApplication
event
- The event to be fired.public void setSelectedAsamPath(java.lang.String asamPath) throws AoException
setSelectedAsamPath
in interface OdsxSelectorInterface
asamPath
- The asam path to the new selection.AoException
public void setSelectedAsamPath(java.lang.String asamPath, boolean setAsRoot, boolean open) throws AoException
setSelectedAsamPath
in interface OdsxSelectorInterface
asamPath
- The asam path to the new selection.setAsRoot
- Make the selected element the tree root.open
- if true the found node will be opened.AoException
public void setSession(OdsxSessionInterface odsSession)
setSession
in interface OdsxSelectorInterface
odsSession
- The session for this selector.public static void main(java.lang.String[] args)