|
|||||||||
| 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
com.threerings.swing.LogPanel
public class LogPanel
A panel that alerts the user when a warning is logged and allows viewing the complete log.
| Nested Class Summary | |
|---|---|
protected class |
LogPanel.LogDialog
The log dialog window. |
| 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 | |
|---|---|
protected JButton |
_clear
The button that clears out the displayed warning. |
protected LogPanel.LogDialog |
_dialog
The dialog window. |
protected Handler |
_handler
The log message handler. |
protected MessageBundle |
_msgs
The translation bundle. |
protected static List<LogPanel> |
_panels
The list of all open panels. |
protected List<LogRecord> |
_records
Error records stored for future display. |
protected JButton |
_show
The button that pops up a window to display the entire warning. |
protected JLabel |
_warning
The label that displays the most recent logged warning. |
| 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 | |
|---|---|
LogPanel(MessageManager msgmgr,
boolean addHandler)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
void |
addNotify()
|
protected void |
clear()
Clears out the panel. |
protected void |
maybeAddHandler()
Adds the handler if appropriate and not already added. |
void |
removeNotify()
|
| 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 MessageBundle _msgs
protected JLabel _warning
protected JButton _show
protected JButton _clear
protected Handler _handler
protected List<LogRecord> _records
protected LogPanel.LogDialog _dialog
protected static List<LogPanel> _panels
| Constructor Detail |
|---|
public LogPanel(MessageManager msgmgr,
boolean addHandler)
addHandler - if true, add the log handler immediately
(don't wait until the component is added).| Method Detail |
|---|
public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void addNotify()
addNotify in class JComponentpublic void removeNotify()
removeNotify in class JComponentprotected void maybeAddHandler()
protected void clear()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||