|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.rice.cs.drjava.ui.TabbedPanel
edu.rice.cs.drjava.ui.ErrorPanel
public abstract class ErrorPanel
This class contains common code and interfaces from CompilerErrorPanel, JUnitPanel, and JavadocErrorPanel. TODO: parameterize the types of CompilerErrors (which should be called DJErrors) used here
| Nested Class Summary | |
|---|---|
class |
ErrorPanel.ErrorDocument
|
class |
ErrorPanel.ErrorListPane
Pane to show compiler errors. |
class |
ErrorPanel.PreviewErrorFrame
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private JPanel |
_errorNavButtonsPanel
|
private JPanel |
_errorNavPanel
|
private JPanel |
_leftPanel
This contains the _scroller and the _errorNavPanel. |
(package private) static ReverseHighlighter.DrJavaHighlightPainter |
_listHighlightPainter
Highlight painter for selected list items. |
protected SingleDisplayModel |
_model
|
private JButton |
_nextErrorButton
|
protected int |
_numErrors
The total number of errors in the list |
protected JPopupMenu |
_popupMenu
_popupMenu and _popupMenuListener are either both null or both non-null. |
protected RightClickMouseAdapter |
_popupMenuListener
|
private JButton |
_prevErrorButton
|
private JPanel |
_rightPanel
This contains the label, showHighlightsCheckBox, and the customPanel. |
private JScrollPane |
_scroller
|
protected JCheckBox |
_showHighlightsCheckBox
|
protected static SimpleAttributeSet |
BOLD_ATTRIBUTES
|
protected JPanel |
customPanel
This JPanel contains each child panel's specific UI components. |
protected static SimpleAttributeSet |
NORMAL_ATTRIBUTES
|
| Fields inherited from class edu.rice.cs.drjava.ui.TabbedPanel |
|---|
_closeButton, _closePanel, _displayed, _frame, _mainPanel, dropTarget |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ErrorPanel(SingleDisplayModel model,
MainFrame frame,
String tabString,
String labelString)
|
|
| Method Summary | |
|---|---|
protected static SimpleAttributeSet |
_getBoldAttributes()
|
protected static SimpleAttributeSet |
_getNormalAttributes()
|
protected void |
_updateStyles(AttributeSet newSet)
Updates all document styles with the attributes contained in newSet. |
void |
addPopupMenu(Action... actions)
|
protected abstract ErrorPanel.ErrorListPane |
getErrorListPane()
|
protected abstract CompilerErrorModel |
getErrorModel()
This function returns the correct error model |
protected SingleDisplayModel |
getModel()
|
JPopupMenu |
getPopupMenu()
|
protected void |
setErrorListPane(ErrorPanel.ErrorListPane elp)
|
void |
setListFont(Font f)
Changes the font of the error list. |
| Methods inherited from class edu.rice.cs.drjava.ui.TabbedPanel |
|---|
_close, addCloseListener, dragEnter, dragExit, dragOver, drop, dropActionChanged, getMainPanel, getName, isDisplayed, requestFocusInWindow, setDisplayed, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final SimpleAttributeSet NORMAL_ATTRIBUTES
protected static final SimpleAttributeSet BOLD_ATTRIBUTES
protected volatile int _numErrors
protected volatile JCheckBox _showHighlightsCheckBox
protected volatile SingleDisplayModel _model
private volatile JScrollPane _scroller
private volatile JPanel _leftPanel
private volatile JPanel _rightPanel
private volatile JPanel _errorNavPanel
private volatile JPanel _errorNavButtonsPanel
protected volatile JPanel customPanel
private volatile JButton _nextErrorButton
private volatile JButton _prevErrorButton
protected volatile JPopupMenu _popupMenu
protected volatile RightClickMouseAdapter _popupMenuListener
static volatile ReverseHighlighter.DrJavaHighlightPainter _listHighlightPainter
| Constructor Detail |
|---|
public ErrorPanel(SingleDisplayModel model,
MainFrame frame,
String tabString,
String labelString)
| Method Detail |
|---|
protected static final SimpleAttributeSet _getBoldAttributes()
protected static final SimpleAttributeSet _getNormalAttributes()
protected void setErrorListPane(ErrorPanel.ErrorListPane elp)
public void setListFont(Font f)
protected void _updateStyles(AttributeSet newSet)
newSet - Style containing new attributes to use.protected abstract ErrorPanel.ErrorListPane getErrorListPane()
protected SingleDisplayModel getModel()
protected abstract CompilerErrorModel getErrorModel()
public JPopupMenu getPopupMenu()
public void addPopupMenu(Action... actions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||