public class FileEditor
extends java.beans.PropertyEditorSupport
| Constructor and Description |
|---|
FileEditor() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Component |
getCustomEditor()
Gets the custom editor component.
|
java.lang.String |
getJavaInitializationString()
Returns a representation of the current property value as java source.
|
boolean |
isPaintable()
Returns true since this editor is paintable.
|
void |
paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box)
Paints a representation of the current Object.
|
boolean |
supportsCustomEditor()
Returns true because we do support a custom editor.
|
public java.lang.String getJavaInitializationString()
getJavaInitializationString in interface java.beans.PropertyEditorgetJavaInitializationString in class java.beans.PropertyEditorSupportpublic boolean supportsCustomEditor()
supportsCustomEditor in interface java.beans.PropertyEditorsupportsCustomEditor in class java.beans.PropertyEditorSupportpublic java.awt.Component getCustomEditor()
getCustomEditor in interface java.beans.PropertyEditorgetCustomEditor in class java.beans.PropertyEditorSupportpublic boolean isPaintable()
isPaintable in interface java.beans.PropertyEditorisPaintable in class java.beans.PropertyEditorSupportpublic void paintValue(java.awt.Graphics gfx,
java.awt.Rectangle box)
paintValue in interface java.beans.PropertyEditorpaintValue in class java.beans.PropertyEditorSupportgfx - the graphics context to usebox - the area we are allowed to paint into