ilog.views.maps.datasource
Class IlvFilePropertyEditor

java.lang.Object
  extended by ilog.views.maps.datasource.IlvFilePropertyEditor
All Implemented Interfaces:
PropertyEditor

public class IlvFilePropertyEditor
extends Object
implements PropertyEditor

A property editor used to choose a file name.

Since:
JViews 7.5

Constructor Summary
IlvFilePropertyEditor()
          Creates a new IlvFilePropertyEditor.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Not implemented.
 String getAsText()
          Returns the file name, if it exists.
 Component getCustomEditor()
          Returns the File selection dialog in use.
 JFileChooser getFileChooser()
          Deprecated. The file property editor does not support this method.
 FileFilter[] getFileFilters()
          Returns the file filters used by the file chooser.
 String getJavaInitializationString()
          Returns null.
 String[] getTags()
          Returns null.
 Object getValue()
          Returns the selected file.
 boolean isAllowMultipleSelection()
          Indicates whether or not the file chooser should support multiple selection.
 boolean isPaintable()
          Returns false.
 void paintValue(Graphics gfx, Rectangle box)
          Does nothing.
 void removePropertyChangeListener(PropertyChangeListener listener)
          Not implemented.
 void setAllowMultipleSelection(boolean allowMultipleSelection)
          Deprecated. The file property editor does not support this method.
 void setAsText(String text)
          Sets the selected file.
 void setFileFilters(FileFilter[] filters)
          Sets the file filters used by the file chooser.
 void setValue(Object value)
          Sets the file to edit.
 boolean supportsCustomEditor()
          Returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvFilePropertyEditor

public IlvFilePropertyEditor()
Creates a new IlvFilePropertyEditor.

Method Detail

setValue

public void setValue(Object value)
Sets the file to edit.

Specified by:
setValue in interface PropertyEditor
See Also:
PropertyEditor.setValue(java.lang.Object)

getValue

public Object getValue()
Returns the selected file.

Specified by:
getValue in interface PropertyEditor
See Also:
PropertyEditor.getValue()

isPaintable

public boolean isPaintable()
Returns false.

Specified by:
isPaintable in interface PropertyEditor
See Also:
PropertyEditor.isPaintable()

paintValue

public void paintValue(Graphics gfx,
                       Rectangle box)
Does nothing.

Specified by:
paintValue in interface PropertyEditor
See Also:
PropertyEditor.paintValue(java.awt.Graphics, java.awt.Rectangle)

getJavaInitializationString

public String getJavaInitializationString()
Returns null.

Specified by:
getJavaInitializationString in interface PropertyEditor
See Also:
PropertyEditor.getJavaInitializationString()

getAsText

public String getAsText()
Returns the file name, if it exists.

Specified by:
getAsText in interface PropertyEditor
See Also:
PropertyEditor.getAsText()

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Sets the selected file.

Specified by:
setAsText in interface PropertyEditor
Throws:
IllegalArgumentException
See Also:
PropertyEditor.setAsText(java.lang.String)

getTags

public String[] getTags()
Returns null.

Specified by:
getTags in interface PropertyEditor
See Also:
PropertyEditor.getTags()

getCustomEditor

public Component getCustomEditor()
Returns the File selection dialog in use.

Specified by:
getCustomEditor in interface PropertyEditor
See Also:
PropertyEditor.getCustomEditor()

supportsCustomEditor

public boolean supportsCustomEditor()
Returns true.

Specified by:
supportsCustomEditor in interface PropertyEditor
See Also:
PropertyEditor.supportsCustomEditor()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Not implemented.

Specified by:
addPropertyChangeListener in interface PropertyEditor
See Also:
PropertyEditor.addPropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Not implemented.

Specified by:
removePropertyChangeListener in interface PropertyEditor
See Also:
PropertyEditor.removePropertyChangeListener(java.beans.PropertyChangeListener)

setFileFilters

public void setFileFilters(FileFilter[] filters)
Sets the file filters used by the file chooser.

Parameters:
filters - FileFilter array to use.
Since:
JViews 7.5

getFileFilters

public FileFilter[] getFileFilters()
Returns the file filters used by the file chooser.

Returns:
the array of file filters used.

isAllowMultipleSelection

public boolean isAllowMultipleSelection()
Indicates whether or not the file chooser should support multiple selection.

Returns:
true if the file chooser should support multiple selection.

setAllowMultipleSelection

public void setAllowMultipleSelection(boolean allowMultipleSelection)
Deprecated. The file property editor does not support this method.

Determines whether or not the file chooser should support multiple selection.

Parameters:
allowMultipleSelection - true if the file chooser should support multiple selection.

getFileChooser

public JFileChooser getFileChooser()
Deprecated. The file property editor does not support this method.

Returns the file chooser used to select the file.

Returns:
the file chooser used to select the file.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.