Class PluginContext
java.lang.Object
se.datadosen.jalbum.PluginContext
Allow jAlbum plugins to easily integrate themselves into the jAlbum UI
- Since:
- 8.1.6
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextMenuItem(JMenuItem item) Add custom menu item to the context menu (when right clicking objects)voidAdd custom menu item to File->Import menu and to add buttonsvoidaddImportMenuItem(JMenuItem item) Add custom menu item to File->Import menuvoidaddToolBarAction(Action action) Add a custom button to the toolbarvoidaddToolBarAction(Action action, boolean showLabel) Add a custom button to the toolbarvoidaddToolsMenuItem(JMenuItem item) Add custom menu item to global Tools menuGet 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).Internal use.Get access to key jAlbum objects like its window and engineCall from context menu items to figure out what album objects are selectedCall from context menu items to figure out what JAlbumObjects are selected JAlbumObjects are the visual thumbnails that wrap AlbumObjects in jAlbum's Explore view This method allows plugins to position their dialogues relative to selected JAlbumObjects
-
Method Details
-
addToolsMenuItem
Add custom menu item to global Tools menu -
addContextMenuItem
Add custom menu item to the context menu (when right clicking objects) -
addImportMenuItem
-
addImportAction
Add custom menu item to File->Import menu and to add buttons- Since:
- 12.3
-
addToolBarAction
-
addToolBarAction
Add a custom button to the toolbar- Parameters:
action- - action to addshowLabel- - whether to display name of action next to icon- Since:
- 11.5
-
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
Call from context menu items to figure out what album objects are selected -
getSelectionModel
Call from context menu items to figure out what JAlbumObjects are selected JAlbumObjects are the visual thumbnails that wrap AlbumObjects in jAlbum's Explore view This method allows plugins to position their dialogues relative to selected JAlbumObjects- Returns:
- Model describing selected JAlbumObjects
- Since:
- 13
-
getRootFolder
- Since:
- 8.9
-
getCurrentFolder
- Since:
- 10.1
-
getJAlbumContext
Get access to key jAlbum objects like its window and engine -
getImportActions
-