public class Jas3Console extends Console
Console.PropertyListener| Constructor and Description |
|---|
Jas3Console() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPreference(String[] path,
String group,
String format)
Adds a setter for one or more previously defined properties to the preferences menu.
|
void |
addProperty(String key,
Object defaultValue)
Defines a console property with the specified default value.
|
void |
addPropertyListener(Console.PropertyListener listener,
String filter)
Registers a listener that will be notified of property changes.
|
void |
error(String message)
Notifies the user of an application error.
|
void |
error(String message,
Exception x)
Notifies the user of an application error.
|
org.freehep.application.studio.Studio |
getApplication() |
org.freehep.util.FreeHEPLookup |
getLookup()
Returns a lookup instance that can be used objects registered by various
components of the graphical console.
|
Object |
getProperty(String key)
Returns the value of the property with the specified key.
|
Window |
getWindow()
Returns the root component for the main Graphical Console window.
|
Object |
removeProperty(String key)
Removes a console property.
|
boolean |
removePropertyListener(Console.PropertyListener listener)
Removes the specified property listener.
|
void |
setProperties(Map<String,Object> properties)
Sets values of a set of properties.
|
Object |
setProperty(String key,
Object value)
Sets the value of the specified property.
|
abort, abort, addClearAlertHandler, checkAllHardwareStarted, checkAllHardwareStopped, checkHardware, clearAlerts, clearAllAlerts, completeInitialization, completeInitialization, doShutdown, doStart, forceShutdown, getNumberCommandThreads, getRaisedAlertSummary, internalShutdown, internalStart, ping, postStart, printRunningCommands, raiseAlert, removeLogPanicState, setBusLogHandlerLevel, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepth, stop, switchToEngineeringMode, switchToNormalModeaddCommandSet, broadcastStatus, executeCommandRequest, getAgentInfo, getCCSVersions, getCommandCount, getCommandSet, getCurrentAction, getDictionaries, getDistributionInfo, getEnvironmentMessagingAccess, getMessagingAccess, getName, getScheduler, getState, getState, getStatusBroadcastPeriod, isInEngineeringMode, isInState, isInState, publishStateChange, publishSubsystemDataOnStatusBus, shutdown, start, updateAgentState, updateHeartBeat, updateInternalState, waitForpublic org.freehep.util.FreeHEPLookup getLookup()
Consolepublic Window getWindow()
Consolepublic final org.freehep.application.studio.Studio getApplication()
public void error(String message)
Consolepublic void error(String message, Exception x)
Consolepublic void addProperty(String key, Object defaultValue)
ConsoleConsole.setProperty(String, Object)
method or through the preference dialog if their keys are used in setter format strings passed to
the #addPreference(String[], String, String) method. Properties that have been modified
from their default values are saved between the graphical console sessions.
When a property is retrieved with a call to {@link #getProperty(String)} method, the type of the returned object is determined by the type of the default value supplied when the property was defined.
addProperty in class Consolekey - Property key. Can be used to retrieve the property value.defaultValue - Default value for the property.
Must be of type Boolean, Enum, Integer, Long, Double, or String.public Object removeProperty(String key)
ConsoleConsole.addProperty(String, Object)
method, the property is removed and its current value is removed from storage; calling this method for a
property that has not been defined has no effect.removeProperty in class Consolekey - Property key.null if there was no such property.public void addPreference(String[] path, String group, String format)
ConsoleaddPreference in class Consolepath - Path in the preferences tree to the page where the property setter should be displayed.group - Group inside the preferences page. If null, the property setter is displayed in the default group.format - Specifies the format of the property setter.public Object getProperty(String key)
ConsoleConsole.addProperty(String, Object)
but exists in the console storage, it will be returned as a String.getProperty in class Consolekey - Property key.null if the property does not exist.public Object setProperty(String key, Object value)
ConsoleConsole.addProperty(String, Object) method, the value will be converted
to a String and stored. Such keys cannot be used in setter format
strings passed to #addPreference(String[], String, String) method.
If the property value is set to {@code null}, it is removed from storage, so subsequent calls to {@link #getProperty(String)} will return the default value, if it has been set.
setProperty in class Consolekey - Property key.value - Property value, or null if the property is being reset to its default value.null if the property did not exist.public void setProperties(Map<String,Object> properties)
ConsolesetProperties in class Consolepublic void addPropertyListener(Console.PropertyListener listener, String filter)
ConsoleaddPropertyListener in class Consolelistener - The listener to be notified.filter - Regular expression the property key has to match to trigger notification.public boolean removePropertyListener(Console.PropertyListener listener)
ConsoleremovePropertyListener in class Consolelistener - Listener to be removed.True if the specified listener was registered with this console.Copyright © 2016 LSST. All rights reserved.