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

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

 

org.openide.explorer.propertysheet.editors
Class ElementFormatEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.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, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, 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()
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.

Parameters:
text - The string to be parsed.
Throws:
IllegalArgumentException - if the String is badly formatted.

 

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