jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.MenuBar.propertyChange ( PropertyChangeEvent  event)

Handler for events fired when UI properties change.

Parameters
[in]eventthe property change event

Definition at line 377 of file MenuBar.java.

References org.libcsdbg.jtracer.MenuBar.renderItem().

378  {
379  try {
380  String key = event.getPropertyName();
381  Object val = event.getNewValue();
382 
383  for (int i = getMenuCount() - 1; i >= 0; i--) {
384  JMenu menu = getMenu(i);
385 
386  for (int j = menu.getMenuComponentCount() - 1; j >= 0; j--) {
387  Component c = menu.getMenuComponent(j);
388  if (c instanceof JMenuItem)
389  renderItem(c, i, j, key, val);
390  }
391  }
392  }
393 
394  catch (Throwable t) {
395  Registry.debug(t);
396  }
397  }
void renderItem(Component c, int menu, int i, String key, Object val)
Update the UI state of a single menu item.
Definition: MenuBar.java:307

+ Here is the call graph for this function: