|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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.
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
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. |
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 |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
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,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public MediaPlayerMediaLocationEditor()
KeyListener
for the
visual text field.Method Detail |
public java.lang.String getJavaInitializationString()
String
.public java.awt.Dimension getPreferredSize()
Dimension
that contains the preferred dimensions.public void setValue(java.lang.Object o)
o
- The new media location property object.public java.lang.Object getValue()
public void setAsText(java.lang.String s)
s
- The String to set the media location property value to.public java.lang.String getAsText()
String
.public boolean isPaintable()
paintValue
method. Used by bean builders.true
if it honors the paintValue
method,
false
if it does not.public void paintValue(java.awt.Graphics g, java.awt.Rectangle area)
g
- 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()
public java.awt.Component getCustomEditor()
The
- panel as a Component
.public boolean supportsCustomEditor()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeEvent
.listener
- An object to be invoked when a PropertyChangeEvent
is fired.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener
to be removed.public void actionPerformed(java.awt.event.ActionEvent evt)
evt
- The ActionEvent
.public void itemStateChanged(java.awt.event.ItemEvent evt)
evt
- The ItemEvent
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |