org.openbp.cockpit.plugins.finder
Class FinderResultPlugin

java.lang.Object
  extended by org.openbp.jaspira.plugin.AbstractPlugin
      extended by org.openbp.jaspira.gui.plugin.AbstractVisiblePlugin
          extended by org.openbp.cockpit.plugins.finder.FinderResultPlugin
All Implemented Interfaces:
java.awt.event.HierarchyListener, java.util.EventListener, VisiblePlugin, Plugin

public class FinderResultPlugin
extends AbstractVisiblePlugin

This plugin show the results of the finder in the modeler. If the modeler is not open, it will be opened.

Author:
Baumgartner Michael

Nested Class Summary
 class FinderResultPlugin.Event
          Event module for the auditor result plugin.
 class FinderResultPlugin.Interaction
          Interaction module.
 
Nested classes/interfaces inherited from class org.openbp.jaspira.gui.plugin.AbstractVisiblePlugin
AbstractVisiblePlugin.StandardVisiblePluginEvents
 
Nested classes/interfaces inherited from class org.openbp.jaspira.plugin.AbstractPlugin
AbstractPlugin.StandardPluginEvents
 
Field Summary
protected  JaspiraAction clearListAction
          Action to clear the list.
protected  GenericModel model
          The model for the treetable.
protected  java.util.List referenceList
          The list with the found references.
protected  ModelObject referenceObject
          The model object that was used for searching.
protected  JaspiraAction refreshAction
          Action to refresh the list.
protected  javax.swing.JPanel topPanel
          Top panel.
protected  javax.swing.JTree tree
          The treetable itself.
 
Fields inherited from class org.openbp.jaspira.plugin.AbstractPlugin
PROPERTY_CONDITION, PROPERTY_DESCRIPTION, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_SEQUENCE, PROPERTY_TITLE, PROPERTY_VENDOR, PROPERTY_VERSION
 
Fields inherited from interface org.openbp.jaspira.gui.plugin.VisiblePlugin
GER, GEU, SIZE_VARIABLE_BOTH, SIZE_VARIABLE_HEIGHT, SIZE_VARIABLE_NONE, SIZE_VARIABLE_WIDTH, TOOLBAR_DYNAMIC, TOOLBAR_EVENTS, TOOLBAR_NONE
 
Fields inherited from interface org.openbp.jaspira.plugin.Plugin
ID_DELIMETER, LEVEL_APPLICATION, LEVEL_FRAME, LEVEL_PAGE, LEVEL_PLUGIN
 
Constructor Summary
FinderResultPlugin()
          Constructor to load the icon for the results.
 
Method Summary
 java.lang.String getResourceCollectionContainerName()
          Gets the name of the resource component the default resource of the plugin belongs to.
 int getToolbarType()
          Gets the type of the plugin toolbar.
protected  void initializeComponents()
          This template method is called after internal Components (i\.e\. title bar etc\.)
protected  void showPopup(java.awt.Point pos)
          Shows the popup menu for the given item.
 
Methods inherited from class org.openbp.jaspira.gui.plugin.AbstractVisiblePlugin
addPluginFocusListener, applicationReady, canCopy, canCut, canDelete, canDrag, canPageChange, canPaste, copy, createToolbar, cut, delete, firePluginFocusGained, firePluginFocusLost, focusPlugin, getContentPane, getPage, getPluginComponent, getPluginFocusComponent, getPluginFromComponentHierarchy, getPluginHolder, getPluginPanel, getSizeBehavior, getSubClients, hasCloseButton, hierarchyChanged, initializeResources, installPlugin, installPluginContent, isPluginFocused, isPluginVisible, paste, pluginHidden, pluginShown, postPluginContainerUpdate, removePluginFocusListener, setPluginHolder, showPlugin, stackEvent, uninstallPlugin, updatePluginContainer
 
Methods inherited from class org.openbp.jaspira.plugin.AbstractPlugin
addActionKeySequence, addPlugin, addToPeerGroup, canClose, closeCanceled, containsStackedEvent, fireEvent, fireEvent, fireEvent, getAction, getChildPlugins, getClassName, getCondition, getDescendantPlugins, getDescription, getEventActionNames, getEventModules, getExternalActions, getExternalEventModuleClasses, getExternalOptionModuleClasses, getIcon, getIcon, getLevel, getName, getOptionModules, getParentPlugin, getPeerGroup, getPeerGroupNames, getPeerGroups, getPluginResourceCollection, getPluginState, getSubTitle, getTitle, getUniqueId, getVendor, getVersion, handleEvent, handleKeySequence, inheritEvent, initializeFromPluginProfile, initializePlugin, installFirstPlugin, matchesPeerGroup, matchesPeerGroups, passDown, pluginInstalled, pluginUninstalled, preClose, receiveEvent, removeFromPeerGroup, removePlugin, removeStackedEvent, requestClose, setDescription, setIcon, setName, setParentPlugin, setPluginState, setResourceCollection, setTitle, toString, uninstallLastPlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openbp.jaspira.plugin.Plugin
addPlugin, addToPeerGroup, canClose, containsStackedEvent, fireEvent, fireEvent, fireEvent, getAction, getChildPlugins, getClassName, getCondition, getDescendantPlugins, getDescription, getEventActionNames, getIcon, getLevel, getName, getParentPlugin, getPeerGroup, getPeerGroupNames, getPeerGroups, getPluginResourceCollection, getPluginState, getSubTitle, getTitle, getUniqueId, getVendor, getVersion, handleEvent, inheritEvent, initializePlugin, installFirstPlugin, matchesPeerGroup, matchesPeerGroups, receiveEvent, removeFromPeerGroup, removePlugin, requestClose, setParentPlugin, setPluginState, uninstallLastPlugin
 

Field Detail

tree

protected javax.swing.JTree tree
The treetable itself.


model

protected GenericModel model
The model for the treetable.


referenceObject

protected ModelObject referenceObject
The model object that was used for searching.


referenceList

protected java.util.List referenceList
The list with the found references.


topPanel

protected javax.swing.JPanel topPanel
Top panel.


clearListAction

protected JaspiraAction clearListAction
Action to clear the list.


refreshAction

protected JaspiraAction refreshAction
Action to refresh the list.

Constructor Detail

FinderResultPlugin

public FinderResultPlugin()
Constructor to load the icon for the results.

Method Detail

getResourceCollectionContainerName

public java.lang.String getResourceCollectionContainerName()
Description copied from class: AbstractPlugin
Gets the name of the resource component the default resource of the plugin belongs to.

Specified by:
getResourceCollectionContainerName in class AbstractPlugin
Returns:
The container name

initializeComponents

protected void initializeComponents()
Description copied from class: AbstractVisiblePlugin
This template method is called after internal Components (i\.e\. title bar etc\.) have been initialized. It shoud be used to initialize plugin specific components.

Specified by:
initializeComponents in class AbstractVisiblePlugin

showPopup

protected void showPopup(java.awt.Point pos)
Shows the popup menu for the given item.

Parameters:
pos - Position of the upper left corner of the popup

getToolbarType

public int getToolbarType()
Description copied from class: AbstractVisiblePlugin
Gets the type of the plugin toolbar. This will determine how the toolbar of the plugin will be constructed.

Specified by:
getToolbarType in interface VisiblePlugin
Overrides:
getToolbarType in class AbstractVisiblePlugin
Returns:
VisiblePlugin.TOOLBAR_NONE/VisiblePlugin.TOOLBAR_EVENTS/VisiblePlugin.TOOLBAR_DYNAMIC
Default: TOOLBAR_EVENTS


Copyright © 2011. All Rights Reserved.