|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.plugin.AbstractPlugin
org.openbp.jaspira.gui.plugin.AbstractVisiblePlugin
org.openbp.cockpit.plugins.itembrowser.ItemBrowserPlugin
public class ItemBrowserPlugin
The item browser displays the models of the system and their items in a tree structure.
It supports dragging an item (e. g. onto the workspace).
The items can be filtered by the installed item filters (currently item type and
item text filter). The filter components (used to adjust the filters) are shown
in a panel above the tree and can be turned on and off using the item filter buttons
in the plugin's toolbar.
| Nested Class Summary | |
|---|---|
class |
ItemBrowserPlugin.InteractionEvents
Interaction module. |
class |
ItemBrowserPlugin.ItemBrowserOptions
Option module containing all core Modeler options. |
| 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 | |
|---|---|
static int |
GUESS_MODEL
Flag for getSelectedModel: Guess model from selected item |
static int |
USE_CURRENT_MODEL
Flag for getSelectedModel: Use model of current process if none selected in the item browser |
| 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 | |
|---|---|
ItemBrowserPlugin()
|
|
| Method Summary | |
|---|---|
void |
applicationReady()
Called after the application has been initialized AND the plugin initialization is finished. |
boolean |
canCopy()
Checks if the plugin can copy the selected data to the clipboard. |
boolean |
canCut()
Checks if the plugin can cut the selected data to the clipboard. |
boolean |
canDrag()
Checks if the plugin can be dragged. |
boolean |
canPaste(java.awt.datatransfer.Transferable transferable)
Checks if the plugin can paste the data of the given transferable object. |
java.awt.datatransfer.Transferable |
copy()
Copies the selected data from the plugin to the clipboard. |
JaspiraToolbar |
createToolbar()
Creates the toolbar of this plugin. |
java.awt.datatransfer.Transferable |
cut()
Cuts the selected data from the plugin to the clipboard. |
void |
dropAccepted(java.awt.datatransfer.Transferable t)
Called when the drag has been accepted by a InteractionClient, but before it is actually imported. |
void |
dropCanceled(java.awt.datatransfer.Transferable t)
Called when the drag action has been aborted, either by dropping upon a non- qualifying target or because the target reported an unsuccessful drop. |
void |
dropPerformed(java.awt.datatransfer.Transferable t)
Called when the drop has been performed and the object has been inserted. |
protected void |
firePropertyBrowserEvent(Item item)
Creates an property browser event which will send to the property browser later. |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
MultiIcon |
getDragImage()
Gets the image for the construction of the drag cursor. |
protected java.lang.Class[] |
getExternalEventModuleClasses()
Returns the list of external event module classes. |
java.awt.Component |
getPluginFocusComponent()
Returns the focus component of this plugin, i\.e\. the component that is to initially receive the focus. |
java.lang.String |
getResourceCollectionContainerName()
Gets the name of the resource component the default resource of the plugin belongs to. |
Item |
getSelectedItem()
Gets the selected item. |
Model |
getSelectedModel(int flag)
Gets the selected model. |
java.lang.String[] |
getSupportedItemTypes()
Gets the item types supported by this browser (null for the standard item types). |
java.awt.datatransfer.Transferable |
getTranferableAt(java.awt.Point p)
Returns the Transferable for a drag Operation starting at . |
void |
handleItemTreeEvent(ItemTreeEvent e)
Called when an item tree event has happened. |
boolean |
hasCloseButton()
Returns true if the plugin should have a close button in its title bar. |
protected void |
initializeComponents()
This template method is called after internal Components (i\.e\. title bar etc\.) |
void |
observeEvent(ObserverEvent event)
|
void |
paste(java.awt.datatransfer.Transferable content)
Pastes the given data into the plugin. |
void |
performAlternativeSelection()
Selects the element that should be selected if the currently selected element is deleted. |
protected void |
pluginUninstalled()
Called before the plugin is uninstalled. |
protected void |
rebuildTree()
Rebuilds the model/item tree. |
void |
setSelectedObject(java.lang.Object object)
Sets the currently selected object. |
void |
setSupportedItemTypes(java.lang.String[] supportedItemTypes)
Sets the item types supported by this browser (null for the standard item types). |
| 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 |
|---|
public static final int GUESS_MODEL
public static final int USE_CURRENT_MODEL
| Constructor Detail |
|---|
public ItemBrowserPlugin()
| Method Detail |
|---|
public java.lang.String getResourceCollectionContainerName()
AbstractPlugin
getResourceCollectionContainerName in class AbstractPluginprotected java.lang.Class[] getExternalEventModuleClasses()
AbstractPlugin
getExternalEventModuleClasses in class AbstractPluginExternalEventModuleAbstractPlugin.getExternalEventModuleClasses()public boolean hasCloseButton()
AbstractVisiblePlugin
hasCloseButton in interface VisiblePluginhasCloseButton in class AbstractVisiblePluginAbstractVisiblePlugin.hasCloseButton()protected void initializeComponents()
AbstractVisiblePlugin
initializeComponents in class AbstractVisiblePluginAbstractVisiblePlugin.initializeComponents()protected void pluginUninstalled()
pluginUninstalled in class AbstractPluginpublic java.awt.Component getPluginFocusComponent()
AbstractVisiblePlugin
getPluginFocusComponent in interface VisiblePlugingetPluginFocusComponent in class AbstractVisiblePluginAbstractVisiblePlugin.getPluginFocusComponent()public JaspiraToolbar createToolbar()
AbstractVisiblePluginmethod.
If you want to construct your own custom toolbar, override this method.
createToolbar in interface VisiblePlugincreateToolbar in class AbstractVisiblePluginAbstractVisiblePlugin.createToolbar()public void applicationReady()
applicationReady in class AbstractVisiblePluginpublic Model getSelectedModel(int flag)
public Item getSelectedItem()
public void setSelectedObject(java.lang.Object object)
object - Object to select (item or model) or nullpublic java.lang.String[] getSupportedItemTypes()
public void setSupportedItemTypes(java.lang.String[] supportedItemTypes)
protected void rebuildTree()
public void performAlternativeSelection()
public boolean canCopy()
VisiblePlugin
canCopy in interface VisiblePlugincanCopy in class AbstractVisiblePluginpublic boolean canCut()
VisiblePlugin
canCut in interface VisiblePlugincanCut in class AbstractVisiblePluginpublic boolean canPaste(java.awt.datatransfer.Transferable transferable)
VisiblePlugin
canPaste in interface VisiblePlugincanPaste in class AbstractVisiblePluginpublic java.awt.datatransfer.Transferable copy()
VisiblePlugin
copy in interface VisiblePlugincopy in class AbstractVisiblePluginpublic java.awt.datatransfer.Transferable cut()
VisiblePlugin
cut in interface VisiblePlugincut in class AbstractVisiblePluginpublic void paste(java.awt.datatransfer.Transferable content)
VisiblePlugin
paste in interface VisiblePluginpaste in class AbstractVisiblePlugincontent - Content to pastepublic boolean canDrag()
VisiblePlugin
canDrag in interface DragOrigincanDrag in interface VisiblePlugincanDrag in class AbstractVisiblePluginDragOrigin.canDrag()public void dropAccepted(java.awt.datatransfer.Transferable t)
DragOrigin
dropAccepted in interface DragOrigint - Dragged transferableDragOrigin.dropAccepted(Transferable)public void dropCanceled(java.awt.datatransfer.Transferable t)
DragOrigin
dropCanceled in interface DragOrigint - Dragged transferableDragOrigin.dropCanceled(Transferable)public void dropPerformed(java.awt.datatransfer.Transferable t)
DragOrigin
dropPerformed in interface DragOrigint - Dragged transferableDragOrigin.dropPerformed(Transferable)public java.awt.datatransfer.Transferable getTranferableAt(java.awt.Point p)
DragOrigin
getTranferableAt in interface DragOriginp - The location at which the drag started in component local coordinates
DragOrigin.getTranferableAt(Point)public MultiIcon getDragImage()
DragOrigin
getDragImage in interface DragOriginDragOrigin.getDragImage()public void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerFocusListener.focusGained(java.awt.event.FocusEvent)public void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerFocusListener.focusLost(java.awt.event.FocusEvent)public void handleItemTreeEvent(ItemTreeEvent e)
handleItemTreeEvent in interface ItemTreeListenere - Item tree event holding the event informationprotected void firePropertyBrowserEvent(Item item)
item - An item or a modelpublic void observeEvent(ObserverEvent event)
observeEvent in interface EventObserver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||