當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。