se.datadosen.jalbum
Class PluginContext

java.lang.Object
  extended by se.datadosen.jalbum.PluginContext

public class PluginContext
extends java.lang.Object

Allow jAlbum plugins to easily integrate themselves into the jAlbum UI

Since:
8.1.6

Method Summary
 void addContextMenuItem(javax.swing.JMenuItem item)
          Add custom menu item to the context menu (when right clicking objects)
 void addImportMenuItem(javax.swing.JMenuItem item)
          Add custom menu item to File->Import menu
 void addToolsMenuItem(javax.swing.JMenuItem item)
          Add custom menu item to global Tools menu
 AlbumObject getCurrentFolder()
           
 EditPanel getEditPanel()
          Get a reference to jAlbum's edit panel The edit panel allows plugin writers to add custom tabs to the lower right section of its user interface (Visible when switching the edit panel to advanced mode).
 JAlbumContext getJAlbumContext()
          Get access to key jAlbum objects like its window and engine
 AlbumObject getRootFolder()
           
 AlbumObject[] getSelectedAlbumObjects()
          Call from context menu items to figure out what album objects are selected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addToolsMenuItem

public void addToolsMenuItem(javax.swing.JMenuItem item)
Add custom menu item to global Tools menu


addContextMenuItem

public void addContextMenuItem(javax.swing.JMenuItem item)
Add custom menu item to the context menu (when right clicking objects)


addImportMenuItem

public void addImportMenuItem(javax.swing.JMenuItem item)
Add custom menu item to File->Import menu

Since:
9.4

getEditPanel

public EditPanel getEditPanel()
Get a reference to jAlbum's edit panel The edit panel allows plugin writers to add custom tabs to the lower right section of its user interface (Visible when switching the edit panel to advanced mode).

Since:
8.2

getSelectedAlbumObjects

public AlbumObject[] getSelectedAlbumObjects()
Call from context menu items to figure out what album objects are selected


getRootFolder

public AlbumObject getRootFolder()
Since:
8.9

getCurrentFolder

public AlbumObject getCurrentFolder()
Since:
10.1

getJAlbumContext

public JAlbumContext getJAlbumContext()
Get access to key jAlbum objects like its window and engine