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 FormModifier 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, 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
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 |
---|
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, 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
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getCompany
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
getCommands, getPersistentObjectNames
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
public 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkApplication
public static FwkDescriptionInterface getDescriptor()
public FwkInfoBusConsumerInterface getSessionConsumer()
getSessionConsumer
in interface OdsxSessionConnectInterface
public FwkInfoBusProducerInterface getSessionProducer()
getSessionProducer
in interface OdsxSessionConnectInterface
public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
getCommands
in class FwkPersistence
public void setPanel(FwkPanelInterface panel)
setPanel
in interface FwkApplicationInterface
setPanel
in class FwkApplication
panel
- The panel of the application.public FwkPanelInterface getPanel()
getPanel
in interface FwkApplicationInterface
getPanel
in class FwkApplication
public java.lang.String getServiceOptionString()
getServiceOptionString
in interface OdsxSessionConnectInterface
public java.lang.String getSessionOptionString()
getSessionOptionString
in interface OdsxSessionConnectInterface
public void connectToSession(OdsxSessionInterface odsSession)
connectToSession
in interface OdsxSessionConnectInterface
odsSession
- 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 OdsxSessionConnectInterface
odsSession
- The Ods Session to be added..public void removeSession(OdsxSessionInterface odsSession)
odsSession
- The Ods Session to be removedpublic OdsxSessionInterface[] listSessions()
listSessions
in interface OdsxSessionConnectInterface
public 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.Runnable
run
in class FwkApplication
public boolean exit()
exit
in interface FwkApplicationInterface
exit
in class FwkApplication
public void setSelectedSelector(OdsxSelectorInterface selector)
setSelectedSelector
in interface AsamCommanderInterface
selector
- The selector to be selected.public OdsxSelectorInterface getSelector()
getSelector
in interface AsamCommanderInterface
public OdsxSessionInterface getSession()
public int getSelectorCount()
getSelectorCount
in interface AsamCommanderInterface
public OdsxSelectorInterface getSelector(int index)
getSelector
in interface AsamCommanderInterface
index
- The index of the selector.public java.lang.String getSelectorTitle()
getSelectorTitle
in interface AsamCommanderInterface
index
- The index of the selector.public java.lang.String getSelectorTitle(int index)
getSelectorTitle
in interface AsamCommanderInterface
public OdsxPresentorInterface getPresentor()
getPresentor
in interface AsamCommanderInterface
public int getPresentorCount()
getPresentorCount
in interface AsamCommanderInterface
public OdsxPresentorInterface getPresentor(int index)
getPresentor
in interface AsamCommanderInterface
index
- The index of the presentor.public void setSelectedPresentor(OdsxPresentorInterface presentor)
setSelectedPresentor
in interface AsamCommanderInterface
presentor
- The presentor to be selected.public java.lang.String getPresentorTitle()
getPresentorTitle
in interface AsamCommanderInterface
index
- The index of the presentor.public java.lang.String getPresentorTitle(int index)
getPresentorTitle
in interface AsamCommanderInterface
public org.w3c.dom.Element writeToDOM(org.w3c.dom.Document document, FwkXmlDtdInterface dtd, org.w3c.dom.Node node, java.util.Map classProperties)
writeToDOM
in interface FwkDOMHandlerInterface
writeToDOM
in class FwkApplication
document
- 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 FwkDOMHandlerInterface
readFromDOM
in class FwkApplication
doc
- The document object model.element
- The object element node of the asam commander.public static void main(java.lang.String[] args)