|
||||||||||
| 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.jaspira.plugins.propertybrowser.PropertyBrowserPlugin
public class PropertyBrowserPlugin
Property browser plugin.
The oe plugin can be used to display arbitrary objects.
There can be multiple oe plugin instances in an application.
However, there should be only one oe plugin instance per view.
The outside world communicates with the plugin using the property browser events (see the event module).
When the oe is instructed to display an object (using the plugin.propertybrowser.setobject
event), it will provide information on this object in a custom plugin state object
(PropertyBrowserPluginState). If the oe is currently visible, the object
will be displayed and the state (newState member) will be cleared. If not, this will
happen when the oe is being activated.
This construct has been introduced to prevent the oe from consuming system performance
when it is not even visible.
The property browser provides to edit properties of any object.
| Nested Class Summary | |
|---|---|
class |
PropertyBrowserPlugin.Events
Event module. |
class |
PropertyBrowserPlugin.InteractionEvents
Interaction module. |
class |
PropertyBrowserPlugin.SaveEvents
Event module that manages the save operation. |
| 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 | |
|---|---|
PropertyBrowserPlugin()
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
canPageChange(JaspiraPage oldPage,
JaspiraPage newPage)
This method is called before a page change takes place. |
boolean |
executeSave(PropertyBrowser editor)
Executes the save procedure for the current item of the specified property browser. |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
java.lang.Object |
getCurrentObject()
Gets the current object. |
java.lang.String |
getDescription()
Gets the description. |
protected java.util.Collection |
getExternalActions()
Returns a collection of the external actions of this plugin. |
MultiIcon |
getIcon()
Gets the icon. |
PluginState |
getPluginState()
Returns the state of this plugin. |
java.lang.String |
getResourceCollectionContainerName()
Gets the name of the resource component the default resource of the plugin belongs to. |
java.lang.String |
getSubTitle()
Returns the sub title of this plugin. |
java.lang.String |
getTitle()
Gets the title. |
int |
getToolbarType()
Gets the type of the plugin toolbar. |
void |
handlePropertyBrowserEvent(PropertyBrowserEvent e)
Handles an edit event. |
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 |
initializePlugin()
Initializes the plugin. |
void |
objectChanged(java.lang.Object original,
java.lang.Object modified)
Is performed if the object was changed. |
void |
setPluginState(PluginState state)
Rebuilds the state of the plugin using the given state object. |
| 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, getEventActionNames, getLevel, getName, getParentPlugin, getPeerGroup, getPeerGroupNames, getPeerGroups, getPluginResourceCollection, getUniqueId, getVendor, getVersion, handleEvent, inheritEvent, installFirstPlugin, matchesPeerGroup, matchesPeerGroups, receiveEvent, removeFromPeerGroup, removePlugin, requestClose, setParentPlugin, uninstallLastPlugin |
| Constructor Detail |
|---|
public PropertyBrowserPlugin()
| Method Detail |
|---|
public java.lang.String getResourceCollectionContainerName()
AbstractPlugin
getResourceCollectionContainerName in class AbstractPluginpublic void initializePlugin()
AbstractPlugin
initializePlugin in interface PlugininitializePlugin in class AbstractPluginprotected void initializeComponents()
AbstractVisiblePlugin
initializeComponents in class AbstractVisiblePluginprotected java.util.Collection getExternalActions()
AbstractPlugin
getExternalActions in class AbstractPluginJaspiraAction objects or nullpublic boolean hasCloseButton()
AbstractVisiblePlugin
hasCloseButton in interface VisiblePluginhasCloseButton in class AbstractVisiblePluginpublic int getToolbarType()
AbstractVisiblePlugin
getToolbarType in interface VisiblePlugingetToolbarType in class AbstractVisiblePluginVisiblePlugin.TOOLBAR_NONE/VisiblePlugin.TOOLBAR_EVENTS/VisiblePlugin.TOOLBAR_DYNAMICAbstractVisiblePlugin.getToolbarType()public java.lang.String getSubTitle()
getSubTitle in interface PlugingetSubTitle in class AbstractPlugin
protected boolean canPageChange(JaspiraPage oldPage,
JaspiraPage newPage)
canPageChange in class AbstractVisiblePluginoldPage - Current pagenewPage - Page that should be made the new current page
public PluginState getPluginState()
AbstractPlugin
getPluginState in interface PlugingetPluginState in class AbstractPluginpublic void setPluginState(PluginState state)
AbstractPlugin
setPluginState in interface PluginsetPluginState in class AbstractPluginpublic java.lang.Object getCurrentObject()
public boolean executeSave(PropertyBrowser editor)
executeSave in interface SaveStrategyeditor - The property browser
public void objectChanged(java.lang.Object original,
java.lang.Object modified)
objectChanged in interface ObjectChangeListeneroriginal - The object without any changesmodified - The modified objectpublic void handlePropertyBrowserEvent(PropertyBrowserEvent e)
PropertyBrowserListener
handlePropertyBrowserEvent in interface PropertyBrowserListenere - Eventpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic java.lang.String getTitle()
AbstractPlugin
getTitle in interface PlugingetTitle in class AbstractPluginpublic java.lang.String getDescription()
AbstractPlugin
getDescription in interface PlugingetDescription in class AbstractPluginpublic MultiIcon getIcon()
AbstractPlugin
getIcon in interface PlugingetIcon in class AbstractPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||