All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.jmf.MultiPlayer.MediaArrayEditor

java.lang.Object
   |
   +----java.beans.PropertyEditorSupport
           |
           +----com.ibm.jmf.MultiPlayer.MediaArrayEditor

public class MediaArrayEditor
extends PropertyEditorSupport
implements PropertyEditor, Serializable, ActionListener, ItemListener
This is the editor to add Media Groups to the String array mediaNames


Variable Index

 o add
 o addPanel
 o button
 o buttonChoice
 o buttonField
 o buttonURL
 o c
 o codebase
 o del
 o down
 o eight
 o fileS
 o five
 o four
 o gridbag
 o guiP
 o http
 o media
 o mediaChoice
 o mediaField
 o mediaURL
 o newValue
 o nine
 o oldValue
 o one
 o pan
 o seven
 o six
 o support
 o ten
 o three
 o two
 o up

Constructor Index

 o MediaArrayEditor()

Method Index

 o actionPerformed(ActionEvent)
actionPerformed(): This actionPerformed method must be defined in order to implement the java.media.ActionListener interface.
 o addPropertyChangeListener(PropertyChangeListener)
addPropertyChangeListener(): Register a listener for the PropertyChange event.
 o createGuiPanel()
Creates a panel that contains components needed for the MediaArrayEditor.
 o getAsText()
getAsText(): get the mediaNames property
 o getCustomEditor()
Creates a custom component and returns that component to the builder tool.
 o getJavaInitializationString()
getJavaInitializationString(): This method generates a fragment of Java code that can be used to initialize a variable with the current mediaLocation property value.
 o getTags()
getTags(): return null to tell the bean builder that this is not a tagged value property.
 o getValue()
Don't forget to override this method.
 o isPaintable()
Has to return true, if the editor supports paintValue method.
 o itemStateChanged(ItemEvent)
itemStateChanged(): This itemStateChanged method must be defined in order to implement the java.media.ItemListener interface.
 o paintValue(Graphics, Rectangle)
This method is a must if your editor needs to spawn a custom component.
 o removePropertyChangeListener(PropertyChangeListener)
removePropertyChangeListener(): remove the specified listener from the property change listener list.
 o setAsText(String)
setAsText(): set the property value by specified string
 o setValue(Object)
 o supportsCustomEditor()
Has to return true for custom-built editors.

Variables

 o support
 PropertyChangeSupport support
 o guiP
 Panel guiP
 o oldValue
 transient String oldValue[]
 o newValue
 transient String newValue[]
 o media
 List media
 o button
 List button
 o mediaURL
 Label mediaURL
 o buttonURL
 Label buttonURL
 o add
 Button add
 o del
 Button del
 o up
 Button up
 o down
 Button down
 o one
 Label one
 o two
 Label two
 o three
 Label three
 o four
 Label four
 o five
 Label five
 o six
 Label six
 o seven
 Label seven
 o eight
 Label eight
 o nine
 Label nine
 o ten
 Label ten
 o gridbag
 GridBagLayout gridbag
 o c
 GridBagConstraints c
 o addPanel
 Panel addPanel
 o mediaChoice
 Choice mediaChoice
 o buttonChoice
 Choice buttonChoice
 o mediaField
 TextField mediaField
 o buttonField
 TextField buttonField
 o codebase
 String codebase
 o http
 String http
 o fileS
 String fileS
 o pan
 Panel pan

Constructors

 o MediaArrayEditor
 public MediaArrayEditor()

Methods

 o getCustomEditor
 public Component getCustomEditor()
Creates a custom component and returns that component to the builder tool.

Returns:
Component the component to be displayed as the editor.
Overrides:
getCustomEditor in class PropertyEditorSupport
 o setAsText
 public void setAsText(String s)
setAsText(): set the property value by specified string

Parameters:
s - String s to set the mediaNames property value
Overrides:
setAsText in class PropertyEditorSupport
 o getAsText
 public String getAsText()
getAsText(): get the mediaNames property

Returns:
the value of the mediaNames property
Overrides:
getAsText in class PropertyEditorSupport
 o getJavaInitializationString
 public String getJavaInitializationString()
getJavaInitializationString(): This method generates a fragment of Java code that can be used to initialize a variable with the current mediaLocation property value.

Returns:
the initialization string
Overrides:
getJavaInitializationString in class PropertyEditorSupport
 o paintValue
 public void paintValue(Graphics g,
                        Rectangle r)
This method is a must if your editor needs to spawn a custom component.

Overrides:
paintValue in class PropertyEditorSupport
 o supportsCustomEditor
 public boolean supportsCustomEditor()
Has to return true for custom-built editors.

Overrides:
supportsCustomEditor in class PropertyEditorSupport
 o isPaintable
 public boolean isPaintable()
Has to return true, if the editor supports paintValue method.

Overrides:
isPaintable in class PropertyEditorSupport
 o setValue
 public void setValue(Object val)
Overrides:
setValue in class PropertyEditorSupport
 o getValue
 public Object getValue()
Don't forget to override this method. Property sheet gets the changed value through this method.

Returns:
loadedImage the loaded image.
Overrides:
getValue in class PropertyEditorSupport
 o createGuiPanel
 public Panel createGuiPanel()
Creates a panel that contains components needed for the MediaArrayEditor.

 o actionPerformed
 public void actionPerformed(ActionEvent e)
actionPerformed(): This actionPerformed method must be defined in order to implement the java.media.ActionListener interface. This method will be called whenever there is an action event.

Parameters:
java.awt.event.ActionEvent - e: the action event that is happening
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
itemStateChanged(): This itemStateChanged method must be defined in order to implement the java.media.ItemListener interface. This method will be called whenever there is an Item event.

Parameters:
java.awt.event.ItemEvent - e: the item event that is happening
 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener(): Register a listener for the PropertyChange event.

Parameters:
listener - An object to be invoked when a PropertyChange event is fired.
Overrides:
addPropertyChangeListener in class PropertyEditorSupport
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener(): remove the specified listener from the property change listener list.

Parameters:
listener - An listener to be removed
Overrides:
removePropertyChangeListener in class PropertyEditorSupport
 o getTags
 public String[] getTags()
getTags(): return null to tell the bean builder that this is not a tagged value property.

Overrides:
getTags in class PropertyEditorSupport

All Packages  Class Hierarchy  This Package  Previous  Next  Index