|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.axelwernicke.mypod.myPod
This is the main class of myPod. It contains all the code for starting and shutting down myPod, as well as the gui logic (actions etc.). It's kind of glue between application logic and gui.
Field Summary | |
static int |
MENU_ACTION
has accelerator, small icon and text // TODO: we should clean them up, but they are contained in the frontend.jave... |
static java.lang.String |
myPodBaseDir
current directory is mypods base diectory |
static java.lang.String |
myPodVersion
current myPod version |
static int |
POPUP_ACTION
|
static int |
TOOLBAR_ACTION
|
Constructor Summary | |
myPod()
|
Method Summary | |
static javax.swing.AbstractAction |
getAboutAction(int mode)
Gets an ReorganizeClipsAction. |
static javax.swing.AbstractAction |
getAddClipsToPlaylistAction(java.lang.String name)
Gets an AddClipsToPlaylistAction. |
static Backend |
getBackend()
Gets the myPod Backend. |
static javax.swing.AbstractAction |
getClipPropertiesAction(int mode)
Gets an ClipPropertiesAction. |
static DataPool |
getDataPool()
Gets the myPod data pool. |
static javax.swing.AbstractAction |
getDeleteClipsAction(int mode)
Gets an Delete Clips Action. |
static javax.swing.AbstractAction |
getDeletePlaylistAction(int mode)
gets an delete playlist action |
static javax.swing.AbstractAction |
getExitAction()
|
static javax.swing.AbstractAction |
getExportPlaylistAction(int mode)
gets an Export Playlist Action |
static Frontend |
getFrontend()
Gets the myPod Frontend. |
static javax.swing.AbstractAction |
getHelpAction(int mode)
Gets an ReorganizeClipsAction. |
static javax.swing.AbstractAction |
getImportPlaylistAction(int mode)
gets an Export Playlist Action. |
static javax.swing.AbstractAction |
getNewAutoPlaylistAction(int mode)
gets an add autoplaylist action |
static javax.swing.AbstractAction |
getNewPlaylistAction(int mode)
gets an add playlist action |
static java.lang.Long |
getOid(java.lang.String filename)
Gets the oid of a clip. |
static javax.swing.AbstractAction |
getPlayClipsAddAction(int mode)
gets an Add Play External Action |
static javax.swing.AbstractAction |
getPlayClipsAppendAction(int mode)
gets an Add Play External Action |
static Playlist |
getPlaylist(int index)
Gets a playlist by its index. |
static javax.swing.DefaultListModel |
getPlaylistListModel()
gets the list model of all playlists. |
static java.util.Vector |
getPlaylistMenuItems()
Gets a Vector containing the menu items for playlists to add clips to. |
static javax.swing.AbstractAction |
getPlaylistPropertyAction(int mode)
gets an delete playlist action |
static javax.swing.AbstractAction |
getPlayPlaylistAddAction(int mode)
gets an Add Play External Action |
static javax.swing.AbstractAction |
getPlayPlaylistAppendAction(int mode)
gets an Add Play External Action |
static javax.swing.AbstractAction |
getPreferencesAction(int mode)
Gets an Preferences Action. |
static javax.swing.AbstractAction |
getRelocateMissingClipsAction(int mode)
Gets an RemoveMissingClipsAction. |
static javax.swing.AbstractAction |
getRemoveClipsMyPodAction(int mode)
Gets an Delete Clips Action. |
static javax.swing.AbstractAction |
getRemoveClipsPlaylistAction(int mode)
Gets an Remove Clips Action. |
static javax.swing.AbstractAction |
getRemoveMissingClipsAction(int mode)
Gets an RemoveMissingClipsAction. |
static javax.swing.AbstractAction |
getRenamePlaylistAction(int mode)
gets an delete playlist action. |
static javax.swing.AbstractAction |
getReorganizeClipsAction(int mode)
Gets an ReorganizeClipsAction. |
static javax.swing.AbstractAction |
getScanAction(int mode)
Get the scan action. |
static Playlist |
getSelectedPlaylist()
Gets the selected playlist from the list of playlists |
static int |
getSelectedPlaylistIndex()
Gets the index of the currently selected playlist from the list of playlists |
static javax.swing.AbstractAction |
getSetIPodNameAction()
Gets an SynchronizeIPodAction. |
static javax.swing.AbstractAction |
getSetIPodSyncAction(int mode)
gets an Export Playlist Action |
static javax.swing.DefaultListModel |
getSpreaderListModel(int columnCode)
Gets the spreader list model initialized for the current view |
static javax.swing.DefaultListModel |
getSpreaderListModel(int columnCode,
int playlistIndex)
Gets the spreader list model initialized for the current view |
static javax.swing.AbstractAction |
getSynchronizeIPodAction(int mode)
Gets an SynchronizeIPodAction. |
static javax.swing.AbstractAction |
getUpdateAutoPlaylistAction(int mode)
gets an update autoplaylist action |
static javax.swing.AbstractAction |
getWipeIPodAction(int mode)
Gets an WipeIPodAction. |
static void |
main(java.lang.String[] args)
myPods main class - never call this method directly. |
static void |
setClipsTableColumnListener(ListView clipsTableView)
Sets a column listener to a JTable object. |
static void |
updateClipsTableModel(Playlist playlist)
Updates the clips tables content using the selected playlist |
static void |
updateModels()
Updates the models for clips table and spreader list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String myPodVersion
public static final java.lang.String myPodBaseDir
public static final int MENU_ACTION
public static final int POPUP_ACTION
public static final int TOOLBAR_ACTION
Constructor Detail |
public myPod()
Method Detail |
public static void main(java.lang.String[] args)
args
- the command line argumentspublic static Playlist getPlaylist(int index)
index
- of the playlist
public static int getSelectedPlaylistIndex()
public static Playlist getSelectedPlaylist()
public static java.lang.Long getOid(java.lang.String filename)
filename
- of the clip
public static Backend getBackend()
public static Frontend getFrontend()
public static DataPool getDataPool()
public static void setClipsTableColumnListener(ListView clipsTableView)
clipsTableView
- to set the column listener forpublic static javax.swing.DefaultListModel getPlaylistListModel()
public static javax.swing.DefaultListModel getSpreaderListModel(int columnCode)
columnCode
- of the column to get a model for
public static javax.swing.DefaultListModel getSpreaderListModel(int columnCode, int playlistIndex)
columnCode
- of the column to create a model forplaylistIndex
- to determine the content of the model from
public static java.util.Vector getPlaylistMenuItems()
public static void updateClipsTableModel(Playlist playlist)
playlist
- to update the table model withpublic static void updateModels()
public static javax.swing.AbstractAction getScanAction(int mode)
mode
- the action is for
public static javax.swing.AbstractAction getPreferencesAction(int mode)
mode
- the action is for
public static javax.swing.AbstractAction getExitAction()
public static javax.swing.AbstractAction getNewPlaylistAction(int mode)
mode
- gui object the action is for
public static javax.swing.AbstractAction getNewAutoPlaylistAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getUpdateAutoPlaylistAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getDeletePlaylistAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getRenamePlaylistAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getPlaylistPropertyAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getPlayClipsAddAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getPlayPlaylistAddAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getPlayClipsAppendAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getPlayPlaylistAppendAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getImportPlaylistAction(int mode)
mode
- defines the kind of gui element the action is instatiated for
public static javax.swing.AbstractAction getExportPlaylistAction(int mode)
mode
- gui object the action is for
public static javax.swing.AbstractAction getSetIPodSyncAction(int mode)
mode
- gui object the action is for
public static javax.swing.AbstractAction getRemoveClipsPlaylistAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getRemoveClipsMyPodAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getDeleteClipsAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getAddClipsToPlaylistAction(java.lang.String name)
name
- of the action
public static javax.swing.AbstractAction getClipPropertiesAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getSetIPodNameAction()
public static javax.swing.AbstractAction getSynchronizeIPodAction(int mode)
mode
- describes action properties
public static javax.swing.AbstractAction getWipeIPodAction(int mode)
mode
- describes action properties
public static javax.swing.AbstractAction getRemoveMissingClipsAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getRelocateMissingClipsAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getReorganizeClipsAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getAboutAction(int mode)
mode
- that describes action properties
public static javax.swing.AbstractAction getHelpAction(int mode)
mode
- that describes action properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |