|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileLocationChooser
The interface FileLocationChooser provides methodes to acces a chooser and to get the required information. Note that we have two implementors of this interface which are FileNameChooser TaminoResourceChooser, where we can get the url to create a jaxfront DOM (from file and from database tamino). A chooser could be a text field where the user can put in the location of the ressource (file or database).
com.jaxfront.core.ui.editor.TaminoResourceChooser
,
com.jaxfront.core.ui.editor.FileNameChooser
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to this class. |
java.io.File |
getDefaultDirectory()
Returns the default directory for the file dialog. |
org.w3c.dom.Document |
getDOM()
Returns the DOM |
java.lang.String |
getSelectedItem()
Returns the location of the selected ressource. |
java.net.URL |
getURL()
Returns the location of the ressource as URL. |
void |
setDefaultDirectory(java.io.File directory)
Sets the default directory for the file dialog. |
void |
setEnabled(boolean enabled)
Sets the resource chooser enabled or disabled. |
void |
setItems(java.lang.String[] items)
Sets the locations of the ressources. |
void |
setSelectedItem(java.lang.String name)
Select an item in the resource chooser. |
Method Detail |
---|
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener which get the events.org.w3c.dom.Document getDOM()
java.lang.String getSelectedItem()
java.net.URL getURL()
void setItems(java.lang.String[] items)
item
- the locations of the ressources.void setSelectedItem(java.lang.String name)
name
- name of the selected itemvoid setEnabled(boolean enabled)
enabled
- true or falsevoid setDefaultDirectory(java.io.File directory)
directory
- the default directoryjava.io.File getDefaultDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |