public class LogBrokerMonitor
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
_callSystemExitOnClose |
protected CategoryExplorerTree |
_categoryExplorerTree |
protected java.util.List |
_columns |
protected ConfigurationManager |
_configurationManager |
protected java.lang.String |
_currentView |
protected java.util.List |
_displayedLogBrokerProperties |
protected java.io.File |
_fileLocation |
protected java.lang.String |
_fontName |
protected int |
_fontSize |
protected javax.swing.JComboBox |
_fontSizeCombo |
protected boolean |
_isDisposed |
protected java.awt.Dimension |
_lastTableViewportSize |
protected LogLevel |
_leastSevereDisplayedLogLevel |
protected java.util.List |
_levels |
protected boolean |
_loadSystemFonts |
protected java.lang.Object |
_lock |
protected java.util.Map |
_logLevelMenuItems |
protected javax.swing.JFrame |
_logMonitorFrame |
protected int |
_logMonitorFrameHeight |
protected int |
_logMonitorFrameWidth |
protected java.util.Map |
_logTableColumnMenuItems |
protected javax.swing.JScrollPane |
_logTableScrollPane |
protected MRUFileManager |
_mruFileManager |
protected java.lang.String |
_NDCTextFilter |
protected java.lang.String |
_searchText |
protected javax.swing.JLabel |
_statusLabel |
protected LogTable |
_table |
protected boolean |
_trackTableScrollPane |
static java.lang.String |
DETAILED_VIEW |
构造器和说明 |
---|
LogBrokerMonitor(java.util.List logLevels)
Construct a LogBrokerMonitor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addDisplayedProperty(java.lang.Object messageLine) |
void |
addMessage(LogRecord lr)
Add a log record message to be displayed in the LogTable.
|
protected void |
addTableModelProperties() |
protected void |
centerFrame(javax.swing.JFrame frame) |
protected int |
changeFontSizeCombo(javax.swing.JComboBox box,
int requestedSize)
Changes the font selection in the combo box and returns the
size actually selected.
|
protected void |
clearDetailTextArea() |
protected void |
closeAfterConfirm() |
protected javax.swing.JMenuItem |
createAllLogLevelsMenuItem() |
protected javax.swing.JMenuItem |
createAllLogTableColumnsMenuItem() |
protected javax.swing.JMenuItem |
createCloseMI() |
protected javax.swing.JMenuItem |
createConfigureMaxRecords() |
protected javax.swing.JMenu |
createConfigureMenu() |
protected javax.swing.JMenuItem |
createConfigureReset() |
protected javax.swing.JMenuItem |
createConfigureSave() |
protected javax.swing.JTextArea |
createDetailTextArea() |
protected javax.swing.JMenuItem |
createEditFindMI() |
protected javax.swing.JMenuItem |
createEditFindNextMI() |
protected javax.swing.JMenu |
createEditMenu() |
protected javax.swing.JMenuItem |
createEditRestoreAllNDCMI() |
protected javax.swing.JMenuItem |
createEditSortNDCMI() |
protected javax.swing.JMenuItem |
createExitMI() |
protected javax.swing.JMenu |
createFileMenu() |
protected javax.swing.JMenu |
createHelpMenu() |
protected javax.swing.JMenuItem |
createHelpProperties() |
protected javax.swing.JMenu |
createLogLevelColorMenu() |
protected javax.swing.JComboBox |
createLogLevelCombo() |
protected javax.swing.JMenu |
createLogLevelMenu() |
protected LogRecordFilter |
createLogRecordFilter() |
protected javax.swing.JCheckBoxMenuItem |
createLogTableColumnMenuItem(LogTableColumn column) |
protected javax.swing.JMenuBar |
createMenuBar() |
protected javax.swing.JCheckBoxMenuItem |
createMenuItem(LogLevel level) |
protected void |
createMRUFileListMI(javax.swing.JMenu menu)
Creates a Most Recently Used file list to be
displayed in the File menu
|
protected LogRecordFilter |
createNDCLogRecordFilter(java.lang.String text) |
protected javax.swing.JMenuItem |
createNoLogLevelsMenuItem() |
protected javax.swing.JMenuItem |
createNoLogTableColumnsMenuItem() |
protected javax.swing.JMenuItem |
createOpenMI()
Menu item added to allow log files to be opened with
the LF5 GUI.
|
protected javax.swing.JMenuItem |
createOpenURLMI()
Menu item added to allow log files loaded from a URL
to be opened by the LF5 GUI.
|
protected javax.swing.JMenuItem |
createResetLogLevelColorMenuItem() |
protected javax.swing.JPanel |
createStatusArea() |
protected javax.swing.JMenuItem |
createSubMenuItem(LogLevel level) |
protected javax.swing.JToolBar |
createToolBar() |
protected javax.swing.JMenu |
createViewMenu() |
void |
dispose()
Dispose of the frame for the LogBrokerMonitor.
|
protected int |
findRecord(int startRow,
java.lang.String searchText,
java.util.List records) |
protected void |
findSearchText() |
javax.swing.JFrame |
getBaseFrame() |
boolean |
getCallSystemExitOnClose()
Get the value of whether or not System.exit() will be called
when the LogBrokerMonitor is closed.
|
CategoryExplorerTree |
getCategoryExplorerTree() |
DateFormatManager |
getDateFormatManager()
Get the DateFormatManager for formatting dates.
|
protected int |
getFirstSelectedRow() |
java.util.Map |
getLogLevelMenuItems() |
protected java.util.Iterator |
getLogLevels() |
protected javax.swing.JCheckBoxMenuItem |
getLogTableColumnMenuItem(LogTableColumn column) |
java.util.Map |
getLogTableColumnMenuItems() |
protected java.util.Iterator |
getLogTableColumns() |
protected javax.swing.JCheckBoxMenuItem |
getMenuItem(LogLevel level) |
java.lang.String |
getNDCTextFilter() |
protected java.lang.String |
getRecordsDisplayedMessage() |
protected java.lang.String |
getStatusText(int displayedRows,
int totalRows) |
javax.swing.JCheckBoxMenuItem |
getTableColumnMenuItem(LogTableColumn column) |
void |
hide()
Hide the frame for the LogBrokerMonitor.
|
protected void |
initComponents() |
protected boolean |
loadLogFile(java.io.File file)
Loads and parses a log file.
|
protected boolean |
loadLogFile(java.net.URL url)
Loads a parses a log file running on a server.
|
protected void |
makeLogTableListenToCategoryExplorer() |
protected boolean |
matches(LogRecord record,
java.lang.String text)
Check to see if the any records contain the search string.
|
protected void |
pause(int millis) |
protected void |
refresh(javax.swing.JTextArea textArea)
When the fontsize of a JTextArea is changed, the word-wrapped lines
may become garbled.
|
protected void |
refreshDetailTextArea() |
protected void |
requestClose() |
protected void |
requestExit() |
protected void |
requestOpen()
Uses a JFileChooser to select a file to opened with the
LF5 GUI.
|
protected void |
requestOpenMRU(java.awt.event.ActionEvent e)
Opens a file in the MRU list.
|
protected void |
requestOpenURL()
Uses a Dialog box to accept a URL to a file to be opened
with the LF5 GUI.
|
protected void |
resetConfiguration() |
protected void |
saveConfiguration() |
protected void |
selectAllLogLevels(boolean selected) |
protected void |
selectAllLogTableColumns(boolean selected) |
protected void |
selectRow(int foundRow) |
void |
setCallSystemExitOnClose(boolean callSystemExitOnClose)
Set the value of whether or not System.exit() will be called
when the LogBrokerMonitor is closed.
|
void |
setDateFormatManager(DateFormatManager dfm)
Set the date format manager for formatting dates.
|
protected void |
setFontSize(java.awt.Component component,
int fontSize) |
void |
setFontSize(int fontSize) |
protected void |
setFontSizeSilently(int fontSize)
Does not update gui or cause any events to be fired.
|
void |
setFrameSize(int width,
int height) |
protected void |
setLeastSevereDisplayedLogLevel(LogLevel level) |
void |
setMaxNumberOfLogRecords(int maxNumberOfLogRecords) |
protected void |
setMaxRecordConfiguration() |
void |
setNDCLogRecordFilter(java.lang.String textFilter) |
protected void |
setNDCTextFilter(java.lang.String text) |
protected void |
setSearchText(java.lang.String text) |
void |
setTitle(java.lang.String title) |
protected void |
setView(java.lang.String viewString,
LogTable table) |
void |
show() |
void |
show(int delay)
Show the frame for the LogBrokerMonitor.
|
protected void |
showLogLevelColorChangeDialog(javax.swing.JMenuItem result,
LogLevel level) |
protected void |
showPropertiesDialog(java.lang.String title) |
protected void |
sortByNDC() |
protected void |
trackTableScrollPane()
已过时。
tracking is now done automatically.
|
protected void |
updateFrameSize() |
protected void |
updateMRUList()
Removes old file list and creates a new file list
with the updated MRU list.
|
protected void |
updateStatusLabel() |
protected java.util.List |
updateView() |
public static final java.lang.String DETAILED_VIEW
protected javax.swing.JFrame _logMonitorFrame
protected int _logMonitorFrameWidth
protected int _logMonitorFrameHeight
protected LogTable _table
protected CategoryExplorerTree _categoryExplorerTree
protected java.lang.String _searchText
protected java.lang.String _NDCTextFilter
protected LogLevel _leastSevereDisplayedLogLevel
protected javax.swing.JScrollPane _logTableScrollPane
protected javax.swing.JLabel _statusLabel
protected java.lang.Object _lock
protected javax.swing.JComboBox _fontSizeCombo
protected int _fontSize
protected java.lang.String _fontName
protected java.lang.String _currentView
protected boolean _loadSystemFonts
protected boolean _trackTableScrollPane
protected java.awt.Dimension _lastTableViewportSize
protected boolean _callSystemExitOnClose
protected java.util.List _displayedLogBrokerProperties
protected java.util.Map _logLevelMenuItems
protected java.util.Map _logTableColumnMenuItems
protected java.util.List _levels
protected java.util.List _columns
protected boolean _isDisposed
protected ConfigurationManager _configurationManager
protected MRUFileManager _mruFileManager
protected java.io.File _fileLocation
public LogBrokerMonitor(java.util.List logLevels)
public void show(int delay)
public void show()
public void dispose()
public void hide()
public DateFormatManager getDateFormatManager()
public void setDateFormatManager(DateFormatManager dfm)
public boolean getCallSystemExitOnClose()
public void setCallSystemExitOnClose(boolean callSystemExitOnClose)
public void addMessage(LogRecord lr)
public void setMaxNumberOfLogRecords(int maxNumberOfLogRecords)
public javax.swing.JFrame getBaseFrame()
public void setTitle(java.lang.String title)
public void setFrameSize(int width, int height)
public void setFontSize(int fontSize)
public void addDisplayedProperty(java.lang.Object messageLine)
public java.util.Map getLogLevelMenuItems()
public java.util.Map getLogTableColumnMenuItems()
public javax.swing.JCheckBoxMenuItem getTableColumnMenuItem(LogTableColumn column)
public CategoryExplorerTree getCategoryExplorerTree()
public java.lang.String getNDCTextFilter()
public void setNDCLogRecordFilter(java.lang.String textFilter)
protected void setSearchText(java.lang.String text)
protected void setNDCTextFilter(java.lang.String text)
protected void sortByNDC()
protected void findSearchText()
protected int getFirstSelectedRow()
protected void selectRow(int foundRow)
protected int findRecord(int startRow, java.lang.String searchText, java.util.List records)
protected boolean matches(LogRecord record, java.lang.String text)
protected void refresh(javax.swing.JTextArea textArea)
protected void refreshDetailTextArea()
protected void clearDetailTextArea()
protected int changeFontSizeCombo(javax.swing.JComboBox box, int requestedSize)
protected void setFontSizeSilently(int fontSize)
protected void setFontSize(java.awt.Component component, int fontSize)
protected void updateFrameSize()
protected void pause(int millis)
protected void initComponents()
protected LogRecordFilter createLogRecordFilter()
protected LogRecordFilter createNDCLogRecordFilter(java.lang.String text)
protected void updateStatusLabel()
protected java.lang.String getRecordsDisplayedMessage()
protected void addTableModelProperties()
protected java.lang.String getStatusText(int displayedRows, int totalRows)
protected void makeLogTableListenToCategoryExplorer()
protected javax.swing.JPanel createStatusArea()
protected javax.swing.JTextArea createDetailTextArea()
protected javax.swing.JMenuBar createMenuBar()
protected javax.swing.JMenu createLogLevelMenu()
protected javax.swing.JMenuItem createAllLogLevelsMenuItem()
protected javax.swing.JMenuItem createNoLogLevelsMenuItem()
protected javax.swing.JMenu createLogLevelColorMenu()
protected javax.swing.JMenuItem createResetLogLevelColorMenuItem()
protected void selectAllLogLevels(boolean selected)
protected javax.swing.JCheckBoxMenuItem getMenuItem(LogLevel level)
protected javax.swing.JMenuItem createSubMenuItem(LogLevel level)
protected void showLogLevelColorChangeDialog(javax.swing.JMenuItem result, LogLevel level)
protected javax.swing.JCheckBoxMenuItem createMenuItem(LogLevel level)
protected javax.swing.JMenu createViewMenu()
protected javax.swing.JCheckBoxMenuItem getLogTableColumnMenuItem(LogTableColumn column)
protected javax.swing.JCheckBoxMenuItem createLogTableColumnMenuItem(LogTableColumn column)
protected java.util.List updateView()
protected javax.swing.JMenuItem createAllLogTableColumnsMenuItem()
protected javax.swing.JMenuItem createNoLogTableColumnsMenuItem()
protected void selectAllLogTableColumns(boolean selected)
protected javax.swing.JMenu createFileMenu()
protected javax.swing.JMenuItem createOpenMI()
protected javax.swing.JMenuItem createOpenURLMI()
protected javax.swing.JMenuItem createCloseMI()
protected void createMRUFileListMI(javax.swing.JMenu menu)
protected javax.swing.JMenuItem createExitMI()
protected javax.swing.JMenu createConfigureMenu()
protected javax.swing.JMenuItem createConfigureSave()
protected javax.swing.JMenuItem createConfigureReset()
protected javax.swing.JMenuItem createConfigureMaxRecords()
protected void saveConfiguration()
protected void resetConfiguration()
protected void setMaxRecordConfiguration()
protected javax.swing.JMenu createHelpMenu()
protected javax.swing.JMenuItem createHelpProperties()
protected void showPropertiesDialog(java.lang.String title)
protected javax.swing.JMenu createEditMenu()
protected javax.swing.JMenuItem createEditFindNextMI()
protected javax.swing.JMenuItem createEditFindMI()
protected javax.swing.JMenuItem createEditSortNDCMI()
protected javax.swing.JMenuItem createEditRestoreAllNDCMI()
protected javax.swing.JToolBar createToolBar()
protected void setView(java.lang.String viewString, LogTable table)
protected javax.swing.JComboBox createLogLevelCombo()
protected void setLeastSevereDisplayedLogLevel(LogLevel level)
protected void trackTableScrollPane()
protected void centerFrame(javax.swing.JFrame frame)
protected void requestOpen()
protected void requestOpenURL()
protected void updateMRUList()
protected void requestClose()
protected void requestOpenMRU(java.awt.event.ActionEvent e)
protected void requestExit()
protected void closeAfterConfirm()
protected java.util.Iterator getLogLevels()
protected java.util.Iterator getLogTableColumns()
protected boolean loadLogFile(java.io.File file)
protected boolean loadLogFile(java.net.URL url)