| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--javax.media.bean.playerbean.MediaPlayerMediaLocationEditor
Special case property editor for the  media location property
   of a MediaPlayer bean.
   Invoked by Java Beans application builders.
| Nested Class Summary | 
| Nested classes inherited from class java.awt.Panel | 
java.awt.Panel.AccessibleAWTPanel | 
| Nested classes inherited from class java.awt.Container | 
java.awt.Container.AccessibleAWTContainer | 
| Nested classes inherited from class java.awt.Component | 
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy | 
| Field Summary | |
(package private)  java.awt.Panel | 
editPanel
 | 
(package private)  java.lang.String | 
mediaLocationString
 | 
(package private)  java.awt.TextField | 
mediaLocationTextField
 | 
(package private)  java.beans.PropertyChangeSupport | 
support
 | 
| Fields inherited from class java.awt.Container | 
 | 
| Fields inherited from class java.awt.Component | 
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT | 
| Fields inherited from interface java.awt.image.ImageObserver | 
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
MediaPlayerMediaLocationEditor()
Default constructor that adds the KeyListener for the
   visual text field. | 
|
| Method Summary | |
 void | 
actionPerformed(java.awt.event.ActionEvent evt)
Determines which controls have had the specified action performed and acts accordingly.  | 
 void | 
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Registers a listener for the PropertyChangeEvent . | 
 java.lang.String | 
getAsText()
Gets the mediaLocation property.  | 
 java.awt.Component | 
getCustomEditor()
Gets the panel that supports the media location editing.  | 
(package private)  java.awt.Frame | 
getFrame(java.awt.Component comp)
Sets up a Frame at the position where the specified
    located. | 
 java.lang.String | 
getJavaInitializationString()
Generates a code fragment that can be used to initialize a variable with the current mediaLocation property value.  | 
 java.awt.Dimension | 
getPreferredSize()
Gets the preferred dimensions for this media location editor.  | 
 java.lang.String[] | 
getTags()
Determines whether or not this is a tagged value.  | 
 java.lang.Object | 
getValue()
Gets the value from the media location property.  | 
 boolean | 
isPaintable()
Determines whether or not this class honors the paintValue method. | 
 void | 
itemStateChanged(java.awt.event.ItemEvent evt)
Determines which protocol is selected and acts accordingly.  | 
 void | 
paintValue(java.awt.Graphics g,
           java.awt.Rectangle area)
Paints the media location's editor box.  | 
 void | 
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes the specified listener from the property change listener list.  | 
 void | 
setAsText(java.lang.String s)
Sets the property value to the specified string.  | 
 void | 
setValue(java.lang.Object o)
Sets the value for the media location property.  | 
 boolean | 
supportsCustomEditor()
Determines whether or not this property editor supports a custom editor.  | 
| Methods inherited from class java.awt.Panel | 
addNotify, getAccessibleContext | 
| Methods inherited from class java.awt.Container | 
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree | 
| Methods inherited from class java.awt.Component | 
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
java.beans.PropertyChangeSupport support
java.lang.String mediaLocationString
java.awt.TextField mediaLocationTextField
java.awt.Panel editPanel
| Constructor Detail | 
public MediaPlayerMediaLocationEditor()
KeyListener for the
   visual text field.
| Method Detail | 
public java.lang.String getJavaInitializationString()
getJavaInitializationString in interface java.beans.PropertyEditorString.public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.ContainerDimension that contains the preferred dimensions.public void setValue(java.lang.Object o)
setValue in interface java.beans.PropertyEditoro - The new media location property object.public java.lang.Object getValue()
getValue in interface java.beans.PropertyEditorpublic void setAsText(java.lang.String s)
setAsText in interface java.beans.PropertyEditors - The String  to set the media location property value to.public java.lang.String getAsText()
getAsText in interface java.beans.PropertyEditorString.public boolean isPaintable()
paintValue method. Used by bean builders.
isPaintable in interface java.beans.PropertyEditortrue if it honors the paintValue method, 
 false if it does not.
public void paintValue(java.awt.Graphics g,
                       java.awt.Rectangle area)
paintValue in interface java.beans.PropertyEditorg - The graphics context in which to paint the editor box.area - The area in which the editor box should be rendered.public java.lang.String[] getTags()
getTags in interface java.beans.PropertyEditorpublic java.awt.Component getCustomEditor()
getCustomEditor in interface java.beans.PropertyEditorpublic boolean supportsCustomEditor()
supportsCustomEditor in interface java.beans.PropertyEditorpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeEvent .
addPropertyChangeListener in interface java.beans.PropertyEditoraddPropertyChangeListener in class java.awt.Containerlistener - An object to be invoked when a PropertyChangeEvent 
    is fired.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface java.beans.PropertyEditorremovePropertyChangeListener in class java.awt.Componentlistener - The PropertyChangeListener to be removed.public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - The ActionEvent.public void itemStateChanged(java.awt.event.ItemEvent evt)
itemStateChanged in interface java.awt.event.ItemListenerevt - The ItemEvent.java.awt.Frame getFrame(java.awt.Component comp)
Frame at the position where the specified
   Component located.
comp - The Component where the Frame will be located.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||