All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.jmf.MultiPlayer.CustomizerSupport

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----com.ibm.jmf.MultiPlayer.CustomizerSupport

public abstract class CustomizerSupport
extends Panel
implements Customizer
an abstract class for creating customizers for beans


Variable Index

 o bean
 o booleans
 o boolValues
 o cl
 o colorNames
 o colors
 o sup

Constructor Index

 o CustomizerSupport()

Method Index

 o addPropertyChangeListener(PropertyChangeListener)
Adds property change event listeners
 o createBooleanChoice(String, String)
Create a panel with Choice components for boolean type property
 o createChoice(String, String[], int[])
Create a panel with Choice components for integer type of enum property
 o createColorChoice(String)
Create a panel with Choice components.
 o createGUI()
All the subclasses have to implement this method.
 o createTextField(String)
 o createTextField(String, Class)
 o doGridbagLayout(Component[], int)
 o doGridbagLayout2(Component[], int)
 o getArgs(String, Class)
Creates array of agruments for the invoke method.
 o getProperty(Class, Object, String)
This method fetches the property value.
 o removePropertyChangeListener(PropertyChangeListener)
Removes property change listeners
 o setObject(Object)
This method is called by the builder tool to pass the handle to the target bean.
 o setProperty(Class, Object, String, String, Class)
This method sets the value of a property
 o toString(Object, Class)
Converts the an object to a String.

Variables

 o bean
 public Object bean
 o colors
 Color colors[]
 o colorNames
 String colorNames[]
 o booleans
 Boolean booleans[]
 o boolValues
 String boolValues[]
 o sup
 public PropertyChangeSupport sup
 o cl
 public Class cl

Constructors

 o CustomizerSupport
 public CustomizerSupport()

Methods

 o setObject
 public void setObject(Object bnObj)
This method is called by the builder tool to pass the handle to the target bean.

Parameters:
bnObj - the target bean.
 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener p)
Adds property change event listeners

Parameters:
the - PropertyChangeListener
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener p)
Removes property change listeners

Parameters:
the - PropertyChangeListener
 o createGUI
 protected abstract void createGUI()
All the subclasses have to implement this method.

 o doGridbagLayout
 public Panel doGridbagLayout(Component comp[],
                              int column)
 o doGridbagLayout2
 public Panel doGridbagLayout2(Component comp[],
                               int column)
 o createTextField
 public TextField createTextField(String name,
                                  Class clType)
 o createTextField
 public TextField createTextField(String name)
 o createChoice
 public Choice createChoice(String prName,
                            String tag[],
                            int value[])
Create a panel with Choice components for integer type of enum property

Parameters:
propName - the property name
 o createBooleanChoice
 public Choice createBooleanChoice(String prName,
                                   String getMethodPrefix)
Create a panel with Choice components for boolean type property

Parameters:
propName - the property Method name
getMehtodPrefix - the prefix to the get method of the property (i.e. - "get" or "is")
Returns:
Choice : a Choice component
 o createColorChoice
 public Choice createColorChoice(String prName)
Create a panel with Choice components.

Parameters:
propName - the property name
 o getArgs
 public static Object[] getArgs(String txt,
                                Class type)
Creates array of agruments for the invoke method.

Parameters:
txt - the text value to be converted to the argument array.
type - the type of argument array.
 o toString
 public static String toString(Object obj,
                               Class type)
Converts the an object to a String.

 o getProperty
 public Object getProperty(Class cl,
                           Object bean,
                           String propName)
This method fetches the property value.

Parameters:
cl - the class literal of the target object
bean - the target object
propName - the prperty name
 o setProperty
 public void setProperty(Class cl,
                         Object bean,
                         String propName,
                         String propValue,
                         Class propType)
This method sets the value of a property

Parameters:
the - class literal of the target object
bean - the target object
propName - the property name
propValue - the value of the property as text. It is convenient to pass the property value as text when text fields are used.

All Packages  Class Hierarchy  This Package  Previous  Next  Index