jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.ToolBar.renderTool ( Component  c,
int  index,
String  key,
Object  val 
)
private

Update the UI state of a single tool.

Parameters
[in]cthe tool
[in]indexthe tool index
[in]keythe related UI property name
[in]valthe UI property value

Definition at line 98 of file ToolBar.java.

Referenced by org.libcsdbg.jtracer.ToolBar.propertyChange().

99  {
100  Boolean how = (Boolean) val;
101 
102  if (key.equals("isServing"))
103  switch (index) {
104  case 0:
105  c.setEnabled(!how);
106  break;
107 
108  case 1:
109  case 2:
110  c.setEnabled(how);
111  }
112 
113  else if (key.equals("hasClients"))
114  if (index >= 4 && index <= 13)
115  c.setEnabled(how);
116  }

+ Here is the caller graph for this function: