All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.beans.demos.travel.flight.FlightInfoDapServerCustomizer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----com.ibm.beans.demos.travel.flight.FlightInfoDapServerCustomizer
- public class FlightInfoDapServerCustomizer
- extends Panel
- implements Customizer, ItemListener, TextListener
This class defines a FlightInfoDapServerCustomizer instance that is the
customizer for an instance of the FlightInfoDapServer class. The
customizer is used to decide whether or not the database should be accessed
using JDBC. The following properties can be modified: the JDBCURL property,
the dbTableName property, and the bUseJDBC property. If these
properties are modified their new values will be reflected in the
FlightInfoDapServer instance.
-
FlightInfoDapServerCustomizer()
- Constructs a FlightInfoDapServerCustomizer instance and creates
controls used in customizing the properties of the FlightInfoDapServer.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a listener to the property-change notification list.
-
getPreferredSize()
- Returns the preferred size for this customizer panel.
-
itemStateChanged(ItemEvent)
- Handles item events on the FlightInfoDapServer Customizer.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a listener from the property-change notification list.
-
setObject(Object)
- Sets the object instance with which this customizer interacts.
-
textValueChanged(TextEvent)
- Receives keystrokes from the text fields.
FlightInfoDapServerCustomizer
public FlightInfoDapServerCustomizer()
- Constructs a FlightInfoDapServerCustomizer instance and creates
controls used in customizing the properties of the FlightInfoDapServer.
itemStateChanged
public void itemStateChanged(ItemEvent e)
- Handles item events on the FlightInfoDapServer Customizer.
The bUseJDBC property of the FlightInfoDapServer
may be updated.
- Parameters:
- e - This parameter indicates the item event that occurred.
textValueChanged
public void textValueChanged(TextEvent evt)
- Receives keystrokes from the text fields.
The JDBCURL property and/or the dbTableName
property of the FlightInfoDapServer may be updated.
- Parameters:
- evt - Describes the event that occurred.
setObject
public void setObject(Object obj)
- Sets the object instance with which this customizer interacts.
Controls are initialized to contain the current value of
properties being customized.
- Parameters:
- obj - A FlightInfoDapServer instance to be customized.
getPreferredSize
public Dimension getPreferredSize()
- Returns the preferred size for this customizer panel.
- Returns:
- The dimensions of the customizer.
- Overrides:
- getPreferredSize in class Container
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Adds a listener to the property-change notification list.
- Parameters:
- l - The listener to add.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Removes a listener from the property-change notification list.
- Parameters:
- l - The listener to remove.
All Packages Class Hierarchy This Package Previous Next Index