Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public void removeAllContentPage() {
  2.         Component win = content.getFellowIfAny("employee");
  3.         if (win != null) {
  4.             content.removeChild(win);
  5.             return;
  6.         }
  7.         win = content.getFellowIfAny("person");
  8.         if (win != null) {
  9.             content.removeChild(win);
  10.             return;
  11.         }
  12.         win = content.getFellowIfAny("company");
  13.         if (win != null) {
  14.             content.removeChild(win);
  15.             return;
  16.         }
  17.         win = content.getFellowIfAny("result");
  18.         if (win != null) {
  19.             content.removeChild(win);
  20.             return;
  21.         }
  22.     }