AccessLogPanel(PreferencesExt p) { super(p, true); logTable = new AccessLogTable(startDateField, endDateField, p, dnsCache); logTable.addPropertyChangeListener( new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if (e.getPropertyName().equals("UrlDump")) { String path = (String) e.getNewValue(); gotoUrlDump(path); } } }); AbstractAction allAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { resetLogs(); } }; BAMutil.setActionProperties(allAction, "Refresh", "show All Logs", false, 'A', -1); BAMutil.addActionToContainer(topPanel, allAction); AbstractAction dnsAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { showDNS(); } }; BAMutil.setActionProperties(dnsAction, "Dataset", "lookup DNS", false, 'D', -1); BAMutil.addActionToContainer(topPanel, dnsAction); add(logTable, BorderLayout.CENTER); }
@Override void showLogs() { LogReader.LogFilter filter = null; if (removeTestReq) filter = new LogReader.IpFilter(filterIP.split(","), filter); if (problemsOnly) filter = new LogReader.ErrorOnlyFilter(filter); logTable.showLogs(filter); }
void save() { logTable.exit(); super.save(); }
void showDNS() { logTable.showDNS(); }
void resetLogs() { logTable.resetLogs(); }
void showInfo(Formatter f) { logTable.showInfo(f); }
@Override void setLocalManager(LogLocalManager manager) { logTable.setLocalManager(manager); }