net.datacrow.core.plugin
Class PluginHelper

java.lang.Object
  extended by net.datacrow.core.plugin.PluginHelper

public class PluginHelper
extends java.lang.Object

Helps in placing plugins in menus and on toolbars. Is capable on deciding, with the help of the user permissions, if a plugin should be displayed or not.

Author:
Robert Jan van der Waals

Constructor Summary
PluginHelper()
           
 
Method Summary
static void add(javax.swing.JComponent c, java.lang.String key)
           
static void add(javax.swing.JComponent c, java.lang.String key, int moduleIdx)
           
static void add(javax.swing.JComponent c, java.lang.String key, java.lang.String label, DcObject dco, DcTemplate template, int viewIdx, int moduleIdx)
           
static void add(javax.swing.JComponent c, java.lang.String key, java.lang.String label, int moduleIdx)
           
static void addListener(javax.swing.JButton button, java.lang.String key, int moduleIdx)
           
static void registerKey(javax.swing.JRootPane pane, java.lang.String key)
           
static void registerKey(javax.swing.JRootPane pane, java.lang.String key, int viewIdx, int moduleIdx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginHelper

public PluginHelper()
Method Detail

registerKey

public static void registerKey(javax.swing.JRootPane pane,
                               java.lang.String key)

registerKey

public static void registerKey(javax.swing.JRootPane pane,
                               java.lang.String key,
                               int viewIdx,
                               int moduleIdx)

addListener

public static void addListener(javax.swing.JButton button,
                               java.lang.String key,
                               int moduleIdx)

add

public static void add(javax.swing.JComponent c,
                       java.lang.String key)

add

public static void add(javax.swing.JComponent c,
                       java.lang.String key,
                       int moduleIdx)

add

public static void add(javax.swing.JComponent c,
                       java.lang.String key,
                       java.lang.String label,
                       int moduleIdx)

add

public static void add(javax.swing.JComponent c,
                       java.lang.String key,
                       java.lang.String label,
                       DcObject dco,
                       DcTemplate template,
                       int viewIdx,
                       int moduleIdx)