|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--net.quartzware.Project
| Inner Class Summary | |
class |
Project.Config This class encapsulates the project options |
| Field Summary | |
private java.util.Vector |
bundles |
private java.util.Vector |
looseFiles |
private java.io.File |
projectFile |
| Constructor Summary | |
Project() Constructor that creates a new project from scratch |
|
Project(java.io.File f)
Constructor that loads a Project based off of a project file |
|
Project(Project.Config cfg,
java.util.Vector bundles) Constructor that creates a project using a given configuration (prefferences) and a given Vector of Resource Bundles. |
|
| Method Summary | |
void |
addKey(java.lang.String key)
Adds a new key to the root. |
ResBundle |
createBundle(java.lang.String suffix)
Creates a new Resource Bundle and adds it to the Project |
void |
deleteKey(java.lang.String key)
Deletes all of the Entries in all of the Resource Bundles that match the given key |
java.util.Vector |
getAllBundles()
Gets all of the Resoruce Bundles |
java.io.File |
getProjectFile()
Gets the project file upon which this Project is based |
ResBundle |
getRoot() Gets the Root Resource Bundle |
ResBundle |
importBundle(java.io.File file,
java.lang.String suffix) Adds a currently existing bundle to the current Project |
ResBundle |
openLooseFile(java.io.File file)
Opens a Loose file into the editor, but does not actually add it to the Project. |
void |
removeBundle(ResBundle rb)
Removes the given Resource Bundle from the current Project |
void |
save(boolean saveAs)
Saves all of the currently dirty Resource Bundles. |
void |
setProjectFile(java.io.File projectFile)
Sets a new project file based off of the Save As... |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.util.Vector bundles
private java.io.File projectFile
private java.util.Vector looseFiles
| Constructor Detail |
public Project()
public Project(Project.Config cfg, java.util.Vector bundles)
cfg - Current preferencesbundles - a vector with Resource Bundles including a rootpublic Project(java.io.File f)
f - Project file selected from Open dialog box| Method Detail |
public ResBundle getRoot()
public void deleteKey(java.lang.String key)
key - The Key to be deletedpublic java.io.File getProjectFile()
public void setProjectFile(java.io.File projectFile)
projectFile - The new Project Filepublic ResBundle openLooseFile(java.io.File file)
file - The Loose File to be openedpublic ResBundle importBundle(java.io.File file, java.lang.String suffix)
file - The file containing the Resource Bundle to be addedsuffix - the suffix to be appended to the new Resource Bundle
file name (the language_LOCALE_varient)public ResBundle createBundle(java.lang.String suffix)
suffix - the suffix to be appended to the new Resource Bundle
file name (the language_LOCALE_varient)public void removeBundle(ResBundle rb)
rb - The resource bundle to be removedpublic void save(boolean saveAs)
saveAs - Save As Flag (described above)public java.util.Vector getAllBundles()
public void addKey(java.lang.String key)
key - the name of the key to be added
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||