Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emplode
Class Emplode  view Emplode download Emplode.java

java.lang.Object
  extended byorg.jempeg.empeg.emplode.Emplode

public class Emplode
extends java.lang.Object

Emplode is the main class for the Java Emplode clone. Much like Emptool, the various methods of Emplode implement the various functions that can be executed by the user. The binding of these methods to buttons and panels is done through the .dialog and .action packages.

Version:
$Revision: 1.47 $

Field Summary
private  org.jempeg.empeg.emplode.action.BasicFIDTreeNodeChangeListener myChangeListener
           
private static org.jempeg.empeg.emplode.util.EmplodeClipboard myClipboard
           
private  EmplodeConnectionManager myConnectionManager
           
private  org.jempeg.empeg.emptool.PlayerDatabase myDB
           
private  java.lang.Object myEmpegLock
           
private  javax.swing.JFrame myFrame
           
private  javax.swing.JLabel myFreeSpaceLabel
           
private  org.jempeg.empeg.emptool.DatabaseProgressListenerIfc myListener
           
private  org.jempeg.empeg.emplode.action.EmplodeMenuManager myMenuManager
           
private  EmplodePlaylistManager myPlaylistManager
           
private  EmplodePlaylistTableManager myPlaylistTableManager
           
private  org.jempeg.empeg.emplode.dialog.ProgressDialog myProgressDialog
           
private static org.jempeg.empeg.emplode.util.PropertiesManager myPropertiesManager
           
private  org.jempeg.empeg.emplode.model.SearchesPlaylistTreeNode mySearchesNode
           
private  org.jempeg.empeg.emplode.dialog.SearchPanel mySearchPanel
           
private  javax.swing.JLabel mySelectionLabel
           
private  javax.swing.JLabel mySortLabel
           
private  EmplodeSyncManager mySyncManager
           
private  javax.swing.JTabbedPane myTabbedPane
           
private  javax.swing.JTable myTable
           
private  org.jempeg.empeg.emplode.action.SelectionTracker myTracker
           
private  javax.swing.JTree myTree
           
 
Constructor Summary
Emplode()
          Instantiantes an Emplode
 
Method Summary
 void exportCSV(java.io.File _targetFile)
          Exports the player database to a CSV format text file
 void exportXML(java.io.File _targetFile)
          Exports the player database to a XML format text file
 void freeSpaceChanged()
          Called when the free space and used space changes.
 org.jempeg.empeg.emplode.action.BasicFIDTreeNodeChangeListener getChangeListener()
          Returns the change listener.
static org.jempeg.empeg.emplode.util.EmplodeClipboard getClipboard()
          Returns the emplode clipboard
 EmplodeConnectionManager getConnectionManager()
          Returns the ConnectionManager for this Emplode.
 org.jempeg.empeg.emptool.PlayerDatabase getDB()
          Returns the current PlayerDatabase.
 java.lang.Object getEmpegLock()
          Returns a lock object that blocks on communication to the Empeg.
 javax.swing.JFrame getFrame()
          Returns the primary Emplode frame.
 EmplodePlaylistManager getPlaylistManager()
          Returns the PlaylistManager for this Emplode.
 EmplodePlaylistTableManager getPlaylistTableManager()
          Returns the PlaylistTableManager for this Emplode.
 org.jempeg.empeg.emplode.dialog.ProgressDialog getProgressDialog()
          Returns the progress dialog.
 org.jempeg.empeg.emptool.DatabaseProgressListenerIfc getProgressListener()
          Returns the progress listener.
static org.jempeg.empeg.emplode.util.PropertiesManager getPropertiesManager()
          Returns the properties manager (which provides access to persistent properties
 EmplodeSyncManager getSyncManager()
          Returns the SyncManager for this Emplode.
 javax.swing.JTable getTable()
          Returns the playlist table.
 org.jempeg.empeg.emplode.action.SelectionTracker getTracker()
          Returns the SelectionTracker for this Emplode.
 void handleError(java.lang.String _errorMessage)
          Proxies myListener.error
 void handleError(java.lang.String _errorMessage, java.lang.Throwable _t)
          Proxies myListener.error
 void handleError(java.lang.Throwable _t)
          Proxies myListener.error
protected  void initGUI()
          Initializes the GUI, setting up the initial frame, menus, actions, etc.
 boolean isSearchTabSelected()
          Returns whether or not the search tab is selected.
protected  void reloadModels()
          Updates the various data models.
 void setDB(org.jempeg.empeg.emptool.PlayerDatabase _db)
          Initializes the GUI and downloads the current database
 void setPlayerMenuOptionsEnabled(boolean _enabled)
          Proxies EmplodeMenuManager.setPlayerMenuOptionsEnabled
 void setSelectionLabelText(java.lang.String _selectionLabelText)
          Sets the text on the selection count label.
 void setSortLabelText(java.lang.String _sortLabelText)
          Sets the text on the sort order label.
protected  void setTitle()
           
protected  void setTitle(javax.swing.JFrame _frame)
           
protected  void setWaitState(boolean _wait)
          Enables or disables the wait cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myPropertiesManager

private static org.jempeg.empeg.emplode.util.PropertiesManager myPropertiesManager

myClipboard

private static org.jempeg.empeg.emplode.util.EmplodeClipboard myClipboard

myEmpegLock

private final java.lang.Object myEmpegLock

myConnectionManager

private EmplodeConnectionManager myConnectionManager

mySyncManager

private EmplodeSyncManager mySyncManager

myPlaylistManager

private EmplodePlaylistManager myPlaylistManager

myPlaylistTableManager

private EmplodePlaylistTableManager myPlaylistTableManager

myListener

private org.jempeg.empeg.emptool.DatabaseProgressListenerIfc myListener

myChangeListener

private org.jempeg.empeg.emplode.action.BasicFIDTreeNodeChangeListener myChangeListener

myDB

private org.jempeg.empeg.emptool.PlayerDatabase myDB

myTracker

private org.jempeg.empeg.emplode.action.SelectionTracker myTracker

myMenuManager

private org.jempeg.empeg.emplode.action.EmplodeMenuManager myMenuManager

myProgressDialog

private org.jempeg.empeg.emplode.dialog.ProgressDialog myProgressDialog

myFrame

private javax.swing.JFrame myFrame

myTree

private javax.swing.JTree myTree

myTable

private javax.swing.JTable myTable

mySelectionLabel

private javax.swing.JLabel mySelectionLabel

myFreeSpaceLabel

private javax.swing.JLabel myFreeSpaceLabel

mySortLabel

private javax.swing.JLabel mySortLabel

myTabbedPane

private javax.swing.JTabbedPane myTabbedPane

mySearchPanel

private org.jempeg.empeg.emplode.dialog.SearchPanel mySearchPanel

mySearchesNode

private org.jempeg.empeg.emplode.model.SearchesPlaylistTreeNode mySearchesNode
Constructor Detail

Emplode

public Emplode()
        throws java.io.IOException
Instantiantes an Emplode

Method Detail

getPropertiesManager

public static org.jempeg.empeg.emplode.util.PropertiesManager getPropertiesManager()
Returns the properties manager (which provides access to persistent properties


getClipboard

public static org.jempeg.empeg.emplode.util.EmplodeClipboard getClipboard()
Returns the emplode clipboard


getConnectionManager

public EmplodeConnectionManager getConnectionManager()
Returns the ConnectionManager for this Emplode.


getSyncManager

public EmplodeSyncManager getSyncManager()
Returns the SyncManager for this Emplode.


getPlaylistManager

public EmplodePlaylistManager getPlaylistManager()
Returns the PlaylistManager for this Emplode.


getPlaylistTableManager

public EmplodePlaylistTableManager getPlaylistTableManager()
Returns the PlaylistTableManager for this Emplode.


getTracker

public org.jempeg.empeg.emplode.action.SelectionTracker getTracker()
Returns the SelectionTracker for this Emplode.


getDB

public org.jempeg.empeg.emptool.PlayerDatabase getDB()
Returns the current PlayerDatabase.


setDB

public void setDB(org.jempeg.empeg.emptool.PlayerDatabase _db)
           throws java.io.IOException
Initializes the GUI and downloads the current database


getFrame

public javax.swing.JFrame getFrame()
Returns the primary Emplode frame.


getChangeListener

public org.jempeg.empeg.emplode.action.BasicFIDTreeNodeChangeListener getChangeListener()
Returns the change listener.


getProgressListener

public org.jempeg.empeg.emptool.DatabaseProgressListenerIfc getProgressListener()
Returns the progress listener.


getProgressDialog

public org.jempeg.empeg.emplode.dialog.ProgressDialog getProgressDialog()
Returns the progress dialog.


getTable

public javax.swing.JTable getTable()
Returns the playlist table.


getEmpegLock

public java.lang.Object getEmpegLock()
Returns a lock object that blocks on communication to the Empeg.


setPlayerMenuOptionsEnabled

public void setPlayerMenuOptionsEnabled(boolean _enabled)
Proxies EmplodeMenuManager.setPlayerMenuOptionsEnabled


setSortLabelText

public void setSortLabelText(java.lang.String _sortLabelText)
Sets the text on the sort order label.


setSelectionLabelText

public void setSelectionLabelText(java.lang.String _selectionLabelText)
Sets the text on the selection count label.


isSearchTabSelected

public boolean isSearchTabSelected()
Returns whether or not the search tab is selected.


freeSpaceChanged

public void freeSpaceChanged()
Called when the free space and used space changes.


handleError

public void handleError(java.lang.Throwable _t)
Proxies myListener.error


handleError

public void handleError(java.lang.String _errorMessage,
                        java.lang.Throwable _t)
Proxies myListener.error


handleError

public void handleError(java.lang.String _errorMessage)
Proxies myListener.error


exportCSV

public void exportCSV(java.io.File _targetFile)
               throws java.io.IOException
Exports the player database to a CSV format text file


exportXML

public void exportXML(java.io.File _targetFile)
               throws java.io.IOException
Exports the player database to a XML format text file


reloadModels

protected void reloadModels()
Updates the various data models. This will cause a refresh of the tree. This is not equivalent to a call to download! This simply gets the tree model in synch with the AbstractFIDNode tree structure.


setTitle

protected void setTitle()

setTitle

protected void setTitle(javax.swing.JFrame _frame)

initGUI

protected void initGUI()
Initializes the GUI, setting up the initial frame, menus, actions, etc.


setWaitState

protected void setWaitState(boolean _wait)
Enables or disables the wait cursor.