|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VisiblePlugin
A visible plugin is a plugin that can be displayed in the user interface of an application.
| Field Summary | |
|---|---|
static java.lang.String |
GER
Event name for global enviroment updates (i\. e\. toolbar and menu rebuilds) |
static java.lang.String |
GEU
Event name for global enviroment updates (i\. e\. toolbar and menu rebuilds) |
static int |
SIZE_VARIABLE_BOTH
Plugin sizing behavior: Variable width and height |
static int |
SIZE_VARIABLE_HEIGHT
Plugin sizing behavior: Variable height |
static int |
SIZE_VARIABLE_NONE
Plugin sizing behavior: Fixed size |
static int |
SIZE_VARIABLE_WIDTH
Plugin sizing behavior: Variable width |
static int |
TOOLBAR_DYNAMIC
Plugin toolbar type: The plugin toolbar will be build dynamically by broadcasting an InteractionEvent |
static int |
TOOLBAR_EVENTS
Plugin toolbar type: The plugin toolbar contains entries for all its events accepting a JaspiraActionEvent |
static int |
TOOLBAR_NONE
Plugin toolbar type: The plugin doesn't have a toolbar |
| Fields inherited from interface org.openbp.jaspira.plugin.Plugin |
|---|
ID_DELIMETER, LEVEL_APPLICATION, LEVEL_FRAME, LEVEL_PAGE, LEVEL_PLUGIN |
| Method Summary | |
|---|---|
void |
addPluginFocusListener(java.awt.event.FocusListener listener)
Adds a focus listener to the plugin. |
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 |
canDelete()
Checks if the plugin can delete the selected data. |
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 |
delete()
Deletes the selected data, if any. |
void |
firePluginFocusGained()
Fires a 'focus gained event' to the focus listeners of the plugin. |
void |
firePluginFocusLost()
Fires a 'focus gained event' to the focus listeners of the plugin. |
void |
focusPlugin()
Requests the focus for this plugin from the plugin manager and brings it to the front. |
JaspiraPage |
getPage()
Returns the page level parent plugin of this plugin. |
javax.swing.JComponent |
getPluginComponent()
Gets the component this plugin contains. |
java.awt.Component |
getPluginFocusComponent()
Returns the focus component of this plugin, i\.e\. the component that is to initially receive the focus. |
PluginHolder |
getPluginHolder()
Returns the holder of this plugin. |
PluginPanel |
getPluginPanel()
Gets the panel that holds the title bar of the plugin and the content panel. |
int |
getSizeBehavior()
Returns the behavior of the plugin size. |
java.util.List |
getSubClients()
Gets the sub clients of this drop client. |
int |
getToolbarType()
Gets the type of the plugin toolbar. |
boolean |
hasCloseButton()
Returns true if the plugin should have a close button in its title bar. |
boolean |
isPluginFocused()
Checks if the plugin is currently focused. |
boolean |
isPluginVisible()
Checks if the plugin is currently visible. |
void |
paste(java.awt.datatransfer.Transferable transferable)
Pastes the given data into the plugin. |
void |
pluginHidden()
Called after the plugin has been hidden. |
void |
pluginShown()
Called after the plugin has been displayed. |
void |
postPluginContainerUpdate(boolean fullRebuild)
Posts an update request of the plugin's container. |
void |
removePluginFocusListener(java.awt.event.FocusListener listener)
Removes the focus listener from the plugin. |
void |
setPluginHolder(PluginHolder holder)
Sets the holder of this plugin. |
void |
showPlugin(boolean changePage)
Brings the plugin to the front, but does not request the focus. |
void |
updatePluginContainer(boolean fullRebuild)
Forces the container of this plugin to rebuild its environment. |
| Field Detail |
|---|
static final int TOOLBAR_NONE
static final int TOOLBAR_EVENTS
JaspiraActionEvent
static final int TOOLBAR_DYNAMIC
InteractionEvent
static final int SIZE_VARIABLE_NONE
static final int SIZE_VARIABLE_WIDTH
static final int SIZE_VARIABLE_HEIGHT
static final int SIZE_VARIABLE_BOTH
static final java.lang.String GEU
static final java.lang.String GER
| Method Detail |
|---|
void pluginShown()
void pluginHidden()
PluginPanel getPluginPanel()
javax.swing.JComponent getPluginComponent()
java.awt.Component getPluginFocusComponent()
void setPluginHolder(PluginHolder holder)
holder - The plugin holderPluginHolder getPluginHolder()
JaspiraPage getPage()
int getToolbarType()
TOOLBAR_NONE/TOOLBAR_EVENTS/TOOLBAR_DYNAMICboolean hasCloseButton()
int getSizeBehavior()
SIZE_VARIABLE_NONE/SIZE_VARIABLE_WIDTH/SIZE_VARIABLE_HEIGHT/SIZE_VARIABLE_BOTHvoid postPluginContainerUpdate(boolean fullRebuild)
fullRebuild - true Causes a full container update including menu and toolbar rebuildvoid updatePluginContainer(boolean fullRebuild)
fullRebuild - true Causes a full container environment including menu and toolbar rebuildJaspiraToolbar createToolbar()
getToolbarType() method.
If you want to construct your own custom toolbar, override this method.
void showPlugin(boolean changePage)
changePage - true Shows the JaspiraPage this container belongs to if it not the active page.boolean isPluginVisible()
void focusPlugin()
getPluginFocusComponent()) of the plugin or
to the plugin's component.
boolean isPluginFocused()
void addPluginFocusListener(java.awt.event.FocusListener listener)
listener - Listener to add.void removePluginFocusListener(java.awt.event.FocusListener listener)
listener - Listener to removevoid firePluginFocusGained()
void firePluginFocusLost()
java.util.List getSubClients()
InteractionClient objects or null if this plugin doesn't have sub drop clientsboolean canDrag()
boolean canCopy()
boolean canCut()
boolean canDelete()
boolean canPaste(java.awt.datatransfer.Transferable transferable)
java.awt.datatransfer.Transferable copy()
java.awt.datatransfer.Transferable cut()
void paste(java.awt.datatransfer.Transferable transferable)
transferable - Content to pastevoid delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||