Class ExecShellTableau

    • Constructor Detail

      • ExecShellTableau

        public ExecShellTableau​(ExecShellEffigy container,
                                java.lang.String name)
                         throws IllegalActionException,
                                NameDuplicationException
        Create a new tableau. The tableau is itself an entity contained by the effigy and having the specified name. The frame is not made visible automatically. You must call show() to make it visible.
        Parameters:
        container - The containing effigy.
        name - The name of this tableau within the specified effigy.
        Throws:
        IllegalActionException - If the tableau is not acceptable to the specified container.
        NameDuplicationException - If the container already contains an entity with the specified name.
    • Method Detail

      • evaluateCommand

        public java.lang.String evaluateCommand​(java.lang.String command)
                                         throws java.lang.Exception
        Evaluate the specified command.
        Specified by:
        evaluateCommand in interface ShellInterpreter
        Parameters:
        command - The command.
        Returns:
        The return value of the command, or null if there is none.
        Throws:
        java.lang.Exception - If something goes wrong processing the command.
        See Also:
        ShellTextArea.returnResult(String)
      • isCommandComplete

        public boolean isCommandComplete​(java.lang.String command)
        Return true if the specified command is complete (ready to be interpreted).
        Specified by:
        isCommandComplete in interface ShellInterpreter
        Parameters:
        command - The command.
        Returns:
        True
      • stderr

        public void stderr​(java.lang.String text)
        Append the text message to text area. The output automatically gets a trailing newline appended.
        Parameters:
        text - The test to be appended.
      • stdout

        public void stdout​(java.lang.String text)
        Append the text message to the text area. The output automatically gets a trailing newline appended.
        Parameters:
        text - The test to be appended.