Class ExtensionCallback

    • Constructor Detail

      • ExtensionCallback

        public ExtensionCallback()
        Deprecated.
    • Method Detail

      • supportsDb

        public boolean supportsDb​(java.lang.String type)
        Deprecated.
        Description copied from interface: Extension
        Return true if the specified db type is supported by the extension (or if it doesn't use any db) If this method returns false (meaning the db in use is not supported) then the extension will not be loaded.
        Specified by:
        supportsDb in interface Extension
        Overrides:
        supportsDb in class ExtensionAdaptor
        Parameters:
        type - the db type
        Returns:
        true if the specified db type is supported by the extension (or if it doesn't use any db)
        See Also:
        Database.getType()
      • hook

        public void hook​(ExtensionHook extensionHook)
        Deprecated.
        Description copied from interface: Extension
        Called during extension's initialisation to allow to add new functionality to core components.
        Specified by:
        hook in interface Extension
        Overrides:
        hook in class ExtensionAdaptor
        Parameters:
        extensionHook - the hook to add the components.
      • optionsLoaded

        public void optionsLoaded()
        Deprecated.
        Description copied from interface: Extension
        Called after the options for this extension have been loaded, so that the extension can make use of them. Note that other add-ons may not have been loaded at this point - if you need them to be then implement postInit()
        Specified by:
        optionsLoaded in interface Extension
        Overrides:
        optionsLoaded in class ExtensionAdaptor
        See Also:
        Extension.postInit()
      • getCallbackAddress

        public java.lang.String getCallbackAddress()
        Deprecated.
      • getTestUrl

        public java.lang.String getTestUrl()
        Deprecated.
      • getPort

        protected int getPort()
        Deprecated.
      • registerCallbackImplementor

        public void registerCallbackImplementor​(CallbackImplementor impl)
        Deprecated.
      • removeCallbackImplementor

        public void removeCallbackImplementor​(CallbackImplementor impl)
        Deprecated.
      • getAuthor

        public java.lang.String getAuthor()
        Deprecated.
        Description copied from interface: Extension
        Gets the author of the extension.

        Since 2.9.0 defaults to the author of the add-on, if set, otherwise an empty string.

        Specified by:
        getAuthor in interface Extension
        Returns:
        the author of the extension, might be null.
      • getDescription

        public java.lang.String getDescription()
        Deprecated.
        Description copied from interface: Extension
        Returns the description of the extension, to be shown in UI components. The description must be internationalised.
        Specified by:
        getDescription in interface Extension
        Overrides:
        getDescription in class ExtensionAdaptor
        Returns:
        the description of the extension, never null
      • sessionChanged

        public void sessionChanged​(Session session)
        Deprecated.
        Description copied from interface: SessionChangedListener
        Called just after the session has changed. sessionChanged may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.
        Specified by:
        sessionChanged in interface SessionChangedListener
        Parameters:
        session - the new session
      • deleteCallbacks

        public void deleteCallbacks()
        Deprecated.
      • sessionAboutToChange

        public void sessionAboutToChange​(Session session)
        Deprecated.
        Description copied from interface: SessionChangedListener
        Called just prior to the session changing. Listeners should close down any resources associated with this session. sessionAboutToChange may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.
        Specified by:
        sessionAboutToChange in interface SessionChangedListener
        Parameters:
        session - the session about to be closed
      • sessionScopeChanged

        public void sessionScopeChanged​(Session session)
        Deprecated.
        Description copied from interface: SessionChangedListener
        Called when the user has changes the session scope. sessionScopeChanged may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.
        Specified by:
        sessionScopeChanged in interface SessionChangedListener
        Parameters:
        session - the current session
      • sessionModeChanged

        public void sessionModeChanged​(Control.Mode mode)
        Deprecated.
        Description copied from interface: SessionChangedListener
        Called when the user changes the mode. sessionModeChanged may be called by non-event thread. Should handle with care in all the listener. Use EventThread for each GUI event.
        Specified by:
        sessionModeChanged in interface SessionChangedListener
        Parameters:
        mode - the new mode