Class ParsedErrorHandler

    • Constructor Detail

      • ParsedErrorHandler

        public ParsedErrorHandler​(FlowPanel owner)
        Initializes the tab handler
        Parameters:
        owner - the owning panel
    • Method Detail

      • add

        public void add​(FlowPanel owner,
                        String error)
        Parses the error and adds the output component.
        Parameters:
        owner - the flow panel this error relates to
        error - the error
      • remove

        public void remove​(int index)
        Removes the specified output.
        Parameters:
        index - the index of the output to remove
      • remove

        public void remove​(Component comp)
        Removes the specified output.
        Parameters:
        comp - the component to remove
      • hasOutputs

        public boolean hasOutputs()
        Returns whether any outputs are present.
        Returns:
        true if outputs avaialble
      • update

        protected void update​(boolean show)
        Notifies the ParsedErrorTab instance of a change.
        Parameters:
        show - whether to show the tab or leave as is