本文整理汇总了Java中com.google.gwt.user.client.ui.HasVisibility类的典型用法代码示例。如果您正苦于以下问题:Java HasVisibility类的具体用法?Java HasVisibility怎么用?Java HasVisibility使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HasVisibility类属于com.google.gwt.user.client.ui包,在下文中一共展示了HasVisibility类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: toggle
import com.google.gwt.user.client.ui.HasVisibility; //导入依赖的package包/类
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);
}
}
}
}
示例2: ClassTreePresenter
import com.google.gwt.user.client.ui.HasVisibility; //导入依赖的package包/类
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();
}
示例3: accepts
import com.google.gwt.user.client.ui.HasVisibility; //导入依赖的package包/类
@Override
public boolean accepts(HasVisibility handler, Object event) {
return handler.isVisible();
}