|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
info.bioinfweb.treegraph.gui.dialogs.io.loadlogger.LoadLoggerDialog
public class LoadLoggerDialog
A dialog displaying messages from classes implementing DocumentReader
. It is implemented
as a singleton.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
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 |
buttonsPanel
|
private JButton |
closeButton
|
private static LoadLoggerDialog |
firstInstance
|
private JPanel |
jContentPane
|
private LoadLogger |
logger
|
private JList |
messageList
|
private JScrollPane |
messagesScrollPane
|
private static long |
serialVersionUID
|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
private |
LoadLoggerDialog(Frame owner)
|
Method Summary | |
---|---|
void |
addMessage(LoggerMessage message)
Outputs a usual message to the user. |
void |
addMessage(String message)
Outputs a usual message to the user. |
void |
addMessage(String message,
int helpCode)
Outputs a usual message to the user. |
void |
addWarning(String message)
Outputs a warning message to the user. |
void |
addWarning(String message,
int helpCode)
Outputs a warning message to the user. |
void |
clearMessages()
|
void |
display()
Packs, positions and shows this modal dialog if the message list is not empty. |
private JPanel |
getButtonsPanel()
This method initializes buttonsPanel |
private JButton |
getCloseButton()
This method initializes closeButton |
static LoadLoggerDialog |
getInstance()
Returns the singleton instance of this class. |
private JPanel |
getJContentPane()
This method initializes jContentPane |
private JList |
getMessageList()
This method initializes messageList |
private MessagesListModel |
getMessageListModel()
Returns the model of getMessageList() . |
private JScrollPane |
getMessagesScrollPane()
This method initializes messagesScrollPane |
private void |
initialize()
This method initializes this |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static LoadLoggerDialog firstInstance
private LoadLogger logger
private JPanel jContentPane
private JScrollPane messagesScrollPane
private JPanel buttonsPanel
private JButton closeButton
private JList messageList
Constructor Detail |
---|
private LoadLoggerDialog(Frame owner)
owner
- Method Detail |
---|
public static LoadLoggerDialog getInstance()
MainFrame.getInstance()
.
public void addMessage(LoggerMessage message)
LoadLogger
addMessage
in interface LoadLogger
public void addMessage(String message, int helpCode)
LoadLogger
addMessage
in interface LoadLogger
helpCode
- the help code associated with this messagespublic void addMessage(String message)
LoadLogger
addMessage
in interface LoadLogger
public void addWarning(String message, int helpCode)
LoadLogger
addWarning
in interface LoadLogger
helpCode
- the help code associated with this warningpublic void addWarning(String message)
LoadLogger
addWarning
in interface LoadLogger
public void clearMessages()
public void display()
private void initialize()
private JPanel getJContentPane()
private JScrollPane getMessagesScrollPane()
private JPanel getButtonsPanel()
private JButton getCloseButton()
private JList getMessageList()
private MessagesListModel getMessageListModel()
getMessageList()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |