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
-
addLink
-
-
addLinkC
-
-
delLink
-
-
delLinkC
-
-
linkLabel
-
-
linksPanel
-
-
mediaGroup
-
-
mediaLabel
-
-
mediaNumField
-
-
newValue
-
-
oldValue
-
-
pan
-
-
related
-
-
relatedField
-
-
start
-
-
startField
-
-
startLabel
-
-
stop
-
-
stopField
-
-
stopLabel
-
-
support
-
-
LinksArrayEditor()
-
-
actionPerformed(ActionEvent)
-
actionPerformed():
This actionPerformed method must be defined in
order to implement the java.media.ActionListener interface.
-
addPropertyChangeListener(PropertyChangeListener)
-
addPropertyChangeListener():
Register a listener for the PropertyChange event.
-
createGuiPanel()
-
createGuiPanel()
Creates a panel that contains components needed for the LinksArrayEditor.
-
getAsText()
-
getAsText():
get the links property
-
getCustomEditor()
-
getCustomEditor()
Creates a custom component and returns that component to the builder tool.
-
getJavaInitializationString()
-
getJavaInitializationString():
This method generates a fragment of Java code that can be used
to initialize a variable with the current mediaLocation property value.
-
getValue()
-
getValue()
Property sheet gets the changed value through this method.
-
isPaintable()
-
isPaintable()
Has to return true, if the editor supports paintValue method.
-
itemStateChanged(ItemEvent)
-
itemStateChanged():
This itemStateChanged method must be defined in
order to implement the java.media.ItemListener interface.
-
paintValue(Graphics, Rectangle)
-
paintValue()
This method is a must if your editor needs to spawn a custom component.
-
removePropertyChangeListener(PropertyChangeListener)
-
removePropertyChangeListener():
remove the specified listener from the property change listener list.
-
setAsText(String)
- setAsText():
set the property value by specified string
-
setValue(Object)
- setValue()
sets the value of this editor
-
supportsCustomEditor()
-
supportsCustomEditor()
Has to return true for custom-built editors.
support
PropertyChangeSupport support
linksPanel
Panel linksPanel
oldValue
transient String oldValue[]
newValue
transient String newValue[]
mediaGroup
List mediaGroup
related
List related
start
List start
stop
List stop
relatedField
TextField relatedField
startField
TextField startField
stopField
TextField stopField
mediaNumField
TextField mediaNumField
addLink
Button addLink
delLink
Button delLink
mediaLabel
Label mediaLabel
linkLabel
Label linkLabel
startLabel
Label startLabel
stopLabel
Label stopLabel
pan
Panel pan
addLinkC
String addLinkC
delLinkC
String delLinkC
LinksArrayEditor
public LinksArrayEditor()
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
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
supportsCustomEditor
public boolean supportsCustomEditor()
- supportsCustomEditor()
Has to return true for custom-built editors.
- Returns:
- boolean
- Overrides:
- supportsCustomEditor in class PropertyEditorSupport
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
getAsText
public String getAsText()
- getAsText():
get the links property
- Returns:
- the value of the links property as a String
- Overrides:
- getAsText in class PropertyEditorSupport
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
isPaintable
public boolean isPaintable()
- isPaintable()
Has to return true, if the editor supports paintValue method.
- Returns:
- boolean
- Overrides:
- isPaintable in class PropertyEditorSupport
setValue
public void setValue(Object val)
- setValue()
sets the value of this editor
- Parameters:
- Object: - the new value
- Overrides:
- setValue in class PropertyEditorSupport
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
createGuiPanel
public Panel createGuiPanel()
- createGuiPanel()
Creates a panel that contains components needed for the LinksArrayEditor.
- Returns:
- Panel : the GUI for the Links Array Editor.
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
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
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
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