|
||||||||||
| 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.toolbox.ToolBoxPlugin
public abstract class ToolBoxPlugin
A generic Plugin that shows ToolBoxItems which can used for Drag and Drop. By default the items can be draged into the box. You can use the box as clipboard.
| Nested Class Summary | |
|---|---|
class |
ToolBoxPlugin.Events
Event module. |
class |
ToolBoxPlugin.ToolBoxLayoutManager
|
| 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 |
|---|
| 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 | |
|---|---|
ToolBoxPlugin()
|
|
| Method Summary | |
|---|---|
protected boolean |
acceptDrop()
If this method returns true all item flavor drops will be accepted. |
protected boolean |
acceptFlyWheelKey(int key)
Determines if the given key is accepted by the toolbox as break out mode key. |
protected void |
addStandardToolBoxItems()
Adds the standard content of the toolbox. |
protected void |
addToolBoxItem(ModelObject mo,
java.lang.String tooltipResourceName)
Adds a process object to the toolbox. |
void |
addToolBoxItem(ToolBoxItem item)
Adds a toolbox item to the toolbox. |
protected boolean |
canTitleChange()
Determines if the title of the toolbox can be changed by the user. |
void |
clearToolbox()
Clears the toolbox. |
BreakoutBoxEntry[] |
createBreakOutEntries(java.util.List importers)
Creates a set of break out entries for the given data flavors. |
void |
dragActionTriggered(java.lang.Object regionId,
java.awt.Point p)
Called to signal additional actions, such as hovering for a certain time over the region. |
void |
dragEnded(java.awt.datatransfer.Transferable transferable)
called when a dragging has ended. |
void |
dragStarted(java.awt.datatransfer.Transferable transferable)
Called when a dragging has been started. |
java.util.List |
getAllDropRegions(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
Returns a list of all regions of this client AND possible sub clients. |
java.util.List |
getAllImportersAt(java.awt.Point p)
Returns all importers which will be accepted at the given point by this client or one of its sub clients. |
java.util.List |
getDropRegions(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
Returns a list of drop regions of this client that are compatible with the provided data flavors. |
java.util.List |
getImportersAt(java.awt.Point p)
Returns all importers which will be accepted at the given point by this client. |
java.lang.String |
getResourceCollectionContainerName()
Gets the name of the resource component the default resource of the plugin belongs to. |
java.lang.String |
getTitle()
Gets the title. |
java.lang.String |
getToolBoxTitle()
Returns the title of the ToolBox. |
boolean |
importData(java.lang.Object regionId,
java.awt.datatransfer.Transferable data,
java.awt.Point p)
Imports the given transferable into the given region. |
protected void |
initializeComponents()
This template method is called after internal Components (i\.e\. title bar etc\.) |
void |
refreshContent()
Redisplays content. |
void |
removeToolBoxItem(ToolBoxItem item)
Removes a tool box item from the toolbox. |
void |
setToolBoxTitle(java.lang.String title)
Sets the title of the ToolBox. |
void |
updateSkinIcons()
Updates the icons of the toolbox items if they have been retrieved from the icon model in the case of skin changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.jaspira.gui.interaction.InteractionClient |
|---|
getSubClients |
| 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, getUniqueId, getVendor, getVersion, handleEvent, inheritEvent, initializePlugin, installFirstPlugin, matchesPeerGroup, matchesPeerGroups, receiveEvent, removeFromPeerGroup, removePlugin, requestClose, setParentPlugin, setPluginState, uninstallLastPlugin |
| Constructor Detail |
|---|
public ToolBoxPlugin()
| Method Detail |
|---|
public java.lang.String getResourceCollectionContainerName()
AbstractPlugin
getResourceCollectionContainerName in class AbstractPluginprotected void initializeComponents()
AbstractVisiblePlugin
initializeComponents in class AbstractVisiblePluginAbstractVisiblePlugin.initializeComponents()protected void addStandardToolBoxItems()
protected void addToolBoxItem(ModelObject mo,
java.lang.String tooltipResourceName)
mo - Object to addtooltipResourceName - Tooltip resource namepublic void addToolBoxItem(ToolBoxItem item)
item - Item to addpublic void removeToolBoxItem(ToolBoxItem item)
item - Item to remove; must have been added using addToolBoxItem(ToolBoxItem)public void clearToolbox()
public void refreshContent()
public void updateSkinIcons()
public void setToolBoxTitle(java.lang.String title)
public java.lang.String getToolBoxTitle()
public java.lang.String getTitle()
AbstractPlugin
getTitle in interface PlugingetTitle in class AbstractPluginAbstractPlugin.getTitle()protected boolean canTitleChange()
protected boolean acceptDrop()
public void dragActionTriggered(java.lang.Object regionId,
java.awt.Point p)
InteractionClient
dragActionTriggered in interface InteractionClientregionId - Id of the region to import into (see BasicDropRegion.getId)p - Current mouse position in screen coordinatesInteractionClient.dragActionTriggered(Object, Point)public void dragEnded(java.awt.datatransfer.Transferable transferable)
InteractionClient
dragEnded in interface InteractionClienttransferable - Transferable that has been draggedInteractionClient.dragEnded(Transferable)public void dragStarted(java.awt.datatransfer.Transferable transferable)
InteractionClient
dragStarted in interface InteractionClienttransferable - Transferable to be draggedInteractionClient.dragStarted(Transferable)
public java.util.List getAllDropRegions(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
InteractionClient
getAllDropRegions in interface InteractionClientflavors - List of data flavors to checkdata - Transferable to importmouseEvent - Mouse event that initiated the drag action
DragAwareRegion object or null if the drop client
or one of its sub clients cannot satisfy at least one of the supplied data flavorsInteractionClient.getAllDropRegions(List, Transferable, MouseEvent)
public java.util.List getDropRegions(java.util.List flavors,
java.awt.datatransfer.Transferable data,
java.awt.event.MouseEvent mouseEvent)
InteractionClient
getDropRegions in interface InteractionClientflavors - List of data flavors to checkdata - Transferable to be importedmouseEvent - Mouse event that initiated the drag action
DragAwareRegion object or null if the drop client
cannot satisfy at least one of the supplied data flavors.InteractionClient.getDropRegions(List, Transferable, MouseEvent)public java.util.List getImportersAt(java.awt.Point p)
InteractionClient
getImportersAt in interface InteractionClientp - Current mouse position in screen coordinates
Importer objects or nullInteractionClient.getImportersAt(Point)public java.util.List getAllImportersAt(java.awt.Point p)
InteractionClient
getAllImportersAt in interface InteractionClientp - Current mouse position in screen coordinates
Importer objects or nullInteractionClient.getAllImportersAt(Point)
public boolean importData(java.lang.Object regionId,
java.awt.datatransfer.Transferable data,
java.awt.Point p)
InteractionClient
importData in interface InteractionClientregionId - Id of the region to import into (see BasicDropRegion.getId)data - Transferable to importp - Drop point in glass coordinates
InteractionClient.importData(Object, Transferable, Point)protected boolean acceptFlyWheelKey(int key)
key - Key to check
public BreakoutBoxEntry[] createBreakOutEntries(java.util.List importers)
BreakoutProvider
createBreakOutEntries in interface BreakoutProviderimporters - Flavors supported by the break out box (contains DataFlavor objects)
BreakoutProvider.createBreakOutEntries(List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||