|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.applications.desktop.filehandling.AssociationFileOpener
public class AssociationFileOpener
This class implements the interface FileOpener, using a properties file for storing the file associations.
Field Summary | |
---|---|
protected ApplicationSelector |
appSelector
The application selector dialog. |
protected java.lang.String |
description
The header information describing the properties file. |
protected java.util.Properties |
fileAssoc
The properties which correspond to the file associations. |
protected static org.apache.log4j.Logger |
logger
|
protected java.lang.String |
propFilename
The name of the properties file in which the assocciations are stored. |
Constructor Summary | |
---|---|
AssociationFileOpener()
|
Method Summary | |
---|---|
void |
load()
Loaads the file assocciations to use from a properties file. |
void |
open(java.lang.String filename)
Opens the file with the given name, using either a pre-defined, or a user-defined application. |
void |
save()
Saves the used file assocciations to a properties file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
protected ApplicationSelector appSelector
protected java.util.Properties fileAssoc
protected final java.lang.String description
protected final java.lang.String propFilename
Constructor Detail |
---|
public AssociationFileOpener()
Method Detail |
---|
public void open(java.lang.String filename)
open
in interface FileOpener
filename
- the name of the file to open.public void save()
save
in interface FileOpener
public void load()
load
in interface FileOpener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |