Class AbstractReportScreen<B extends Report.Builder<?>>

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
Direct Known Subclasses:
ChatReportScreen, NameReportScreen, SkinReportScreen

public abstract class AbstractReportScreen<B extends Report.Builder<?>> extends Screen
  • Field Details

    • REPORT_SENT_MESSAGE

      private static final Component REPORT_SENT_MESSAGE
    • REPORT_SENDING_TITLE

      private static final Component REPORT_SENDING_TITLE
    • REPORT_SENT_TITLE

      private static final Component REPORT_SENT_TITLE
    • REPORT_ERROR_TITLE

      private static final Component REPORT_ERROR_TITLE
    • REPORT_SEND_GENERIC_ERROR

      private static final Component REPORT_SEND_GENERIC_ERROR
    • SEND_REPORT

      protected static final Component SEND_REPORT
    • OBSERVED_WHAT_LABEL

      protected static final Component OBSERVED_WHAT_LABEL
    • SELECT_REASON

      protected static final Component SELECT_REASON
    • DESCRIBE_PLACEHOLDER

      private static final Component DESCRIBE_PLACEHOLDER
    • MORE_COMMENTS_LABEL

      protected static final Component MORE_COMMENTS_LABEL
    • MORE_COMMENTS_NARRATION

      private static final Component MORE_COMMENTS_NARRATION
    • ATTESTATION_CHECKBOX

      private static final Component ATTESTATION_CHECKBOX
    • BUTTON_WIDTH

      protected static final int BUTTON_WIDTH
      See Also:
    • MARGIN

      protected static final int MARGIN
      See Also:
    • SCREEN_WIDTH

      protected static final int SCREEN_WIDTH
      See Also:
    • SPACING

      protected static final int SPACING
      See Also:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • lastScreen

      protected final Screen lastScreen
    • reportingContext

      protected final ReportingContext reportingContext
    • layout

      protected final LinearLayout layout
    • reportBuilder

      protected B extends Report.Builder<?> reportBuilder
    • attestation

      private Checkbox attestation
    • sendButton

      protected Button sendButton
  • Constructor Details

  • Method Details

    • createCommentBox

      protected MultiLineEditBox createCommentBox(int p_300027_, int p_300007_, Consumer<String> p_299915_)
    • init

      protected void init()
      Overrides:
      init in class Screen
    • createHeader

      protected void createHeader()
    • addContent

      protected abstract void addContent()
    • createFooter

      protected void createFooter()
    • onReportChanged

      protected void onReportChanged()
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • sendReport

      protected void sendReport()
    • onReportSendSuccess

      private void onReportSendSuccess()
    • onReportSendError

      private void onReportSendError(Throwable p_299933_)
    • displayReportSendError

      private void displayReportSendError(Component p_299983_)
    • saveDraft

      void saveDraft()
    • clearDraft

      void clearDraft()
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • removed

      public void removed()
      Overrides:
      removed in class Screen