de.muntjak.qtjplayer
Class MoviesSizeEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by de.muntjak.qtjplayer.MoviesSizeEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class MoviesSizeEditor
extends java.beans.PropertyEditorSupport

MovieSizeEditor is a custom property editor to be used with builder tools. It allows for specifying QTJPlayer's moviesSize property by selecting values from a combo box.


Constructor Summary
MoviesSizeEditor()
           
 
Method Summary
 java.lang.String getAsText()
          Returns the current value's string representation.
 java.awt.Component getCustomEditor()
          Returns the custom editor, a JComboBox instance.
 void setValue(java.lang.Object value)
          Set (or change) the object that is to be edited.
 boolean supportsCustomEditor()
          Returns true.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoviesSizeEditor

public MoviesSizeEditor()
Method Detail

getAsText

public java.lang.String getAsText()
Returns the current value's string representation.

Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport

getCustomEditor

public java.awt.Component getCustomEditor()
Returns the custom editor, a JComboBox instance.

Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport

setValue

public void setValue(java.lang.Object value)
Set (or change) the object that is to be edited.

Specified by:
setValue in interface java.beans.PropertyEditor
Overrides:
setValue in class java.beans.PropertyEditorSupport

supportsCustomEditor

public boolean supportsCustomEditor()
Returns true.

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport