org.netbeans.core/2 3.32

org.netbeans.beaninfo.editors
Class ListImageEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.netbeans.beaninfo.editors.ListImageEditor
All Implemented Interfaces:
PropertyEditor, ExPropertyEditor

public class ListImageEditor
extends PropertyEditorSupport
implements ExPropertyEditor

Editor for property of enumerated integers, each integer should have associated image displayed as a property value. It's possible to associate descriptions for each value which is then shown in combobox when property is edited.


Field Summary
static String PROP_DESCRIPTIONS
           
static String PROP_IMAGES
           
static String PROP_VALUES
           
 
Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor
PROP_VALUE_VALID, PROPERTY_HELP_ID
 
Constructor Summary
ListImageEditor()
          Creates new ListEditor
 
Method Summary
 void attachEnv(PropertyEnv env)
           
 String getAsText()
           
 String getJavaInitializationString()
           
 String[] getTags()
           
 boolean isEditable()
           
 boolean isPaintable()
           
 void paintValue(Graphics g, Rectangle rectangle)
           
 void setAsText(String str)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyEditor
addPropertyChangeListener, getCustomEditor, getValue, removePropertyChangeListener, setValue, supportsCustomEditor
 

Field Detail

PROP_IMAGES

public static final String PROP_IMAGES
See Also:
Constant Field Values

PROP_VALUES

public static final String PROP_VALUES
See Also:
Constant Field Values

PROP_DESCRIPTIONS

public static final String PROP_DESCRIPTIONS
See Also:
Constant Field Values
Constructor Detail

ListImageEditor

public ListImageEditor()
Creates new ListEditor

Method Detail

attachEnv

public void attachEnv(PropertyEnv env)
Specified by:
attachEnv in interface ExPropertyEditor

isEditable

public boolean isEditable()

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String str)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

getTags

public String[] getTags()
Specified by:
getTags in interface PropertyEditor
Overrides:
getTags in class PropertyEditorSupport

isPaintable

public boolean isPaintable()
Specified by:
isPaintable in interface PropertyEditor
Overrides:
isPaintable in class PropertyEditorSupport

paintValue

public void paintValue(Graphics g,
                       Rectangle rectangle)
Specified by:
paintValue in interface PropertyEditor
Overrides:
paintValue in class PropertyEditorSupport

getJavaInitializationString

public String getJavaInitializationString()
Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.