public class ConfigurationManager extends Object
ConfigurationManager handles the storage and retrival of the state of the CategoryExplorer
Modifier and Type | Field and Description |
---|---|
private LogBrokerMonitor |
_monitor |
private LogTable |
_table |
private static String |
BLUE |
private static String |
CATEGORY |
private static String |
COLORLEVEL |
private static String |
COLUMN |
private static String |
CONFIG_FILE_NAME |
private static String |
EXPANDED |
private static String |
FIRST_CATEGORY_NAME |
private static String |
GREEN |
private static String |
LEVEL |
private static String |
NAME |
private static String |
NDCTEXTFILTER |
private static String |
PATH |
private static String |
RED |
private static String |
SELECTED |
Constructor and Description |
---|
ConfigurationManager(LogBrokerMonitor monitor,
LogTable table) |
private static final String CONFIG_FILE_NAME
private static final String NAME
private static final String PATH
private static final String SELECTED
private static final String EXPANDED
private static final String CATEGORY
private static final String FIRST_CATEGORY_NAME
private static final String LEVEL
private static final String COLORLEVEL
private static final String RED
private static final String GREEN
private static final String BLUE
private static final String COLUMN
private static final String NDCTEXTFILTER
private LogBrokerMonitor _monitor
public ConfigurationManager(LogBrokerMonitor monitor, LogTable table)
public void save()
public void reset()
public static String treePathToString(TreePath path)
protected void load()
protected void processRecordFilter(Document doc)
protected void processCategories(Document doc)
protected void processLogLevels(Document doc)
protected void processLogLevelColors(Document doc)
protected void processLogTableColumns(Document doc)
protected String getValue(NamedNodeMap map, String attr)
protected void collapseTree()
protected void selectAllNodes()
protected void deleteConfigurationFile()
protected String getFilename()
private void processConfigurationNode(CategoryNode node, StringBuffer xml)
private void processLogLevels(Map logLevelMenuItems, StringBuffer xml)
private void processLogLevelColors(Map logLevelMenuItems, Map logLevelColors, StringBuffer xml)
private void processLogTableColumns(List logTableColumnMenuItems, StringBuffer xml)
private void processLogRecordFilter(String text, StringBuffer xml)
private void openXMLDocument(StringBuffer xml)
private void openConfigurationXML(StringBuffer xml)
private void closeConfigurationXML(StringBuffer xml)
private void exportXMLElement(CategoryNode node, TreePath path, StringBuffer xml)
private void exportLogLevelXMLElement(String label, boolean selected, StringBuffer xml)
private void exportLogLevelColorXMLElement(String label, Color color, StringBuffer xml)
private void exportLogTableColumnXMLElement(String label, boolean selected, StringBuffer xml)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses