public class IlvFilePropertyEditor extends Object implements PropertyEditor
Constructor and Description |
---|
IlvFilePropertyEditor()
Creates a new
IlvFilePropertyEditor . |
Modifier and Type | Method and Description |
---|---|
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.
|
public IlvFilePropertyEditor()
IlvFilePropertyEditor
.public void setValue(Object value)
setValue
in interface PropertyEditor
PropertyEditor.setValue(java.lang.Object)
public Object getValue()
getValue
in interface PropertyEditor
PropertyEditor.getValue()
public boolean isPaintable()
isPaintable
in interface PropertyEditor
PropertyEditor.isPaintable()
public void paintValue(Graphics gfx, Rectangle box)
paintValue
in interface PropertyEditor
PropertyEditor.paintValue(java.awt.Graphics, java.awt.Rectangle)
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
PropertyEditor.getJavaInitializationString()
public String getAsText()
getAsText
in interface PropertyEditor
PropertyEditor.getAsText()
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
IllegalArgumentException
PropertyEditor.setAsText(java.lang.String)
public String[] getTags()
getTags
in interface PropertyEditor
PropertyEditor.getTags()
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
PropertyEditor.getCustomEditor()
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
PropertyEditor.supportsCustomEditor()
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyEditor
PropertyEditor.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyEditor
PropertyEditor.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void setFileFilters(FileFilter[] filters)
filters
- FileFilter array to use.public FileFilter[] getFileFilters()
public boolean isAllowMultipleSelection()
@Deprecated public void setAllowMultipleSelection(boolean allowMultipleSelection)
allowMultipleSelection
- true if the file chooser should support multiple selection.@Deprecated public JFileChooser getFileChooser()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.