|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.iu.iv.common.util.BasicURLPlugin
A simple plugin used for creating new plugins that link to URLs. Developers wishing to create plugins with this need only extend this class and make a super call to the correct constructor in their no-arg constructor.
| Constructor Summary | |
BasicURLPlugin(java.lang.String menuPath,
java.lang.String description,
java.lang.String url)
|
|
BasicURLPlugin(java.lang.String menuPath,
java.lang.String description,
java.lang.String url,
javax.swing.Icon icon)
|
|
| Method Summary | |
java.lang.String |
getDefaultMenuPath()
Gets this plugin's menu path, a "/"-delimited string which describes where in the GUI menu its menu item will be inserted. |
java.lang.String |
getDescription()
|
javax.swing.Icon |
getMenuIcon()
Gets the menu icon to be shown on the menu for this plugin. |
PropertyMap |
getPropertyMap()
Gets the property map for this plugin which specifies additional properties of the plugin that can be gotten. |
javax.swing.JInternalFrame |
getView(java.lang.Object model)
Returns a view of the data given. |
boolean |
supports(java.lang.Object model)
Determines whether a model is supported by this plugin or not. |
java.lang.String |
unsupportedReason(java.lang.Object model)
Retrieves the reason why a particular model is unsupported by this plugin. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicURLPlugin(java.lang.String menuPath,
java.lang.String description,
java.lang.String url)
menuPath - the menu path for the ivc menu.description - a description of the urlurl - the url to go to when this plugin is used.
public BasicURLPlugin(java.lang.String menuPath,
java.lang.String description,
java.lang.String url,
javax.swing.Icon icon)
menuPath - the menu path for the ivc menu.description - a description of the urlurl - the url to go to when this plugin is used.icon - an optional icon to place next to the menu item in the ivc.| Method Detail |
public PropertyMap getPropertyMap()
Plugin
getPropertyMap in interface PluginPlugin.getPropertyMap()public java.lang.String getDefaultMenuPath()
Plugin
getDefaultMenuPath in interface PluginPlugin.getDefaultMenuPath()public java.lang.String getDescription()
getDescription in interface PluginPlugin.getDescription()public boolean supports(java.lang.Object model)
Plugin
supports in interface Pluginmodel - the model to check for support
Plugin.supports(java.lang.Object)public java.lang.String unsupportedReason(java.lang.Object model)
Plugin
unsupportedReason in interface Pluginmodel - the model to look up a reason for
Plugin.unsupportedReason(java.lang.Object)public javax.swing.JInternalFrame getView(java.lang.Object model)
Plugin
getView in interface Pluginmodel - the model to get a view of or to be acted upon.
Plugin.getView(java.lang.Object)public javax.swing.Icon getMenuIcon()
Plugin
getMenuIcon in interface PluginPlugin.getMenuIcon()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||