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

ElementFormatEditor (NetBeans Java Hierarchy API) - NetBeans API Javadoc 5.5.0

org.openide.src 1.8.22

org.openide.explorer.propertysheet.editors
Class ElementFormatEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.openide.explorer.propertysheet.editors.ElementFormatEditor
All Implemented Interfaces:
PropertyEditor

public class ElementFormatEditor
extends PropertyEditorSupport

Property editor for ElementFormat. TODO: - there should be also custom editor (for visual editing the format)


Constructor Summary
ElementFormatEditor()
          Constructs new property editor.
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
          Set the property value by parsing a given String.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementFormatEditor

public ElementFormatEditor()
Constructs new property editor.

Method Detail

getAsText

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

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Set the property value by parsing a given String.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
text - The string to be parsed.
Throws:
IllegalArgumentException - if the String is badly formatted.

org.openide.src 1.8.22

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