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
-
bean
-
-
booleans
-
-
boolValues
-
-
cl
-
-
colorNames
-
-
colors
-
-
sup
-
-
CustomizerSupport()
-
-
addPropertyChangeListener(PropertyChangeListener)
- Adds property change event listeners
-
createBooleanChoice(String, String)
- Create a panel with Choice components for boolean type property
-
createChoice(String, String[], int[])
- Create a panel with Choice components for integer type of enum property
-
createColorChoice(String)
- Create a panel with Choice components.
-
createGUI()
- All the subclasses have to implement this method.
-
createTextField(String)
-
-
createTextField(String, Class)
-
-
doGridbagLayout(Component[], int)
-
-
doGridbagLayout2(Component[], int)
-
-
getArgs(String, Class)
- Creates array of agruments for the invoke method.
-
getProperty(Class, Object, String)
- This method fetches the property value.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes property change listeners
-
setObject(Object)
- This method is called by the builder tool to pass the handle to the
target bean.
-
setProperty(Class, Object, String, String, Class)
- This method sets the value of a property
-
toString(Object, Class)
- Converts the an object to a String.
bean
public Object bean
colors
Color colors[]
colorNames
String colorNames[]
booleans
Boolean booleans[]
boolValues
String boolValues[]
sup
public PropertyChangeSupport sup
cl
public Class cl
CustomizerSupport
public CustomizerSupport()
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.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener p)
- Adds property change event listeners
- Parameters:
- the - PropertyChangeListener
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener p)
- Removes property change listeners
- Parameters:
- the - PropertyChangeListener
createGUI
protected abstract void createGUI()
- All the subclasses have to implement this method.
doGridbagLayout
public Panel doGridbagLayout(Component comp[],
int column)
doGridbagLayout2
public Panel doGridbagLayout2(Component comp[],
int column)
createTextField
public TextField createTextField(String name,
Class clType)
createTextField
public TextField createTextField(String name)
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
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
createColorChoice
public Choice createColorChoice(String prName)
- Create a panel with Choice components.
- Parameters:
- propName - the property name
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.
toString
public static String toString(Object obj,
Class type)
- Converts the an object to a String.
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
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