Class TelnetPanel

    • Field Detail

      • m_TextRemote

        protected BaseTextField m_TextRemote
        the remote server.
      • m_SpinnerPort

        protected JSpinner m_SpinnerPort
        the port.
      • m_ButtonConnection

        protected BaseButton m_ButtonConnection
        for connecting/disconnecting.
      • m_ButtonClear

        protected BaseButton m_ButtonClear
        the button for clearing the output.
      • m_ButtonCopy

        protected BaseButton m_ButtonCopy
        the button for copying the selected output.
      • m_TextCommand

        protected BaseTextField m_TextCommand
        the text field for the command to issue.
      • m_ButtonCommand

        protected BaseButton m_ButtonCommand
        the button for executing the command.
      • m_Client

        protected org.apache.commons.net.telnet.TelnetClient m_Client
        the telnet client.
      • m_CommandHistory

        protected List<String> m_CommandHistory
        the command history.
      • m_CommandIndex

        protected int m_CommandIndex
        the current command index.
    • Constructor Detail

      • TelnetPanel

        public TelnetPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Description copied from class: BasePanel
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finalizes the initialization.
        Overrides:
        finishInit in class BasePanel
      • previousCommand

        protected void previousCommand()
        Places the previous command in the command text field, if available.
      • nextCommand

        protected void nextCommand()
        Places the next command in the command text field, if available.
      • append

        protected void append​(String msg)
        Appends the msg to the output text area.
        Parameters:
        msg - the text to append
      • canConnect

        protected boolean canConnect()
        Checks whether we can connect to a server.
        Returns:
        true if we can connect
      • handleConnectionEvent

        protected void handleConnectionEvent()
        Connects or disconnects the client.
      • execCommand

        protected void execCommand()
        Executes, if possible, the currently entered command.
      • updateButtons

        protected void updateButtons()
        Updates the status/text of the buttons.
      • setRemote

        public void setRemote​(String value)
        Sets the remote server.
        Parameters:
        value - the server
      • getRemote

        public String getRemote()
        Returns the current remote server.
        Returns:
        the server
      • setPort

        public void setPort​(int value)
        Sets the port to use.
        Parameters:
        value - the port
      • getPort

        public int getPort()
        Returns the currently set port.
        Returns:
        the port