Class PluginContext

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

public class PluginContext extends Object
Allow jAlbum plugins to easily integrate themselves into the jAlbum UI
Since:
8.1.6
  • Method Details

    • addToolsMenuItem

      public void addToolsMenuItem(JMenuItem item)
      Add custom menu item to global Tools menu
    • addContextMenuItem

      public void addContextMenuItem(JMenuItem item)
      Add custom menu item to the context menu (when right clicking objects)
    • addImportMenuItem

      public void addImportMenuItem(JMenuItem item)
      Add custom menu item to File->Import menu
      Since:
      9.4
    • addImportAction

      public void addImportAction(Action a)
      Add custom menu item to File->Import menu and to add buttons
      Since:
      12.3
    • addToolBarAction

      public void addToolBarAction(Action action)
      Add a custom button to the toolbar
      Since:
      11.5
    • addToolBarAction

      public void addToolBarAction(Action action, boolean showLabel)
      Add a custom button to the toolbar
      Parameters:
      action - - action to add
      showLabel - - whether to display name of action next to icon
      Since:
      11.5
    • 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
    • getSelectionModel

      public ExplorerSelectionModel 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

      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
    • getImportActions

      public List<Action> getImportActions()
      Internal use. Don't call
      Returns: