public class AsamCommander extends FwkApplication implements AsamCommanderInterface, OdsxSessionConnectInterface
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| AsamCommander.Selector | classname | com.highqsoft.odsx.OdsxSelector | The classname the selector class to be used. |
| AsamCommander.PresentorPanel | classname | com.highqsoft.odsx.OdsxTextPresentorPanel | The classname of the presentor panel to be used. It is possible to specify more than one class name. In this case the names must be separated by colons. |
| AsamCommander.File.ATHOS_INI | String | ATHOS_INI | The INI file for athos to be used. |
| AsamCommander.Init.ServiceName | String | none | The default service name ot be opened. This value is an application property. |
| AsamCommander.Init.PlugableComponent | String | none | The plugable component that should be used for the default service. |
| AsamCommander.Init.Path | String | none | The initial path of the default service. This value is an application property. |
| AsamCommander.Init.PathAsRoot | boolean | false | This property specifies a boolean whether the initial path should be set as selection root. |
| OdsSession.Error.NoPermissions | String | OdsSession.Error.NoPermissions | The error message that is displayed if the
user has no permissions for the
selected service. |
| Error.Hint | String | Error.Hint | The error hint text message. |
| OdsSession.Error.NoSession | String | OdsSession.Error.NoSession | The error message if ODS could not open a session. |
| Text.File | String | Text.File | The text key for the string File |
| Text.Open | String | Text.Open | The text key for the string Open |
| Text.Close | String | Text.Close | The text key for the string Close |
| Text.Save | String | Text.Save | The text key for the string Save |
| Text.Exit | String | Text.Exit | The text key for the string Exit |
| Text.Bml | String | Text.Bml | The text key for the string Bml |
| Text.Java | String | Text.Java | The text key for the string Java |
| Text.Connect | String | Text.Connect | The text key for the string Connect |
| Text.View | String | Text.View | The text key for the string View |
| Text.Application | String | Text.Application | The text key for the string Application |
| Text.Avalon | String | Text.Avalon | The text key for the string Avalon |
| Text.BusMonitor | String | Text.BusMonitor | The text key for the string BusMonitor |
| Text.DataManager | String | Text.DataManager | The text key for the string DataManager |
| Text.AsamCommander | String | Text.AsamCommander | The text key for the string AsamCommander |
| Text.MED | String | Text.MED | The text key for the string MED |
| Text.OdsFilterEditor | String | Text.OdsFilterEditor | The text key for the string OdsFilterEditor |
| Text.EventView | String | Text.EventView | The text key for the string EventView |
| Text.Customize | String | Text.Customize | The text key for the string Customize |
| Text.Help | String | Text.Help | The text key for the string Help |
| Text.HelpBroker | String | Text.HelpBroker | The text key for the string HelpBroker |
| Text.About | String | Text.About | The text key for the string About |
| AsamCommander.Width | int | The preferred width of a frame. | The width of the frame. |
| AsamCommander.Height | int | The preferred height of a frame. | The height of the frame. |
| AsamCommander.X | int | The default X position of a frame. | The X position of the frame. |
| AsamCommander.Y | int | The default Y position of a frame. | The Y position of the frame. |
| AsamCommander.Title | String | BusMonitor.Title | The AsamCommander application title. |
The following values are reponsable for the icon resources.
There is no default for the used icon.
If no icon was found then no icon will display.
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| Icon.AsamCommander | String | com/highqsoft/fwk/images/AsamCommander.gif | The property key for AsamCommander icon |
| Icon.Open | String | com/highqsoft/fwk/images/Open.gif | The property key for Open icon |
| Icon.Close | String | com/highqsoft/fwk/images/Close.gif | The property key for Close icon |
| Icon.Save | String | com/highqsoft/fwk/images/Save.gif | The property key for Save icon |
| Icon.View | String | com/highqsoft/fwk/images/View.gif | The property key for View icon |
| Icon.Avalon | String | com/highqsoft/fwk/images/Avalon.gif | The property key for Avalon icon |
| Icon.BusMonitor | String | com/highqsoft/fwk/images/BusMonitor.gif | The property key for BusMonitor icon |
| Icon.DataManager | String | com/highqsoft/fwk/images/DataManager.gif | The property key for DataManager icon |
| Icon.EventViewer | String | com/highqsoft/fwk/images/EventViewer.gif | The property key for EventViewer icon |
| Icon.Customize | String | com/highqsoft/fwk/images/Customize.gif | The property key for Customize icon |
| Icon.Help | String | com/highqsoft/fwk/images/Help.gif | The property key for Help icon |
| Interface | Description |
|---|---|
| AsamCommanderMenuInterface | Classes that implements that interface controling the whole menu of the application. |
| AsamCommanderFileMenuInterface | Classes that implements that interface controling the whole file menu of the application. |
| OdsxPresentorPanelInterface | Classes that implements that interface will be integrated as a presentor. |
| OdsxSelectorInterface | Classes that implements that interface will be integrated as a selector. |
,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected static FwkDescriptionInterface |
descriptor |
protected AsamCommanderController |
infoBusController |
protected AsamCommanderOdsSessionConsumer |
odsSessionConsumer |
protected OdsxSessionProducer |
odsSessionProducer |
static java.lang.String |
SYSTEM_ERROR_TITLE |
static java.lang.String |
USER_ERROR_TITLE |
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, titleNameINFOBUS_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 |
|---|
AsamCommander() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(OdsxSessionInterface odsSession)
Add a session to the internal list.
|
void |
connectToSession(OdsxSessionInterface odsSession)
Connect to the specified session.
|
void |
disconnectFromSession(OdsxSessionInterface odsSession)
Disconnect from the specified session.
|
boolean |
exit()
Exit the application gracefully and release all
related resources
|
FwkCommandInterface[] |
getCommands()
Retrieve the command array.
|
static FwkDescriptionInterface |
getDescriptor() |
FwkPanelInterface |
getPanel()
Get the panel of this application.
|
OdsxPresentorInterface |
getPresentor()
Returns the current presentor.
|
OdsxPresentorInterface |
getPresentor(int index)
Returns a presentor.
|
int |
getPresentorCount()
Returns the total number of available presentors.
|
java.lang.String |
getPresentorTitle()
Get the title of the selected presentor.
|
java.lang.String |
getPresentorTitle(int index)
Get the title of the selected presentor.
|
OdsxSelectorInterface |
getSelector()
Returns the current selector.
|
OdsxSelectorInterface |
getSelector(int index)
Returns a selector.
|
int |
getSelectorCount()
Returns the total number of available selectors.
|
java.lang.String |
getSelectorTitle()
Get the title of the selected selector.
|
java.lang.String |
getSelectorTitle(int index)
Get the title of the selected selector.
|
java.lang.String |
getServiceOptionString()
Get the default service option string.
|
OdsxSessionInterface |
getSession()
Get the current session.
|
FwkInfoBusConsumerInterface |
getSessionConsumer()
Get the session consumer.
|
java.lang.String |
getSessionOptionString()
Get the default session option string.
|
FwkInfoBusProducerInterface |
getSessionProducer()
Get the session producer.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
initialize()
Initialize the commander.
|
OdsxSessionInterface[] |
listSessions()
Get all connected sessions.
|
static void |
main(java.lang.String[] args)
Main module of this application.
|
void |
readFromDOM(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
Read from DOM
|
void |
removeSession(OdsxSessionInterface odsSession)
Remove a session from the internal list.
|
void |
removeSession(java.lang.String sessionName)
Remove a session from the internal list.
|
void |
run()
Run the application.
|
void |
setPanel(FwkPanelInterface panel)
Set the asam commander panel.
|
void |
setSelectedPresentor(OdsxPresentorInterface presentor)
Set the selected presentor.
|
void |
setSelectedSelector(OdsxSelectorInterface selector)
Set the selected selector.
|
org.w3c.dom.Element |
writeToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
Write the container as child to the given DOM node.
|
addExecuteStateListener, destroyController, fireExecuteStateEvent, getController, getFwkPort, getNumberOfPages, getPageFormat, getPrintable, getPrintJobName, getPriority, getStatusPanel, hasFwkPort, init, isEternal, isInterrupted, isRegistered, print, readConstructor, readingDOM, readingDOM, register, register, register, removeExecuteStateListener, setArguments, setController, setEternal, setPageFormat, setPriority, setServiceControlManager, start, stop, unregister, writeConstructor, 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, waitgetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNameaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetCompanyfireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesaddPropertyChangeListener, 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, getPresentationStringreleasepublic static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
public static final java.lang.String SYSTEM_ERROR_TITLE
public static final java.lang.String USER_ERROR_TITLE
protected AsamCommanderController infoBusController
protected OdsxSessionProducer odsSessionProducer
protected AsamCommanderOdsSessionConsumer odsSessionConsumer
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkApplicationpublic static FwkDescriptionInterface getDescriptor()
public FwkInfoBusConsumerInterface getSessionConsumer()
getSessionConsumer in interface OdsxSessionConnectInterfacepublic FwkInfoBusProducerInterface getSessionProducer()
getSessionProducer in interface OdsxSessionConnectInterfacepublic FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class FwkPersistencepublic void setPanel(FwkPanelInterface panel)
setPanel in interface FwkApplicationInterfacesetPanel in class FwkApplicationpanel - The panel of the application.public FwkPanelInterface getPanel()
getPanel in interface FwkApplicationInterfacegetPanel in class FwkApplicationpublic java.lang.String getServiceOptionString()
getServiceOptionString in interface OdsxSessionConnectInterfacepublic java.lang.String getSessionOptionString()
getSessionOptionString in interface OdsxSessionConnectInterfacepublic void connectToSession(OdsxSessionInterface odsSession)
connectToSession in interface OdsxSessionConnectInterfaceodsSession - The Ods Session to be added..public void addSession(OdsxSessionInterface odsSession)
odsSession - The Ods Session to be added..public void disconnectFromSession(OdsxSessionInterface odsSession)
disconnectFromSession in interface OdsxSessionConnectInterfaceodsSession - The Ods Session to be added..public void removeSession(OdsxSessionInterface odsSession)
odsSession - The Ods Session to be removedpublic OdsxSessionInterface[] listSessions()
listSessions in interface OdsxSessionConnectInterfacepublic void removeSession(java.lang.String sessionName)
sessionName - The name of the Ods Session to be removedpublic void initialize()
public void run()
run in interface java.lang.Runnablerun in class FwkApplicationpublic boolean exit()
exit in interface FwkApplicationInterfaceexit in class FwkApplicationpublic void setSelectedSelector(OdsxSelectorInterface selector)
setSelectedSelector in interface AsamCommanderInterfaceselector - The selector to be selected.public OdsxSelectorInterface getSelector()
getSelector in interface AsamCommanderInterfacepublic OdsxSessionInterface getSession()
public int getSelectorCount()
getSelectorCount in interface AsamCommanderInterfacepublic OdsxSelectorInterface getSelector(int index)
getSelector in interface AsamCommanderInterfaceindex - The index of the selector.public java.lang.String getSelectorTitle()
getSelectorTitle in interface AsamCommanderInterfaceindex - The index of the selector.public java.lang.String getSelectorTitle(int index)
getSelectorTitle in interface AsamCommanderInterfacepublic OdsxPresentorInterface getPresentor()
getPresentor in interface AsamCommanderInterfacepublic int getPresentorCount()
getPresentorCount in interface AsamCommanderInterfacepublic OdsxPresentorInterface getPresentor(int index)
getPresentor in interface AsamCommanderInterfaceindex - The index of the presentor.public void setSelectedPresentor(OdsxPresentorInterface presentor)
setSelectedPresentor in interface AsamCommanderInterfacepresentor - The presentor to be selected.public java.lang.String getPresentorTitle()
getPresentorTitle in interface AsamCommanderInterfaceindex - The index of the presentor.public java.lang.String getPresentorTitle(int index)
getPresentorTitle in interface AsamCommanderInterfacepublic org.w3c.dom.Element writeToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
writeToDOM in interface FwkDOMHandlerInterfacewriteToDOM in class FwkApplicationdocument - The documnent Object Model.node - The parent node.classProperties - Map the contains the writable object properties.
May be null.public void readFromDOM(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
readFromDOM in interface FwkDOMHandlerInterfacereadFromDOM in class FwkApplicationdoc - The document object model.element - The object element node of the asam commander.public static void main(java.lang.String[] args)