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
-
add
-
-
addPanel
-
-
button
-
-
buttonChoice
-
-
buttonField
-
-
buttonURL
-
-
c
-
-
codebase
-
-
del
-
-
down
-
-
eight
-
-
fileS
-
-
five
-
-
four
-
-
gridbag
-
-
guiP
-
-
http
-
-
media
-
-
mediaChoice
-
-
mediaField
-
-
mediaURL
-
-
newValue
-
-
nine
-
-
oldValue
-
-
one
-
-
pan
-
-
seven
-
-
six
-
-
support
-
-
ten
-
-
three
-
-
two
-
-
up
-
-
MediaArrayEditor()
-
-
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()
- Creates a panel that contains components needed for the MediaArrayEditor.
-
getAsText()
-
getAsText():
get the mediaNames property
-
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.
-
getTags()
-
getTags():
return null to tell the bean builder that this
is not a tagged value property.
-
getValue()
- Don't forget to override this method.
-
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)
- 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)
-
-
supportsCustomEditor()
- Has to return true for custom-built editors.
support
PropertyChangeSupport support
guiP
Panel guiP
oldValue
transient String oldValue[]
newValue
transient String newValue[]
media
List media
button
List button
mediaURL
Label mediaURL
buttonURL
Label buttonURL
add
Button add
del
Button del
up
Button up
down
Button down
one
Label one
two
Label two
three
Label three
four
Label four
five
Label five
six
Label six
seven
Label seven
eight
Label eight
nine
Label nine
ten
Label ten
gridbag
GridBagLayout gridbag
c
GridBagConstraints c
addPanel
Panel addPanel
mediaChoice
Choice mediaChoice
buttonChoice
Choice buttonChoice
mediaField
TextField mediaField
buttonField
TextField buttonField
codebase
String codebase
http
String http
fileS
String fileS
pan
Panel pan
MediaArrayEditor
public MediaArrayEditor()
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
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 mediaNames property
- Returns:
- the value of the mediaNames property
- 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
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
supportsCustomEditor
public boolean supportsCustomEditor()
- Has to return true for custom-built editors.
- Overrides:
- supportsCustomEditor in class PropertyEditorSupport
isPaintable
public boolean isPaintable()
- Has to return true, if the editor supports paintValue method.
- Overrides:
- isPaintable in class PropertyEditorSupport
setValue
public void setValue(Object val)
- Overrides:
- setValue in class PropertyEditorSupport
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
createGuiPanel
public Panel createGuiPanel()
- Creates a panel that contains components needed for the MediaArrayEditor.
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
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