public class ExtensionManualRequestEditor extends ExtensionAdaptor implements SessionChangedListener
Modifier and Type | Field and Description |
---|---|
static String |
NAME
Name of this extension.
|
Constructor and Description |
---|
ExtensionManualRequestEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addManualSendEditor(ManualRequestEditorDialog dialogue)
Should be called before extension is initialized via its
hook(ExtensionHook) method. |
String |
getAuthor()
Gets the author of the extension.
|
static ImageIcon |
getIcon() |
ManualRequestEditorDialog |
getManualSendEditor(Class<? extends Message> type)
Get special manual send editor to add listeners, etc.
|
String |
getUIName()
By default returns the name returned by
getName() . |
void |
hook(ExtensionHook extensionHook)
Called during extension's initialisation to allow to add new functionality to core
components.
|
void |
initView(ViewDelegate view) |
void |
removeManualSendEditor(Class<? extends Message> messageType) |
void |
sessionAboutToChange(Session session)
Called just prior to the session changing.
|
void |
sessionChanged(Session session)
Called just after the session has changed.
|
void |
sessionModeChanged(Control.Mode mode)
Called when the user changes the mode.
|
void |
sessionScopeChanged(Session session)
Called when the user has changes the session scope.
|
boolean |
supportsDb(String type)
No database tables used, so all supported
|
canUnload, databaseOpen, destroy, getActiveActions, getAddOn, getDependencies, getDescription, getExtensionMenu, getExtensionView, getI18nPrefix, getMessages, getModel, getName, getOrder, getUnsavedResources, getView, hasView, init, initModel, initXML, isCore, isDepreciated, isEnabled, optionsLoaded, postInit, postInstall, setAddOn, setDescription, setEnabled, setI18nPrefix, setMessages, setName, setOrder, start, stop, supportsLowMemory, unload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sessionPropertiesChanged
getURL, getVersion
public static final String NAME
public String getUIName()
ExtensionAdaptor
getName()
.getUIName
in interface Extension
getUIName
in class ExtensionAdaptor
null
ExtensionAdaptor.getName()
public void initView(ViewDelegate view)
initView
in interface Extension
initView
in class ExtensionAdaptor
public void addManualSendEditor(ManualRequestEditorDialog dialogue)
hook(ExtensionHook)
method.dialogue
- public ManualRequestEditorDialog getManualSendEditor(Class<? extends Message> type)
type
- public void hook(ExtensionHook extensionHook)
Extension
hook
in interface Extension
hook
in class ExtensionAdaptor
extensionHook
- the hook to add the components.public String getAuthor()
Extension
Since 2.9.0 defaults to the author of the add-on, if set, otherwise an empty string.
public void sessionChanged(Session session)
SessionChangedListener
sessionChanged
in interface SessionChangedListener
session
- the new sessionpublic void sessionAboutToChange(Session session)
SessionChangedListener
sessionAboutToChange
in interface SessionChangedListener
session
- the session about to be closedpublic void sessionScopeChanged(Session session)
SessionChangedListener
sessionScopeChanged
in interface SessionChangedListener
session
- the current sessionpublic void sessionModeChanged(Control.Mode mode)
SessionChangedListener
sessionModeChanged
in interface SessionChangedListener
mode
- the new modepublic boolean supportsDb(String type)
supportsDb
in interface Extension
supportsDb
in class ExtensionAdaptor
type
- the db typeDatabase.getType()
public static final ImageIcon getIcon()