Class TextViewer

    • Constructor Detail

      • TextViewer

        public TextViewer()
        Constructor
    • Method Detail

      • setCommandContext

        public void setCommandContext​(String verb,
                                      DataHandler dh)
                               throws IOException
        Description copied from interface: CommandObject
        Initialize the Command with the verb it is requested to handle and the DataHandler that describes the data it will operate on. NOTE: it is acceptable for the caller to pass null as the value for DataHandler.
        Specified by:
        setCommandContext in interface CommandObject
        Parameters:
        verb - The Command Verb this object refers to.
        dh - The DataHandler.
        Throws:
        IOException - for failures accessing data
      • setInputStream

        public void setInputStream​(InputStream ins)
                            throws IOException
        set the data stream, component to assume it is ready to be read.
        Throws:
        IOException
      • addNotify

        public void addNotify()
        Overrides:
        addNotify in class Panel