Class AbstractRemoteControlCenterTab

    • Constructor Detail

      • AbstractRemoteControlCenterTab

        public AbstractRemoteControlCenterTab()
    • Method Detail

      • getApplicationFrame

        public AbstractApplicationFrame getApplicationFrame()
        Returns the application frame this tab belongs to.
        Returns:
        the frame, null if not part of an app frame
      • getTitle

        public abstract String getTitle()
        Returns the title of the tab.
        Returns:
        the title
      • getTabIcon

        public abstract String getTabIcon()
        Returns the name of icon to use for the tab.
        Returns:
        the icon
      • configureEngine

        protected DefaultScriptingEngine configureEngine​(ResponseHandler responseHandler,
                                                         int defPort)
        Returns new instance of a configured scripting engine.
        Parameters:
        responseHandler - the handler to use for intercepting the result, can be null
        defPort - the default port to use
        Returns:
        the engine
      • sendCommand

        public void sendCommand​(RemoteCommand cmd,
                                RemoteCommandProcessor processor,
                                BaseHostname remote)
        Sends the specified command, not waiting for a response.
        Parameters:
        cmd - the command to send
        remote - the remote host
      • sendCommandWithReponse

        public void sendCommandWithReponse​(RemoteCommandWithResponse cmd,
                                           RemoteCommandProcessor processor,
                                           ResponseHandler responseHandler,
                                           BaseHostname local,
                                           BaseHostname remote,
                                           int defPort)
        Sends the specified command and the response handler for intercepting the result.
        Parameters:
        cmd - the command to send
        responseHandler - the response handler for intercepting the result, can be null
        local - the local host
        remote - the remote host
        defPort - the default port to use