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 Form| Modifier 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, statusPanelinfoBusMemberSupportchangeManager, properties, 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, titleNameBUSNAMEINFOBUS_SOURCEAUTHOR, 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, writeToXMLaddInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setNameaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManageraddCommand, 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, setTitleNameaddPropertyChangeListener, 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, toStringgetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddExecuteStateListener, getFwkPort, getStatusPanel, hasFwkPort, init, isEternal, isRegistered, register, register, register, removeExecuteStateListener, setArguments, setEternal, setServiceControlManager, unregistergetCompany, readConstructor, readFromDOM, readingDOM, readingDOM, writeConstructor, writeToDOM, writeToXMLgetPrintJobName, setPageFormatgetNumberOfPages, getPageFormat, getPrintablegetPriority, isInterrupted, setPriority, start, stopregister, unregistergetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, 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, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringreleaseaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetControllerpublic 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()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkApplicationpublic static FwkDescriptionInterface getDescriptor()
public void run()
run in interface java.lang.Runnablerun in class FwkApplicationpublic void add(OdsxPresentableElementInterface elem)
add in interface OdsxSelectorInterfaceelem - The instance to be added.public void addMimeType(java.lang.String type)
addMimeType in interface FwkMimeTypeInterfacetype - Mimetype string to be added.public void addMouseListener(java.awt.event.MouseListener listener)
addMouseListener in interface OdsxSelectorInterfacelistener - The mouse listener.public void addMouseMotionListener(java.awt.event.MouseMotionListener listener)
addMouseMotionListener in interface OdsxSelectorInterfacelistener - The mouse motion listener.public void dataItemRequested(javax.infobus.InfoBusItemRequestedEvent ev)
dataItemRequested in interface javax.infobus.InfoBusDataProducerev - The item-requested event.public boolean exit()
exit in interface FwkApplicationInterfaceexit in class FwkApplicationpublic java.lang.Object findDataItem(java.lang.String dataItemName)
findDataItem in interface FwkInfoBusProducerInterfacedataItemName - The item to be found.public java.lang.Object findDataItem(java.lang.String dataItemName,
java.awt.datatransfer.DataFlavor[] flavors)
findDataItem in interface FwkInfoBusProducerInterfacedataItemName - 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 FwkInfoBusProducerInterfacepattern - 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 FwkInfoBusProducerInterfacepattern - 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 FwkInfoBusProducerInterfaceitemName - The name of the item for that the event should be fired.public void fireItemRevoked(javax.infobus.DataItem item)
fireItemRevoked in interface FwkInfoBusProducerInterfaceitemName - The name of the item for that the event should be fired.public FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class FwkPersistencepublic java.awt.datatransfer.DataFlavor getDataFlavor(int index)
throws FwkException
getDataFlavor in interface FwkMimeTypeInterfaceindex - 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 FwkMimeTypeInterfaceFwkException - with the error number AO_EVENT.public OdsxFilterInterface getFilter()
getFilter in interface OdsxSelectorInterfacepublic java.lang.String[] getMimeTypes()
getMimeTypes in interface FwkMimeTypeInterfacepublic FwkPanelInterface getPanel()
getPanel in interface FwkApplicationInterfacegetPanel in class FwkApplicationpublic java.lang.String getRootTitleName()
getRootTitleName in interface OdsxSelectorInterfacepublic OdsxSessionInterface getSession()
getSession in interface OdsxSelectorInterfacepublic void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange in interface java.beans.PropertyChangeListenerev - The property change event.public void remove(OdsxPresentableElementInterface elem)
remove in interface OdsxSelectorInterfaceelem - item to be removed.public void remove(java.lang.String ident)
remove in interface OdsxSelectorInterfaceident - the identification string of item to be removed.public void removeAll()
removeAll in interface OdsxSelectorInterfacepublic void removeMimeType(java.lang.String type)
removeMimeType in interface FwkMimeTypeInterfacetype - 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 FwkInfoBusProducerInterfaceitemName - 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 FwkControlledByInterfacesetController in class FwkApplicationcontroller - the new controller.public void setFilter(OdsxFilterInterface odsFilter, boolean recursive)
setFilter in interface OdsxSelectorInterfaceodsFilter - The filter of this selector.recursive - Recursively set the filters in all nodes.public void setPanel(FwkPanelInterface panel)
setPanel in interface FwkApplicationInterfacesetPanel in class FwkApplicationpanel - The panel of the selector.public void setRootTitleName(java.lang.String rootTitleName)
setRootTitleName in interface OdsxSelectorInterfacerootTitleName - The name of the root title..public void fireExecuteStateEvent(FwkExecuteStateEventInterface event)
fireExecuteStateEvent in interface FwkApplicationInterfacefireExecuteStateEvent in class FwkApplicationevent - The event to be fired.public void setSelectedAsamPath(java.lang.String asamPath)
throws AoException
setSelectedAsamPath in interface OdsxSelectorInterfaceasamPath - The asam path to the new selection.AoExceptionpublic void setSelectedAsamPath(java.lang.String asamPath,
boolean setAsRoot,
boolean open)
throws AoException
setSelectedAsamPath in interface OdsxSelectorInterfaceasamPath - The asam path to the new selection.setAsRoot - Make the selected element the tree root.open - if true the found node will be opened.AoExceptionpublic void setSession(OdsxSessionInterface odsSession)
setSession in interface OdsxSelectorInterfaceodsSession - The session for this selector.public static void main(java.lang.String[] args)