visad.data.netcdf
Class InputPathnameEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by visad.data.netcdf.InputPathnameEditor
All Implemented Interfaces:
java.beans.PropertyEditor
Direct Known Subclasses:
InputNetcdfPathnameEditor

public abstract class InputPathnameEditor
extends java.beans.PropertyEditorSupport

A JavaBean property editor for input pathnames.


Constructor Summary
InputPathnameEditor(java.lang.String filterPattern, java.lang.String initialPathname)
          Construct.
 
Method Summary
 java.lang.String getAsText()
          Get the property as a text string.
 java.awt.Component getCustomEditor()
          Return the custom editor.
 boolean isPaintable()
          Indicate support for painting the property value.
 void paintValue(java.awt.Graphics graphics, java.awt.Rectangle box)
          Paint a representation of the pathname in the given box.
 void setAsText(java.lang.String pathname)
          Set the property given a text string.
 void setValue(java.lang.Object value)
          Set the object to be edited.
 boolean supportsCustomEditor()
          Indicate support for a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, removePropertyChangeListener, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputPathnameEditor

public InputPathnameEditor(java.lang.String filterPattern,
                           java.lang.String initialPathname)
Construct.

Method Detail

supportsCustomEditor

public boolean supportsCustomEditor()
Indicate support for a custom editor.

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport

isPaintable

public boolean isPaintable()
Indicate support for painting the property value.

Specified by:
isPaintable in interface java.beans.PropertyEditor
Overrides:
isPaintable in class java.beans.PropertyEditorSupport

paintValue

public void paintValue(java.awt.Graphics graphics,
                       java.awt.Rectangle box)
Paint a representation of the pathname in the given box.

Specified by:
paintValue in interface java.beans.PropertyEditor
Overrides:
paintValue in class java.beans.PropertyEditorSupport

getAsText

public java.lang.String getAsText()
Get the property as a text string.

Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport

setAsText

public void setAsText(java.lang.String pathname)
Set the property given a text string.

Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport

getCustomEditor

public java.awt.Component getCustomEditor()
Return the custom editor.

Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport

setValue

public void setValue(java.lang.Object value)
Set the object to be edited.

Specified by:
setValue in interface java.beans.PropertyEditor
Overrides:
setValue in class java.beans.PropertyEditorSupport