jrworkspace by
jTEM

de.jtem.jrworkspace.plugin.aggregators
Class ToolBarAggregator

java.lang.Object
  extended by de.jtem.jrworkspace.plugin.Plugin
      extended by de.jtem.jrworkspace.plugin.aggregators.ToolBarAggregator
All Implemented Interfaces:
ToolBarFlavor

public abstract class ToolBarAggregator
extends Plugin
implements ToolBarFlavor


Constructor Summary
ToolBarAggregator()
           
 
Method Summary
 void addAction(Class<?> context, double priority, Action a)
           
 void addSeparator(Class<?> context, double priority)
           
 void addTool(Class<?> context, double priority, Component c)
           
 Component getToolBarComponent()
          Returns a tool-bar component usually this is a JToolBar
 double getToolBarPriority()
          The tool-bar priority.
 void removeAction(Class<?> context, Action a)
           
 void removeAll(Class<?> context)
           
 void removeTool(Class<?> context, Component c)
           
 void setFloatable(boolean fl)
           
 
Methods inherited from class de.jtem.jrworkspace.plugin.Plugin
equals, getPluginInfo, hashCode, install, restoreStates, storeStates, toString, uninstall
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.jtem.jrworkspace.plugin.flavor.ToolBarFlavor
getPerspective
 

Constructor Detail

ToolBarAggregator

public ToolBarAggregator()
Method Detail

addAction

public void addAction(Class<?> context,
                      double priority,
                      Action a)

addSeparator

public void addSeparator(Class<?> context,
                         double priority)

addTool

public void addTool(Class<?> context,
                    double priority,
                    Component c)

getToolBarComponent

public Component getToolBarComponent()
Description copied from interface: ToolBarFlavor
Returns a tool-bar component usually this is a JToolBar

Specified by:
getToolBarComponent in interface ToolBarFlavor
Returns:

getToolBarPriority

public double getToolBarPriority()
Description copied from interface: ToolBarFlavor
The tool-bar priority. If there are more that one tool-bar installed the tool-bar get sorted according to this priority. If JToolBars are used the user can change the

Specified by:
getToolBarPriority in interface ToolBarFlavor
Returns:

removeAction

public void removeAction(Class<?> context,
                         Action a)

removeAll

public void removeAll(Class<?> context)

removeTool

public void removeTool(Class<?> context,
                       Component c)

setFloatable

public void setFloatable(boolean fl)

jrworkspace by
jTEM

jTEM