站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

MethodParameterArrayEditor (NetBeans Java Hierarchy API) - NetBeans API Javadoc 4.1.0

 

org.openide.explorer.propertysheet.editors
Class MethodParameterArrayEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.openide.explorer.propertysheet.editors.MethodParameterArrayEditor
All Implemented Interfaces:
ExPropertyEditor, PropertyEditor

public class MethodParameterArrayEditor
extends PropertyEditorSupport
implements ExPropertyEditor

Property editor for array of org.openide.src.MethodParameter classes


Field Summary
 
Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor
PROP_VALUE_VALID, PROPERTY_HELP_ID
 
Constructor Summary
MethodParameterArrayEditor()
           
 
Method Summary
 void attachEnv(PropertyEnv env)
          This method is called by the IDE to pass the environment to the property editor.
 String getAsText()
           
 Component getCustomEditor()
          Create new panel for this property editor.
 void setAsText(String text)
          Set the property value by parsing a given String.
 void setValue(Object o)
          Sets the value
 boolean supportsCustomEditor()
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener
 
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, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener
 

Constructor Detail

MethodParameterArrayEditor

public MethodParameterArrayEditor()
Method Detail

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Returns:
The property value as a human editable string.

Returns null if the value can't be expressed as an editable string.

If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().


setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Set the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text.

Specified by:
setAsText in interface PropertyEditor
Parameters:
text - The string to be parsed.
Throws:
IllegalArgumentException

setValue

public void setValue(Object o)
Sets the value

Specified by:
setValue in interface PropertyEditor

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface PropertyEditor
Returns:
true

getCustomEditor

public Component getCustomEditor()
Create new panel for this property editor.

Specified by:
getCustomEditor in interface PropertyEditor
Returns:
the visual component for editing the property

attachEnv

public void attachEnv(PropertyEnv env)
This method is called by the IDE to pass the environment to the property editor.

Specified by:
attachEnv in interface ExPropertyEditor

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.