public class InspectorLog4JMonitor extends Object implements JInspectorPanel, Log4JMonitor
Constructor and Description |
---|
InspectorLog4JMonitor(JComponent content) |
Modifier and Type | Method and Description |
---|---|
void |
activate(Inspector inspector) |
<T extends Inspector> |
addInspector(T inspector) |
JLogList |
addLogArea(String title,
String loggerName,
boolean isDefault) |
void |
deactivate() |
JComponent |
getComponent() |
Inspector |
getCurrentInspector() |
JLogList |
getCurrentLog() |
int |
getDividerLocation() |
Inspector |
getInspector(String inspectorId) |
Inspector |
getInspectorByTitle(String title) |
List<Inspector> |
getInspectors() |
JLogList |
getLogArea(String title) |
boolean |
hasLogArea(String loggerName) |
void |
logEvent(Object msg) |
void |
release() |
void |
removeInspector(Inspector inspector) |
boolean |
removeLogArea(String loggerName) |
void |
setContentComponent(JComponent component) |
void |
setCurrentInspector(String s) |
void |
setCurrentLog(JLogList lastLog) |
void |
setDefaultDividerLocation(float v) |
void |
setDividerLocation(int i) |
void |
setInspectorVisible(Inspector inspector,
boolean b) |
void |
setResetDividerLocation() |
void |
setResizeWeight(double v) |
public InspectorLog4JMonitor(JComponent content)
public JLogList addLogArea(String title, String loggerName, boolean isDefault)
addLogArea
in interface Log4JMonitor
public void logEvent(Object msg)
logEvent
in interface Log4JMonitor
public JLogList getLogArea(String title)
getLogArea
in interface Log4JMonitor
public boolean hasLogArea(String loggerName)
hasLogArea
in interface Log4JMonitor
public JComponent getComponent()
getComponent
in interface JInspectorPanel
getComponent
in interface Log4JMonitor
public Inspector getCurrentInspector()
getCurrentInspector
in interface JInspectorPanel
public Inspector getInspectorByTitle(String title)
getInspectorByTitle
in interface JInspectorPanel
public List<Inspector> getInspectors()
getInspectors
in interface JInspectorPanel
public void setCurrentInspector(String s)
setCurrentInspector
in interface JInspectorPanel
public void setDefaultDividerLocation(float v)
setDefaultDividerLocation
in interface JInspectorPanel
public void setDividerLocation(int i)
setDividerLocation
in interface JInspectorPanel
public void setResizeWeight(double v)
setResizeWeight
in interface JInspectorPanel
public void setCurrentLog(JLogList lastLog)
setCurrentLog
in interface Log4JMonitor
public void activate(Inspector inspector)
activate
in interface JInspectorPanel
public <T extends Inspector> T addInspector(T inspector)
addInspector
in interface JInspectorPanel
public void deactivate()
deactivate
in interface JInspectorPanel
public void removeInspector(Inspector inspector)
removeInspector
in interface JInspectorPanel
public JLogList getCurrentLog()
getCurrentLog
in interface Log4JMonitor
public boolean removeLogArea(String loggerName)
removeLogArea
in interface Log4JMonitor
public int getDividerLocation()
getDividerLocation
in interface JInspectorPanel
public void setContentComponent(JComponent component)
setContentComponent
in interface JInspectorPanel
public void release()
release
in interface JInspectorPanel
public void setResetDividerLocation()
setResetDividerLocation
in interface JInspectorPanel
public void setInspectorVisible(Inspector inspector, boolean b)
setInspectorVisible
in interface JInspectorPanel
public Inspector getInspector(String inspectorId)
getInspector
in interface JInspectorPanel
Copyright © 2019. All Rights Reserved.