Class ConversationPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ContextListener, StatusListener

public class ConversationPanel extends JPanel implements ContextListener, StatusListener
See Also:
  • Constructor Details

    • ConversationPanel

      public ConversationPanel(ChatPanel parentPanel)
  • Method Details

    • redraw

      public void redraw()
    • contextChanged

      public void contextChanged(Chat source)
      Description copied from interface: ContextListener
      Fired whenever the context has changed in any way (messages added, removed, or modified).

      The listener is responsible for completely redrawing its view or updating its state based on the new context state.

      Specified by:
      contextChanged in interface ContextListener
      Parameters:
      source - The Chat instance where the change occurred.
    • contextCleared

      public void contextCleared(Chat source)
      Description copied from interface: ContextListener
      Fired when the entire context is cleared, usually on a chat restart.
      Specified by:
      contextCleared in interface ContextListener
      Parameters:
      source - The Chat instance that was cleared.
    • statusChanged

      public void statusChanged(ChatStatus status, String lastExceptionToString)
      Description copied from interface: StatusListener
      Called when the chat's operational status changes.
      Specified by:
      statusChanged in interface StatusListener
      Parameters:
      status - The new operational state (e.g., API_CALL_IN_PROGRESS).
      lastExceptionToString - The string representation of the last exception that occurred, or null if none.