|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.Lyra
public class Lyra
This is the primary class used to create the original instance of the application. Certain constants are located here to provide a central location.
Field Summary | |
---|---|
static java.lang.String |
activeHost
Provides a safety mechanism which prevents the removal of the the currently active host. |
static java.lang.String |
BLANK
The Lyra blank CD art cover. |
static java.lang.String |
CACHE
Sub-directory under rootUser which contains cached images. |
private static java.lang.String |
CLASS
|
private Pendulum |
Clock
|
static java.lang.String |
CONF
Sub-directory under .rootUser and rootProgram which contains user modified and baseline settings and preferences for the application respectively. |
private Playback |
Control
|
private java.lang.Process |
Daemon
|
static int |
DaemonAttempts
Denotes the amount of times that connecting to the database will be done prior to failing. |
static java.lang.String |
DATABASE
The database structure necessary for all features and tracking of hosts is specified as follows. |
private Interface |
Db
|
static java.lang.String |
DB_SOURCE
Primary source path used for all of the databases that exist as templates or resources. |
static java.lang.String |
DOC_SOURCE
Primary source path used for all of the images that exist as part of the base application. |
static java.util.Map<java.lang.String,java.lang.String> |
Global
Map containing the global settings for the environment. |
private Terminus |
Host
|
static java.lang.String |
HOST
Sub-directory under .rootUser and rootProgram which contains host information and a default template respectively. |
static java.lang.String |
IMG_SOURCE
Primary source path used for all of the images that exist as part of the base application. |
private Status |
Information
|
static java.lang.String |
LANG
Sub-directory located under rootProgram exclusively containing all supported language databases. |
java.util.Map<java.lang.String,java.lang.String> |
Language
Language Map used to contain the language specific elements for display on the application. |
private Playlist |
Lists
|
private Ledger |
Logger
|
static java.lang.String |
LOGS
Sub-directory under rootUser which contains generated log files. |
static java.lang.String |
LYRA
The Lyra icon used to decorate windows. |
private Comptroller |
Manager
|
private Options |
Modes
|
private AbstractBlock |
myBlock
|
private static PlayerOrganiserFrame |
myOrg
|
private Operations |
Ops
|
static java.lang.String |
pathCache
The location of the cached images for retrieval of album art. |
static java.lang.String |
pathDocs
The location of help files for retrieval based on the selection of language element by the user. |
static java.lang.String |
pathIcon
The location of icons for retrieval based on the selection the user has made. |
static java.lang.String |
PROG
For the sake of a clean structure all of the user copies will be located within a certain structure. |
private Audit |
Recorder
|
private java.io.File |
rootLang
|
static java.io.File |
rootProgram
Directory which leads to the program root data files. |
static java.io.File |
rootUser
The user directory will normally point to the .lyra directory located in the users HOME directory. |
static Lyra |
Self
A reference to the instance created by the static main() instance. |
private Snooper |
Snoop
|
private Library |
Songs
|
static boolean |
StateSave
A switch that will indicate if the program has gone through its complete initialisation and can thus be saved safely. |
static java.lang.String |
TEMPLATE
The template file forms the base for other configuration files that will be copied for new configurations. |
private static java.util.List<java.io.File> |
tempList
|
private Updater |
Watcher
|
Constructor Summary | |
---|---|
Lyra(java.lang.String[] args)
Primary constructor of the class, will call initialisation and user components of the application. |
Method Summary | |
---|---|
static void |
addTempFile(java.io.File temp)
Static method which will track all temporarily created files and will make sure to initiate their termination at the end. |
static boolean |
closeApplication()
A static pass-through to enable termination of application from anywhere that will display a generic error message. |
static void |
closeApplication(java.awt.Window source)
A static pass-through to enable termination of application from anywhere without requiring the passage of this class to each and every element that may eventually need it. |
private void |
completeExecution()
Execution of the program will normal be ended through this process as it will ensure that various handles are closed and cleaned up prior to the completion. |
private void |
completeExecution(java.awt.Window source)
Once the user has reached a point where a user-interface is present it will typically be shunted though this method. |
static java.lang.String |
getCacheByFile(java.lang.String filename)
Returns the path with filename to extract a cached image used for the album art display. |
static java.lang.String |
getDocsByFile(java.lang.String filename)
Returns the path holding the designated icons for use. |
static java.lang.String |
getDocsByMap(java.lang.String ident)
Returns the path holding the designated help file for use. |
static java.lang.String |
getIconByFile(java.lang.String filename)
Returns the path holding the designated icons for use. |
static java.lang.String |
getIconByMap(java.lang.String ident)
Returns the path holding the designated icons for use. |
private boolean |
hostInitialise()
Handles the basics of host initialisation, making sure a host exists, is selected and populate/update the database if necessary. |
private java.util.Map<java.lang.String,java.lang.String> |
hostPrompt()
Host creation process. |
static void |
main(java.lang.String[] args)
The main entry point into the application. |
private boolean |
progInitialise(java.lang.String[] args)
This method aims to sort out the various complexities related to drawing parameters from many sources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Map<java.lang.String,java.lang.String> Global
public java.util.Map<java.lang.String,java.lang.String> Language
public static java.lang.String activeHost
public static java.io.File rootProgram
public static java.io.File rootUser
public static java.lang.String pathIcon
public static java.lang.String pathDocs
public static java.lang.String pathCache
public static final java.lang.String DB_SOURCE
public static final java.lang.String DOC_SOURCE
public static final java.lang.String IMG_SOURCE
public static final java.lang.String PROG
public static final java.lang.String CONF
public static final java.lang.String HOST
public static final java.lang.String LANG
public static final java.lang.String LOGS
public static final java.lang.String CACHE
public static final java.lang.String TEMPLATE
public static final java.lang.String DATABASE
public static final java.lang.String LYRA
public static final java.lang.String BLANK
public static Lyra Self
public static boolean StateSave
public static int DaemonAttempts
private Comptroller Manager
private Interface Db
private Ledger Logger
private Audit Recorder
private Pendulum Clock
private Playback Control
private Terminus Host
private Status Information
private Playlist Lists
private Library Songs
private Updater Watcher
private Options Modes
private Snooper Snoop
private static PlayerOrganiserFrame myOrg
private AbstractBlock myBlock
private static final java.lang.String CLASS
private java.io.File rootLang
private static java.util.List<java.io.File> tempList
private Operations Ops
private java.lang.Process Daemon
Constructor Detail |
---|
public Lyra(java.lang.String[] args)
args
- String of arguments passed on the command line.Method Detail |
---|
public static void main(java.lang.String[] args)
args
- String of arguments passed on the command line.private boolean hostInitialise()
private java.util.Map<java.lang.String,java.lang.String> hostPrompt()
private boolean progInitialise(java.lang.String[] args)
args
- Command Line driven arguments;
private void completeExecution()
private void completeExecution(java.awt.Window source)
source
- Source window.public static void closeApplication(java.awt.Window source)
source
- Source window.public static boolean closeApplication()
public static java.lang.String getIconByMap(java.lang.String ident)
ident
- String which contains key for the map.
public static java.lang.String getIconByFile(java.lang.String filename)
filename
- String which contains filename.
public static java.lang.String getDocsByMap(java.lang.String ident)
ident
- String which contains key for the map.
public static java.lang.String getDocsByFile(java.lang.String filename)
filename
- String which contains filename.
public static java.lang.String getCacheByFile(java.lang.String filename)
filename
- String which contains filename.
public static void addTempFile(java.io.File temp)
temp
- File instance containing temporary file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |