|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.lf5.viewer.LogBrokerMonitor
public class LogBrokerMonitor
LogBrokerMonitor .
Constructor Summary | |
---|---|
LogBrokerMonitor(List logLevels)
Construct a LogBrokerMonitor. |
Method Summary | |
---|---|
void |
addDisplayedProperty(Object messageLine)
|
void |
addMessage(LogRecord lr)
Add a log record message to be displayed in the LogTable. |
protected void |
addTableModelProperties()
|
protected void |
centerFrame(JFrame frame)
|
protected int |
changeFontSizeCombo(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 JMenuItem |
createAllLogLevelsMenuItem()
|
protected JMenuItem |
createAllLogTableColumnsMenuItem()
|
protected JMenuItem |
createCloseMI()
|
protected JMenuItem |
createConfigureMaxRecords()
|
protected JMenu |
createConfigureMenu()
|
protected JMenuItem |
createConfigureReset()
|
protected JMenuItem |
createConfigureSave()
|
protected JTextArea |
createDetailTextArea()
|
protected JMenuItem |
createEditFindMI()
|
protected JMenuItem |
createEditFindNextMI()
|
protected JMenu |
createEditMenu()
|
protected JMenuItem |
createEditRestoreAllNDCMI()
|
protected JMenuItem |
createEditSortNDCMI()
|
protected JMenuItem |
createExitMI()
|
protected JMenu |
createFileMenu()
|
protected JMenu |
createHelpMenu()
|
protected JMenuItem |
createHelpProperties()
|
protected JMenu |
createLogLevelColorMenu()
|
protected JComboBox |
createLogLevelCombo()
|
protected JMenu |
createLogLevelMenu()
|
protected LogRecordFilter |
createLogRecordFilter()
|
protected JCheckBoxMenuItem |
createLogTableColumnMenuItem(LogTableColumn column)
|
protected JMenuBar |
createMenuBar()
|
protected JCheckBoxMenuItem |
createMenuItem(LogLevel level)
|
protected void |
createMRUFileListMI(JMenu menu)
Creates a Most Recently Used file list to be displayed in the File menu |
protected LogRecordFilter |
createNDCLogRecordFilter(String text)
|
protected JMenuItem |
createNoLogLevelsMenuItem()
|
protected JMenuItem |
createNoLogTableColumnsMenuItem()
|
protected JMenuItem |
createOpenMI()
Menu item added to allow log files to be opened with the LF5 GUI. |
protected JMenuItem |
createOpenURLMI()
Menu item added to allow log files loaded from a URL to be opened by the LF5 GUI. |
protected JMenuItem |
createResetLogLevelColorMenuItem()
|
protected JPanel |
createStatusArea()
|
protected JMenuItem |
createSubMenuItem(LogLevel level)
|
protected JToolBar |
createToolBar()
|
protected JMenu |
createViewMenu()
|
void |
dispose()
Dispose of the frame for the LogBrokerMonitor. |
protected int |
findRecord(int startRow,
String searchText,
List records)
|
protected void |
findSearchText()
|
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()
|
Map |
getLogLevelMenuItems()
|
protected Iterator |
getLogLevels()
|
protected JCheckBoxMenuItem |
getLogTableColumnMenuItem(LogTableColumn column)
|
Map |
getLogTableColumnMenuItems()
|
protected Iterator |
getLogTableColumns()
|
protected JCheckBoxMenuItem |
getMenuItem(LogLevel level)
|
String |
getNDCTextFilter()
|
protected String |
getRecordsDisplayedMessage()
|
protected String |
getStatusText(int displayedRows,
int totalRows)
|
JCheckBoxMenuItem |
getTableColumnMenuItem(LogTableColumn column)
|
void |
hide()
Hide the frame for the LogBrokerMonitor. |
protected void |
initComponents()
|
protected boolean |
loadLogFile(File file)
Loads and parses a log file. |
protected boolean |
loadLogFile(URL url)
Loads a parses a log file running on a server. |
protected void |
makeLogTableListenToCategoryExplorer()
|
protected boolean |
matches(LogRecord record,
String text)
Check to see if the any records contain the search string. |
protected void |
pause(int millis)
|
protected void |
refresh(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(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(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(String textFilter)
|
protected void |
setNDCTextFilter(String text)
|
protected void |
setSearchText(String text)
|
void |
setTitle(String title)
|
protected void |
setView(String viewString,
LogTable table)
|
void |
show()
|
void |
show(int delay)
Show the frame for the LogBrokerMonitor. |
protected void |
showLogLevelColorChangeDialog(JMenuItem result,
LogLevel level)
|
protected void |
showPropertiesDialog(String title)
|
protected void |
sortByNDC()
|
protected void |
trackTableScrollPane()
Deprecated. 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 List |
updateView()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DETAILED_VIEW
protected JFrame _logMonitorFrame
protected int _logMonitorFrameWidth
protected int _logMonitorFrameHeight
protected LogTable _table
protected CategoryExplorerTree _categoryExplorerTree
protected String _searchText
protected String _NDCTextFilter
protected LogLevel _leastSevereDisplayedLogLevel
protected JScrollPane _logTableScrollPane
protected JLabel _statusLabel
protected Object _lock
protected JComboBox _fontSizeCombo
protected int _fontSize
protected String _fontName
protected String _currentView
protected boolean _loadSystemFonts
protected boolean _trackTableScrollPane
protected Dimension _lastTableViewportSize
protected boolean _callSystemExitOnClose
protected List _displayedLogBrokerProperties
protected Map _logLevelMenuItems
protected Map _logTableColumnMenuItems
protected List _levels
protected List _columns
protected boolean _isDisposed
protected ConfigurationManager _configurationManager
protected MRUFileManager _mruFileManager
protected File _fileLocation
Constructor Detail |
---|
public LogBrokerMonitor(List logLevels)
Method Detail |
---|
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 JFrame getBaseFrame()
public void setTitle(String title)
public void setFrameSize(int width, int height)
public void setFontSize(int fontSize)
public void addDisplayedProperty(Object messageLine)
public Map getLogLevelMenuItems()
public Map getLogTableColumnMenuItems()
public JCheckBoxMenuItem getTableColumnMenuItem(LogTableColumn column)
public CategoryExplorerTree getCategoryExplorerTree()
public String getNDCTextFilter()
public void setNDCLogRecordFilter(String textFilter)
protected void setSearchText(String text)
protected void setNDCTextFilter(String text)
protected void sortByNDC()
protected void findSearchText()
protected int getFirstSelectedRow()
protected void selectRow(int foundRow)
protected int findRecord(int startRow, String searchText, List records)
protected boolean matches(LogRecord record, String text)
protected void refresh(JTextArea textArea)
protected void refreshDetailTextArea()
protected void clearDetailTextArea()
protected int changeFontSizeCombo(JComboBox box, int requestedSize)
protected void setFontSizeSilently(int fontSize)
protected void setFontSize(Component component, int fontSize)
protected void updateFrameSize()
protected void pause(int millis)
protected void initComponents()
protected LogRecordFilter createLogRecordFilter()
protected LogRecordFilter createNDCLogRecordFilter(String text)
protected void updateStatusLabel()
protected String getRecordsDisplayedMessage()
protected void addTableModelProperties()
protected String getStatusText(int displayedRows, int totalRows)
protected void makeLogTableListenToCategoryExplorer()
protected JPanel createStatusArea()
protected JTextArea createDetailTextArea()
protected JMenuBar createMenuBar()
protected JMenu createLogLevelMenu()
protected JMenuItem createAllLogLevelsMenuItem()
protected JMenuItem createNoLogLevelsMenuItem()
protected JMenu createLogLevelColorMenu()
protected JMenuItem createResetLogLevelColorMenuItem()
protected void selectAllLogLevels(boolean selected)
protected JCheckBoxMenuItem getMenuItem(LogLevel level)
protected JMenuItem createSubMenuItem(LogLevel level)
protected void showLogLevelColorChangeDialog(JMenuItem result, LogLevel level)
protected JCheckBoxMenuItem createMenuItem(LogLevel level)
protected JMenu createViewMenu()
protected JCheckBoxMenuItem getLogTableColumnMenuItem(LogTableColumn column)
protected JCheckBoxMenuItem createLogTableColumnMenuItem(LogTableColumn column)
protected List updateView()
protected JMenuItem createAllLogTableColumnsMenuItem()
protected JMenuItem createNoLogTableColumnsMenuItem()
protected void selectAllLogTableColumns(boolean selected)
protected JMenu createFileMenu()
protected JMenuItem createOpenMI()
protected JMenuItem createOpenURLMI()
protected JMenuItem createCloseMI()
protected void createMRUFileListMI(JMenu menu)
protected JMenuItem createExitMI()
protected JMenu createConfigureMenu()
protected JMenuItem createConfigureSave()
protected JMenuItem createConfigureReset()
protected JMenuItem createConfigureMaxRecords()
protected void saveConfiguration()
protected void resetConfiguration()
protected void setMaxRecordConfiguration()
protected JMenu createHelpMenu()
protected JMenuItem createHelpProperties()
protected void showPropertiesDialog(String title)
protected JMenu createEditMenu()
protected JMenuItem createEditFindNextMI()
protected JMenuItem createEditFindMI()
protected JMenuItem createEditSortNDCMI()
protected JMenuItem createEditRestoreAllNDCMI()
protected JToolBar createToolBar()
protected void setView(String viewString, LogTable table)
protected JComboBox createLogLevelCombo()
protected void setLeastSevereDisplayedLogLevel(LogLevel level)
protected void trackTableScrollPane()
protected void centerFrame(JFrame frame)
protected void requestOpen()
protected void requestOpenURL()
protected void updateMRUList()
protected void requestClose()
protected void requestOpenMRU(ActionEvent e)
protected void requestExit()
protected void closeAfterConfirm()
protected Iterator getLogLevels()
protected Iterator getLogTableColumns()
protected boolean loadLogFile(File file)
protected boolean loadLogFile(URL url)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |