-
Notifications
You must be signed in to change notification settings - Fork 24
Edit Problem Pane
The PC2 Admin client interface (implemented by class ui.admin.AdministratorView
) contains a Configure Contest
tab which in turn contains a JTabbedPane
containing a variety of tabs used to support configuring a contest. One of these is the Problems
tab, which displays a grid of all currently configured contest problems (as well as allowing adding a new contest problem). Selecting an existing problem and then clicking the Edit Problem
button displays an instance of class EditProblemFrame
which in turn contains an instance of EditProblemPane
.
The EditProblemPane
class is an example of a PC2 JPanePlugin
(that is, EditProblemPane extends JPanePlugin
; see UI Design Elements). An EditProblemPane
contains a JTabbedPane
which in turn contains a variety of panes, one per tab. Many of the panes in the EditProblemPane
's JTabbedPane
are instances of JPanel
s constructed within the EditProblemPane
(specifically, in method EditProblemPane.getMainTabbedPane()
). Other panes in the JTabbedPane
, however, are subclasses of the PC2 class JPanePlugin
. Examples of the former include the General
, Judging Type
, and Output Validator
tab panes, while examples of the latter include the Groups
, Input Validator
, and Test Data Files
tab panes.