当前位置: 首页>>代码示例>>Java>>正文


Java Anchor.setVisible方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.Anchor.setVisible方法的典型用法代码示例。如果您正苦于以下问题:Java Anchor.setVisible方法的具体用法?Java Anchor.setVisible怎么用?Java Anchor.setVisible使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.Anchor的用法示例。


在下文中一共展示了Anchor.setVisible方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: UniTimeDialogBox

import com.google.gwt.user.client.ui.Anchor; //导入方法依赖的package包/类
public UniTimeDialogBox(boolean autoHide, boolean modal) {
      super(autoHide, modal);
      
setAnimationEnabled(true);
setGlassEnabled(true);
	
      iContainer = new FlowPanel();
      iContainer.addStyleName("dialogContainer");
      
      iClose = new Anchor();
  	iClose.setTitle(MESSAGES.hintCloseDialog());
      iClose.setStyleName("close");
      iClose.addClickHandler(new ClickHandler() {
      	@Override
          public void onClick(ClickEvent event) {
              onCloseClick(event);
          }
      });
      iClose.setVisible(autoHide);

      iControls = new FlowPanel();
      iControls.setStyleName("dialogControls");        
      iControls.add(iClose);
  }
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:25,代码来源:UniTimeDialogBox.java

示例2: AlertStackWidget

import com.google.gwt.user.client.ui.Anchor; //导入方法依赖的package包/类
public AlertStackWidget() {
	alertWidgets = new ArrayList<AlertWidget>();
	VerticalPanel rootPanel = new VerticalPanel();
	rootPanel.setWidth("100%");
	alertsPanel = new VerticalPanel();
	alertsPanel.setWidth("100%");
	rootPanel.add(alertsPanel);
	showHideAnchor = new Anchor(
			I18nUtils.tr(visible ? "hide.alerts" : "show.alerts"));
	showHideAnchor.addClickHandler(new ClickHandler() {
		@Override
		public void onClick(ClickEvent event) {
			visible = !visible;
			alertsPanel.setVisible(visible);
			showHideAnchor.setText(
					I18nUtils.tr(visible ? "hide.alerts" : "show.alerts"));
		}
	});
	showHideAnchor.addStyleName("alert-showhide-link");
	showHideAnchor.setVisible(false);
	rootPanel.add(showHideAnchor);
	initWidget(rootPanel);
}
 
开发者ID:mecatran,项目名称:OpenTripPlanner-client-gwt,代码行数:24,代码来源:AlertStackWidget.java

示例3: TopBar

import com.google.gwt.user.client.ui.Anchor; //导入方法依赖的package包/类
public TopBar()
    {
        horizontalPanel=new HorizontalPanel();
        horizontalPanel.setStyleName("topBar");
        initWidget(horizontalPanel);
        horizontalPanel.setWidth("100%");
        setHorizontalPanelSpacing(6);
//        horizontalPanel.setStyleName(css.paddedHorizontalPanel());
        
        logoutAnchor = new Anchor("Logout");
        logoutAnchor.setWordWrap(false);
        logoutAnchor.setVisible(false);
        horizontalPanel.add(logoutAnchor);
        
        lblWelcome=new HTML();
        horizontalPanel.add(lblWelcome);
    }
 
开发者ID:muquit,项目名称:gwtoauthlogindemo,代码行数:18,代码来源:TopBar.java

示例4: HiddenField

import com.google.gwt.user.client.ui.Anchor; //导入方法依赖的package包/类
/**
 * This is the normal construct used for creating or subclassing TextBoxFieldWidget
 * @param def the fieldDef determines the type of field to create
 */
public HiddenField(FieldDef def) {
    value = def.getDefaultValueAsString();
    fieldDef = def;
    label = new FieldLabel.Immutable() {
                public String getHtml() {
                    return "";
                }
            };
    holder = new Anchor("");
    holder.setVisible(false);
    initWidget(holder);
}
 
开发者ID:lsst,项目名称:firefly,代码行数:17,代码来源:HiddenField.java

示例5: buildContentView

import com.google.gwt.user.client.ui.Anchor; //导入方法依赖的package包/类
private Widget buildContentView() {
	VNavigationView contentView = new VNavigationView();
	contentView.setHeight("100%");
	contentView.setWidth("100%");
	VNavigationBar navigationBar = new VNavigationBar();
	navigationBar.setCaption("Wound Management App");
	navigationBar.setWidth("100%");
	
	contentView.setNavigationBar(navigationBar);
	
	VVerticalLayout panel = new VVerticalLayout();
	panel.setWidth("100%");
	panel.setStyleName("v-csslayout-margin-left v-csslayout-margin-right");
	
	offlineOnlineIndicator = new VCssLayout();
	offlineOnlineIndicator.addStyleName("offlineindicator");
	
	VCssLayout indicatorWrapper = new VCssLayout();
	indicatorWrapper.setWidth("100%");
	
	VImage image = new VImage();
	image.setAltText("Conection offline");
	image.setResource(Resources.INSTANCE.offline());
	
	panel.add(image);
	
	onlineStatusLabel = new Label("Connection offline");
       indicatorWrapper.add(onlineStatusLabel);
       reconnectLabel = new Anchor("Reconnect", Window.Location.getHref());
       reconnectLabel.setVisible(false);
       indicatorWrapper.add(reconnectLabel);
       offlineOnlineIndicator.add(indicatorWrapper);
       panel.add(offlineOnlineIndicator);
       
       contentView.setContent(panel);
       return contentView;
}
 
开发者ID:fau-amos-2014-team-2,项目名称:root,代码行数:38,代码来源:CreateWoundDescriptionViewWidget.java

示例6: setVisible

import com.google.gwt.user.client.ui.Anchor; //导入方法依赖的package包/类
public void setVisible(boolean visible, String text){
	for (Anchor link : linkMap.keySet()){
		if (linkMap.get(link).equals(text))
			link.setVisible(visible);
	}
}
 
开发者ID:Rise-Vision,项目名称:rva,代码行数:7,代码来源:MenuWidget.java


注:本文中的com.google.gwt.user.client.ui.Anchor.setVisible方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。