All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.jmf.MultiPlayer.LinksArrayEditor

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

public class LinksArrayEditor
extends PropertyEditorSupport
implements PropertyEditor, Serializable, ActionListener, ItemListener
This is the editor to add links to a Media Group


Variable Index

 o addLink
 o addLinkC
 o delLink
 o delLinkC
 o linkLabel
 o linksPanel
 o mediaGroup
 o mediaLabel
 o mediaNumField
 o newValue
 o oldValue
 o pan
 o related
 o relatedField
 o start
 o startField
 o startLabel
 o stop
 o stopField
 o stopLabel
 o support

Constructor Index

 o LinksArrayEditor()

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()
createGuiPanel() Creates a panel that contains components needed for the LinksArrayEditor.
 o getAsText()
getAsText(): get the links property
 o getCustomEditor()
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 getValue()
getValue() Property sheet gets the changed value through this method.
 o isPaintable()
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)
paintValue() 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)
setValue() sets the value of this editor
 o supportsCustomEditor()
supportsCustomEditor() Has to return true for custom-built editors.

Variables

 o support
 PropertyChangeSupport support
 o linksPanel
 Panel linksPanel
 o oldValue
 transient String oldValue[]
 o newValue
 transient String newValue[]
 o mediaGroup
 List mediaGroup
 o related
 List related
 o start
 List start
 o stop
 List stop
 o relatedField
 TextField relatedField
 o startField
 TextField startField
 o stopField
 TextField stopField
 o mediaNumField
 TextField mediaNumField
 o addLink
 Button addLink
 o delLink
 Button delLink
 o mediaLabel
 Label mediaLabel
 o linkLabel
 Label linkLabel
 o startLabel
 Label startLabel
 o stopLabel
 Label stopLabel
 o pan
 Panel pan
 o addLinkC
 String addLinkC
 o delLinkC
 String delLinkC

Constructors

 o LinksArrayEditor
 public LinksArrayEditor()

Methods

 o getCustomEditor
 public Component getCustomEditor()
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 paintValue
 public void paintValue(Graphics g,
                        Rectangle r)
paintValue() This method is a must if your editor needs to spawn a custom component.

Parameters:
Graphics: - graphics for this object
Rectangle: - rectangle area of this object
Overrides:
paintValue in class PropertyEditorSupport
 o supportsCustomEditor
 public boolean supportsCustomEditor()
supportsCustomEditor() Has to return true for custom-built editors.

Returns:
boolean
Overrides:
supportsCustomEditor 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 links property

Returns:
the value of the links property as a String
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 isPaintable
 public boolean isPaintable()
isPaintable() Has to return true, if the editor supports paintValue method.

Returns:
boolean
Overrides:
isPaintable in class PropertyEditorSupport
 o setValue
 public void setValue(Object val)
setValue() sets the value of this editor

Parameters:
Object: - the new value
Overrides:
setValue in class PropertyEditorSupport
 o getValue
 public Object getValue()
getValue() Property sheet gets the changed value through this method.

Returns:
Object the new String array for links.
Overrides:
getValue in class PropertyEditorSupport
 o createGuiPanel
 public Panel createGuiPanel()
createGuiPanel() Creates a panel that contains components needed for the LinksArrayEditor.

Returns:
Panel : the GUI for the Links Array Editor.
 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index