Java 类com.google.gwt.user.client.ui.HasVisibility 实例源码

项目:qafe-platform    文件:ToggleExecute.java   
private void toggle(ToggleGVO toggleGVO, WindowActivity activity) {
    List<BuiltInComponentGVO> builtInComponents = toggleGVO.getComponents();
    if (builtInComponents == null) {
        return;
    }
    for (BuiltInComponentGVO builtInComponentGVO : builtInComponents) {
        List<UIObject> widgets = getWidgets(builtInComponentGVO, activity);         
        if (QAMLUtil.isEmpty(widgets)) {
            continue;
        }
        for (UIObject widget : widgets) {
            if (widget instanceof HasVisibility) {
                HasVisibility hasVisibility = (HasVisibility)widget;
                boolean visible = hasVisibility.isVisible();
                hasVisibility.setVisible(!visible);
            }
        }
    }
}
项目:arondor-common-reflection    文件:ClassTreePresenter.java   
public ClassTreePresenter(GWTReflectionServiceAsync rpcService, ObjectConfigurationMap objectConfigurationMap,
        String baseClassName, Display view)
{
    this.display = view;

    setRootNodePresenter(new ClassTreeNodePresenter(rpcService, objectConfigurationMap, baseClassName,
            display.createRootView(baseClassName)));

    if (getRootNodePresenter().getDisplay() instanceof HasVisibility)
    {
        ((HasVisibility) getRootNodePresenter().getDisplay()).setVisible(true);
    }
    bind();
}
项目:gwt-supereventbus    文件:FilteringTest.java   
@Override
public boolean accepts(HasVisibility handler, Object event) {
  return handler.isVisible();
}