visad.data.netcdf
Class InputPathnameEditor

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

public abstract class InputPathnameEditor
extends PropertyEditorSupport

A JavaBean property editor for input pathnames.


Constructor Summary
InputPathnameEditor(String filterPattern, String initialPathname)
          Construct.
 
Method Summary
 String getAsText()
          Get the property as a text string.
 Component getCustomEditor()
          Return the custom editor.
 boolean isPaintable()
          Indicate support for painting the property value.
 void paintValue(Graphics graphics, Rectangle box)
          Paint a representation of the pathname in the given box.
 void setAsText(String pathname)
          Set the property given a text string.
 void setValue(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(String filterPattern,
                           String initialPathname)
Construct.

Method Detail

supportsCustomEditor

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

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport

isPaintable

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

Specified by:
isPaintable in interface PropertyEditor
Overrides:
isPaintable in class PropertyEditorSupport

paintValue

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

Specified by:
paintValue in interface PropertyEditor
Overrides:
paintValue in class PropertyEditorSupport

getAsText

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

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

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

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport

getCustomEditor

public Component getCustomEditor()
Return the custom editor.

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport

setValue

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

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport