|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.displayers.selector.Selector
public class Selector
Selector
is a non-visual bean which performs all queries for
remote property names. The queries are bean started by selecting the
higher level parameter. First the access protocol should be selected, which
triggers the context query. Upon selecting the context, subsystem query will
be performed etc.
All queries made in this bean are synchronous. However one cannot explicitely
demand a list of parameters if the query has not been completed. After each
of the queries completes it will set the parameters to the property
whic will fire a PropertyChangeEvent notifying the listeners that one
of the properties has changed. In addition to that selector also fires
QueryEvent
s each time a query was started or finished.
TQuery
Field Summary | |
---|---|
static java.lang.String |
PROTOCOL_TINE
|
Constructor Summary | |
---|---|
Selector()
Constructs a new Selector. |
Method Summary | |
---|---|
void |
addExceptionListener(ExceptionListener l)
Adds an ExceptionListener which receives notifications of all exceptions that occured while queries were performed. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener for all properties. |
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener and assigns it to listen to a specific property. |
void |
addQueryListener(QueryListener l)
Adds a QueryListener which receives notifications when query is started or finished. |
protected void |
firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
|
protected void |
fireQueryFinished(java.lang.String process)
|
protected void |
fireQueryStarted(java.lang.String process)
|
AccessMode |
getAccessMode()
Returns selected access mode. |
int |
getAccessRate()
Returns the access rate. |
java.lang.String[] |
getAvailableContexts()
Returns all available contexts loaded from remote server. |
java.lang.String[] |
getAvailableDevices()
Returns all available devices loaded from remote server. |
java.lang.String[] |
getAvailableProperties()
Returns all available properties loaded from remote server. |
java.lang.String[] |
getAvailableProtcols()
Returns all available protocols. |
java.lang.String[] |
getAvailableServers()
Returns all available servers loaded from remote server. |
java.lang.String[] |
getAvailableSubsystems()
Returns all available subsystems loaded from the remote server. |
java.lang.String |
getRemoteName()
Returns the remote name constructed from the selected parameters. |
java.lang.String |
getSelectedContext()
Returns the selected context. |
java.lang.String |
getSelectedDevice()
Returns the selected device. |
java.lang.String |
getSelectedProperty()
Returns the selected property. |
java.lang.String |
getSelectedProtocol()
Returns the selected protocol. |
java.lang.String |
getSelectedServer()
Returns the selected server. |
java.lang.String |
getSelectedSubSystem()
Returns the selected subsystem. |
boolean |
isBusy()
|
boolean |
isShowStockProperties()
Returns a flag if stock properties should also be loaded at the same time when properties are loaded. |
static void |
main(java.lang.String[] args)
|
void |
removeExceptionListener(ExceptionListener l)
Removes an ExceptionListener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener. |
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from listening a specific property. |
void |
removeQueryListener(QueryListener l)
Removes a QueryListener. |
void |
setAccessMode(AccessMode mode)
Sets the access mode. |
void |
setAccessRate(int value)
Sets the access rate. |
void |
setSelectedContext(java.lang.String selectedContext)
Selects a context and initiates subsystem query. |
void |
setSelectedDevice(java.lang.String selectedDevice)
Selects a device and intiates property names query. |
void |
setSelectedProperty(java.lang.String selectedProperty)
Selects the property and reinitiates the device name query for potential reversed hierarchy. |
void |
setSelectedProtocol(java.lang.String selectedProtocol)
Selects a device protocol and initiates qontext search. |
void |
setSelectedServer(java.lang.String selectedServer)
Selects the device server and initiates device and property name queryies. |
void |
setSelectedSubSystem(java.lang.String selectedSubSystem)
Selects the subsystem and initiates server query. |
void |
setShowStockProperties(boolean showStockProperties)
Sets the stock properties flag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOCOL_TINE
Constructor Detail |
---|
public Selector()
Method Detail |
---|
public static void main(java.lang.String[] args)
public boolean isBusy()
public java.lang.String getSelectedContext()
public void setSelectedContext(java.lang.String selectedContext)
selectedContext
- the selectedContext to setpublic java.lang.String getSelectedDevice()
public void setSelectedDevice(java.lang.String selectedDevice)
selectedDevice
- the selectedDevice to setpublic java.lang.String getSelectedProperty()
public void setSelectedProperty(java.lang.String selectedProperty)
selectedProperty
- the selectedProperty to setpublic java.lang.String getSelectedServer()
public void setSelectedServer(java.lang.String selectedServer)
selectedServer
- the selectedServer to setpublic java.lang.String getSelectedProtocol()
public void setSelectedProtocol(java.lang.String selectedProtocol)
selectedProtocol
- the selectedProtocol to setpublic java.lang.String[] getAvailableContexts()
public java.lang.String[] getAvailableDevices()
public java.lang.String[] getAvailableProperties()
public java.lang.String[] getAvailableServers()
protected void firePropertyChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener l)
name
- the name of the propertyl
- the listener to be addedpublic void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener l)
name
- the name of the property that the listener has been listening tol
- the listener to be removedpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- listener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- listener to be removedpublic java.lang.String[] getAvailableSubsystems()
public java.lang.String[] getAvailableProtcols()
public void addQueryListener(QueryListener l)
l
- listener to be addedpublic void removeQueryListener(QueryListener l)
l
- listener to be removedprotected void fireQueryStarted(java.lang.String process)
protected void fireQueryFinished(java.lang.String process)
public java.lang.String getRemoteName()
public boolean isShowStockProperties()
public void setShowStockProperties(boolean showStockProperties)
showStockProperties
- the showStockProperties to setpublic java.lang.String getSelectedSubSystem()
public void setSelectedSubSystem(java.lang.String selectedSubSystem)
selectedSubSystem
- the selectedSubSystem to setpublic void setAccessRate(int value)
value
- new access rate in millispublic int getAccessRate()
public void setAccessMode(AccessMode mode)
mode
- new access modepublic AccessMode getAccessMode()
public void addExceptionListener(ExceptionListener l)
l
- listener to be addedpublic void removeExceptionListener(ExceptionListener l)
l
- listener to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |