public interface Console
Modifier and Type | Method and Description |
---|---|
void |
addConsoleListener(ConsoleListener listener)
Adds a listener for console events
|
java.lang.Object |
getGlobalProperty(java.lang.String name)
Gets a global property.
|
javax.management.MBeanServerConnection |
getJMXConnection()
Gets the JMX MBeanServerConnection for the current connection
|
java.lang.Object |
getRegisteredObject(java.lang.String objectName)
Gets the value of a previously registered object
|
java.lang.String |
getStatusMessage()
Gets the current status message displayed by the console
|
boolean |
isDirty(View view)
Returns whether the given view is set as dirty (i.e.; has changed data that needs saving back to persistent XML)
|
void |
postMessage(java.lang.String toViewClassName,
java.lang.String messageId,
java.util.Map messageData)
Posts a message to the given view, used for inter-view communication
|
void |
registerObject(java.lang.String objectName,
java.lang.Object object)
Registers an object with the console by name, can be used by views to store state at the console level and share
information between views
|
void |
reloadConsole()
Reload the console - this should re-read the configuration.
|
void |
setDirty(View view,
boolean dirty)
Sets a flag to indicate that the given view is dirty (i.e.; has changed data the needs saving back to pesistent XML).
|
void |
setGlobalProperty(java.lang.String name,
java.lang.Object value)
Sets a global property.
|
void |
setStatusMessage(java.lang.String message)
Sets the consoles current status message string
|
boolean |
showView(java.lang.String toViewClassName)
Shows the given view, the view must be defined in the console xml configuration file
|
javax.management.MBeanServerConnection getJMXConnection()
java.lang.String getStatusMessage()
void setStatusMessage(java.lang.String message)
message
- the status message string to setboolean isDirty(View view)
view
- the view to checkvoid setDirty(View view, boolean dirty)
view
- the view that is dirtydirty
- true to set the flag, false to clearvoid addConsoleListener(ConsoleListener listener)
listener
- the ConsoleListenerjava.lang.Object getRegisteredObject(java.lang.String objectName)
objectName
- the name of the object to lookupvoid registerObject(java.lang.String objectName, java.lang.Object object)
objectName
- the name of the object to storeobject
- the object to storevoid postMessage(java.lang.String toViewClassName, java.lang.String messageId, java.util.Map messageData)
toViewClassName
- the class name of the view to receive the messagemessageId
- a String identifying the messagemessageData
- a Map of name, value pairs representing messages databoolean showView(java.lang.String toViewClassName)
toViewClassName
- The view to show.void reloadConsole()
void setGlobalProperty(java.lang.String name, java.lang.Object value)
View
within any of those child consoles.name
- identifies the global property being setvalue
- the value to associate with the name parameterjava.lang.Object getGlobalProperty(java.lang.String name)
View
within any of those child consoles.name
- identifies which global property to get.Please send bug reports and comments to Caplin support