|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
net.sf.doolin.gui.swing.JFile
public class JFile
File selection component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
PROPERTY_FILE
file property that contains the selected File. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JFile()
Constructor with a TextFilePath implementation for the file path. |
|
JFile(GUIPreferences preferences)
Constructor for a JFile that interacts with the preferences |
|
JFile(GUIPreferences preferences,
IFilePath filePath)
Constructor for a JFile that interacts with the preferences and
which is based on a given file path implementation |
|
JFile(IFilePath filePath)
Constructor based on a given file path implementation |
|
| Method Summary | |
|---|---|
File |
getFile()
Gets the file. |
String |
getFilter()
Gets the filter. |
String |
getFilterDescription()
Gets the filter description. |
FileBrowsingMode |
getMode()
Gets the mode. |
boolean |
isDirectory()
Checks if is directory. |
protected void |
onBrowse()
This method is called when the user has clicked on the browse button. |
protected void |
onPathEdited()
This method is called when the path editor has lost its focus. |
void |
setDirectory(boolean directory)
Sets the directory. |
void |
setEnabled(boolean enabled)
Sets if the component is enabled or not. |
void |
setFile(File f)
Sets the file. |
void |
setFilter(String filter)
Sets the filter. |
void |
setFilterDescription(String filterDescription)
Sets the filter description. |
void |
setMode(FileBrowsingMode mode)
Sets the mode. |
protected void |
updateFile(File f)
Update file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_FILE
file property that contains the selected File.
| Constructor Detail |
|---|
public JFile()
TextFilePath implementation for the file path.
public JFile(GUIPreferences preferences)
JFile that interacts with the preferences
preferences - Preferences
public JFile(GUIPreferences preferences,
IFilePath filePath)
JFile that interacts with the preferences and
which is based on a given file path implementation
preferences - PreferencesfilePath - File path implementationpublic JFile(IFilePath filePath)
filePath - File path implementation| Method Detail |
|---|
public File getFile()
public String getFilter()
public String getFilterDescription()
public FileBrowsingMode getMode()
public boolean isDirectory()
protected void onBrowse()
protected void onPathEdited()
public void setDirectory(boolean directory)
directory - the new directorypublic void setFile(File f)
f - the new filepublic void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - Enabled flagpublic void setFilter(String filter)
filter - the new filterpublic void setFilterDescription(String filterDescription)
filterDescription - the new filter descriptionpublic void setMode(FileBrowsingMode mode)
mode - the new modeprotected void updateFile(File f)
f - the f
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||