|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
org.openbp.jaspira.propertybrowser.editor.standard.PathEditor
public class PathEditor
File name/path editor.
Property editor that allows input of a file or path name and also provides a button which will
activate a file chooser dialog.
This editor accepts the following parameters:
title: Dialog title
type: Type of the dialog ("open"/"save" or a custom string that will appear on the "Accept" button)
dirselection: "true" if the dialog should be used to select a directory, "false" for file selection
filter: Selecteable file filters. The first file filter will be the active one. Each entry consists
of a description and a Unix shell-compatibale pattern, e. g. "XML Files|*.xml".
customizer: Name of a customizer class (must extend PathEditorCustomizer)
| Field Summary |
|---|
| Fields inherited from class org.openbp.jaspira.propertybrowser.editor.standard.StringEditor |
|---|
textField |
| Fields inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor |
|---|
component, listener, object, owner, parameterParser, params, propertyBrowser, propertyName, readonly, validator, value, valueChanged, valueLoaded |
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
PathEditor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
createComponent()
Creates the editor component of the property editor. |
void |
highlight(boolean on)
Highlights the content of the component. |
void |
keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed. |
protected void |
parseParams(EditorParameterParser parser)
Parses the editor parameters specified in the property descriptor. |
void |
showBrowser()
Shows the component browser. |
| Methods inherited from class org.openbp.jaspira.propertybrowser.editor.standard.StringEditor |
|---|
changedUpdate, getComponentValue, insertUpdate, removeUpdate, setComponentValue |
| Methods inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor |
|---|
clone, copyFrom, focusGained, focusLost, forwardKeyEvent, getComponent, getObject, getOwner, getParameterParser, getParams, getPropertyBrowser, getPropertyComponent, getPropertyName, getSafeString, getValidator, getValue, initialize, initializeComponent, isReadonly, keyReleased, keyTyped, loadProperty, propertyChanged, resetComponentDisplay, resetProperty, saveProperty, setObject, setOwner, setParams, setPropertyBrowser, setPropertyName, setReadonly, setValidator, setValue, validateProperty |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathEditor()
| Method Detail |
|---|
public void createComponent()
createComponent in class StringEditorpublic void highlight(boolean on)
highlight in class StringEditoron - true Turns the highlight on if the component has the focusprotected void parseParams(EditorParameterParser parser)
parseParams in class AbstractPropertyEditorparser - Editor parameter parser or null if there are no parameters definedpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class StringEditore - Key eventpublic void showBrowser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||