DESY ACOP Beans Home

de.desy.acop.displayers.tools
Interface ConnectionParametersReceiver

All Known Subinterfaces:
AcopDisplayer
All Known Implementing Classes:
AcopButton, AcopCheckBox, AcopDialKnob, AcopGauger, AcopIcon, AcopLabel, AcopNumberLabel, AcopSlider, AcopTransport, AcopVideo, AcopWheelswitch

public interface ConnectionParametersReceiver

ConnectionParametersReceiver describes the class that can accept ConnectionParameters. The purpose of the interface is to identify the class as the object, whose connectionParameters property can be configured through property editors. Implementor of this class should follow java beans conventions.

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar

Field Summary
static java.lang.String CONNECTION_PARAMETERS_PROPERTY
          ConnectionParameters property name tag
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener which listenes to all properties.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener to this receiver.
 ConnectionParameters getConnectionParameters()
          Returns ConnectionParameters associated with this receiver.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener.
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener associated with the specified property.
 void setConnectionParameters(ConnectionParameters cp)
          Sets the ConnectionParameters to the receiver.
 

Field Detail

CONNECTION_PARAMETERS_PROPERTY

static final java.lang.String CONNECTION_PARAMETERS_PROPERTY
ConnectionParameters property name tag

See Also:
Constant Field Values
Method Detail

getConnectionParameters

ConnectionParameters getConnectionParameters()
Returns ConnectionParameters associated with this receiver.

Returns:
the connection parameters

setConnectionParameters

void setConnectionParameters(ConnectionParameters cp)
                             throws CommonException,
                                    java.beans.PropertyVetoException
Sets the ConnectionParameters to the receiver. If a receiver is a a displayer it should connect to the remote point upon setting the parameters.

Parameters:
cp - new parameters
Throws:
CommonException - if connection establishing failed
java.beans.PropertyVetoException - if setting failed due to improper parameters

addPropertyChangeListener

void addPropertyChangeListener(java.lang.String propertyName,
                               java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this receiver. Listener should receives notifications when the property with the name propertyName was changed.

Parameters:
propertyName - the name of the property which the listener listens
listener - the listener

removePropertyChangeListener

void removePropertyChangeListener(java.lang.String propertyName,
                                  java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener associated with the specified property.

Parameters:
propertyName - the name of the property which the listener listens
listener - the listener

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener which listenes to all properties.

Parameters:
listener - the listener

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener.

Parameters:
listener -


Copyright © 2010. All Rights Reserved.