|
| SASMC |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.console.plugins.AbstractPlugin
This is a basic implementation of the PluginInterface. A plug-in can extend this class and provide only a name and description to have a functioning plug-in.
| Field Summary | |
protected AboutInterface |
m_aboutInfo
The version of the Plug-in. |
protected ConsoleInterface |
m_console
Reference to the console framework. |
protected ImageIcon |
m_icon
The icon representing this Plug-in. |
protected Vector |
m_pluginListenerList
The list of registered listeners. |
protected String |
m_strDescription
A short description of this plugin. |
protected String |
m_strName
The display name of this plugin. |
| Constructor Summary | |
AbstractPlugin(ConsoleInterface console)
Constructor |
|
| Method Summary | |
void |
addPluginChangeListener(PluginChangeListener listener)
Adds a plugin change listener to this Plug-in. |
void |
dispose()
Reserved for future use. |
void |
firePluginChange(int eventType,
NodeInterface parentNode,
List pairList)
Fires a plugin change to registered listeners. |
AboutInterface |
getAbout()
Returns an object that has more detailed information about this plug-in. |
ConsoleInterface |
getConsole()
Gets a reference to the console framework. |
String |
getDescription()
Returns the short description of the plug-in. |
Icon |
getIcon()
|
Icon |
getIcon(int size)
Returns the icon of the Plug-in. |
String |
getName()
Returns the name of the Plug-in. |
void |
initPlugin()
Initialize the plugin. |
boolean |
needsConnection()
Returns if the plugin requires a metadata connection with repositories to display |
void |
removePluginChangeListener(PluginChangeListener listener)
Removes a plugin change listener to this Plug-in. |
void |
setDescription(String strDescription)
Sets the short description of the plug-in. |
void |
setIcon(ImageIcon icon)
Sets the icon of the Plug-in. |
void |
setName(String strName)
Sets the name of the plug-in. |
String |
toString()
Return the plugin's name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ConsoleInterface m_console
protected String m_strName
protected String m_strDescription
protected ImageIcon m_icon
protected AboutInterface m_aboutInfo
protected Vector m_pluginListenerList
| Constructor Detail |
public AbstractPlugin(ConsoleInterface console)
console - The console interface| Method Detail |
public String getName()
getName in interface PluginInterfacepublic void setName(String strName)
strName - The plug-in name.public String getDescription()
getDescription in interface PluginInterfacepublic void setDescription(String strDescription)
strDescription - The description of the plug-in.public String toString()
toString in class Objectpublic Icon getIcon(int size)
getIcon in interface PluginInterfacepublic Icon getIcon()
getIcon in interface PluginInterfacepublic void setIcon(ImageIcon icon)
icon - The icon to be set.public AboutInterface getAbout()
getAbout in interface PluginInterfacepublic boolean needsConnection()
needsConnection in interface PluginInterfacepublic void dispose()
dispose in interface PluginInterfacepublic void addPluginChangeListener(PluginChangeListener listener)
addPluginChangeListener in interface PluginInterfacelistener - The plugin change listener.public void removePluginChangeListener(PluginChangeListener listener)
removePluginChangeListener in interface PluginInterfacelistener - The plugin change listener.
public void firePluginChange(int eventType,
NodeInterface parentNode,
List pairList)
firePluginChange in interface PluginInterfaceeventType - One of the PluginChangeEvent types ( DELETED, CHANGED, INSERTED, RESTRUCTURED, SELECTED ).parentNode - The parent node of the changed object.pairList - The list of IntObjectPairs that hold the children who have changedpublic ConsoleInterface getConsole()
getConsole in interface PluginInterfacecom.sas.console.plugins.PluginInterfacepublic void initPlugin()
initPlugin in interface PluginInterface
|
| SASMC |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||