示例#1
0
 @Test
 public void checkVisible() {
   ListBox listBox = new ListBox(false);
   Assert.assertEquals(true, listBox.isVisible());
   listBox.setVisible(false);
   Assert.assertEquals(false, listBox.isVisible());
 }
示例#2
0
 @UiHandler("sourceLink")
 void onClickSourceLink(ClickEvent e) {
   Place currentPlace = placeController.getWhere();
   if (currentPlace instanceof PlaceWithSources) {
     PlaceWithSources<?> place = (PlaceWithSources<?>) currentPlace;
     // we were on the example page, we create a new place from the previous one and go to this new
     // place
     placeController.goTo(
         place.createPlace(
             place.getSourceFilename(),
             sourceList.isVisible() && sourceList.getSelectedIndex() > 0));
   }
 }