7 package org.libcsdbg.jtracer;
9 import java.beans.PropertyChangeEvent;
10 import java.beans.PropertyChangeListener;
12 import java.awt.event.ActionListener;
13 import java.awt.Insets;
14 import java.awt.Component;
16 import javax.swing.JToolBar;
23 public class TraceTools extends JToolBar implements PropertyChangeListener
41 Registry conf = Registry.getCurrent();
47 setName((String) conf.
get(
"generic",
"name") +
" tools");
80 String nm = cmd.toLowerCase().replace(
' ',
'_') +
"24.png";
82 retval.setMargin(
new Insets(2, 2, 2, 2));
98 private void renderTool(Component c,
int index, String key, Object val)
100 Boolean how = (Boolean) val;
102 if (key.equals(
"isServing"))
113 else if (key.equals(
"hasClients"))
114 if (index >= 4 && index <= 13)
127 String key = event.getPropertyName();
128 Object val = event.getNewValue();
130 for (
int i = getComponentCount() - 1; i >= 0; i--) {
131 Component c = getComponent(i);
137 catch (Throwable t) {
Object get(String section, String key)
Get an entry.