com.jaxfront.swing.ui.editor
Interface FileLocationChooser

All Known Implementing Classes:
FileNameChooser, FileNameChooserModern

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).

Version:
1.60
See Also:
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

addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to this class.

Parameters:
listener - the listener which get the events.

getDOM

org.w3c.dom.Document getDOM()
Returns the DOM


getSelectedItem

java.lang.String getSelectedItem()
Returns the location of the selected ressource.


getURL

java.net.URL getURL()
Returns the location of the ressource as URL.

Returns:
the location as URL

setItems

void setItems(java.lang.String[] items)
Sets the locations of the ressources.

Parameters:
item - the locations of the ressources.

setSelectedItem

void setSelectedItem(java.lang.String name)
Select an item in the resource chooser.

Parameters:
name - name of the selected item

setEnabled

void setEnabled(boolean enabled)
Sets the resource chooser enabled or disabled.

Parameters:
enabled - true or false

setDefaultDirectory

void setDefaultDirectory(java.io.File directory)
Sets the default directory for the file dialog.

Parameters:
directory - the default directory

getDefaultDirectory

java.io.File getDefaultDirectory()
Returns the default directory for the file dialog.

Returns:
File the default directory