QTJPlayer 1.0.2 beta

de.muntjak.qtjplayer
Class MoviesSizeEditor

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

public class MoviesSizeEditor
extends 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
 String getAsText()
          Returns the current value's string representation.
 Component getCustomEditor()
          Returns the custom editor, a JComboBox instance.
 void setValue(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoviesSizeEditor

public MoviesSizeEditor()
Method Detail

getCustomEditor

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

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport

supportsCustomEditor

public boolean supportsCustomEditor()
Returns true.

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport

getAsText

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

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setValue

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

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport

QTJPlayer 1.0.2 beta