當前位置: 首頁>>代碼示例>>Java>>正文


Java VerticalPanel類代碼示例

本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel類的具體用法?Java VerticalPanel怎麽用?Java VerticalPanel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


VerticalPanel類屬於com.google.gwt.user.client.ui包,在下文中一共展示了VerticalPanel類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createUrlToShare

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private SelectHandler createUrlToShare(final VerticalPanel geoDataContainer) {
	return new SelectHandler() {
		@Override
		public void onSelect(SelectEvent event) {
			urlToShareAnchor.setHref(getHref());
			urlToShareAnchor.setText(
					UIMessages.INSTANCE.seeOtherWindow("GeoWE Project"),
					Direction.LTR);

			urlShared.setText(getHref());
			urlPanel.setVisible(true);
			urlShared.setVisible(true);
		}

		private String getHref() {
			String baseUrl = GWT.getHostPageBaseURL();

			baseUrl += "?projectUrl="
					+ URL.encodeQueryString(urlTextField.getValue());

			return baseUrl;
		}
	};
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:25,代碼來源:OpenProjectDialog.java

示例2: initializeStatusPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private void initializeStatusPanel() {
	String comboWidth = "125px";
	statusPanel = new VerticalPanel();
	StyleInjector.inject(".statusPanelStyle { " + "background: #E0ECF8;"
			+ "border-radius: 5px 10px;" + "opacity: 0.8}");
	statusPanel.setStyleName("statusPanelStyle");

	statusPanel.setSpacing(5);
	statusPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

	initializeLayerCombo(comboWidth);
	initializeEpsgCombo(comboWidth);
	initializeStatusGrid();

	statusPanel.add(new FieldLabel(layerCombo, UIMessages.INSTANCE
			.sbSelectLayerLabel()));
	statusPanel.add(new FieldLabel(epsgCombo, UIMessages.INSTANCE
			.sbEpsgLabel()));
	statusPanel.add(statusGrid);

	statusPanel.setVisible(false);
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:23,代碼來源:StatusPanelWidget.java

示例3: getEmptyPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
public VerticalPanel getEmptyPanel() {
	VerticalPanel geoDataContainer = new VerticalPanel();
	geoDataContainer.setSpacing(5);
	geoDataContainer.setWidth("280px");
	geoDataContainer.setSpacing(5);
	geoDataContainer.add(new Label(UIMessages.INSTANCE
			.createEmptyLayerToolText()));

	createAttributes = new CheckBox();
	createAttributes.setBoxLabel(UIMessages.INSTANCE
			.celtAddAttributesLabel());
	createAttributes.setValue(false);

	geoDataContainer.add(createAttributes);
	return geoDataContainer;
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:17,代碼來源:CreateEmptyLayerTab.java

示例4: getTextPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private VerticalPanel getTextPanel() {
	VerticalPanel geoDataContainer = new VerticalPanel();
	geoDataContainer.setWidth("230px");
	geoDataContainer.setSpacing(5);

	geoDataTextArea = new TextArea();
	geoDataTextArea.setBorders(true);
	geoDataTextArea.setEmptyText(UIMessages.INSTANCE
			.gdidTextAreaEmptyText());
	geoDataTextArea.setWidth(270);
	geoDataTextArea.setHeight(180);
	geoDataContainer.add(new Label(UIMessages.INSTANCE
			.gdidTextAreaTitleLabel()));

	geoDataContainer.add(geoDataTextArea);
	return geoDataContainer;
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:18,代碼來源:GeoDataImportDialog.java

示例5: getTMSPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private VerticalPanel getTMSPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("350px");
	panel.setSpacing(10);

	urlTMSField = new TextField();
	urlTMSField.setTitle(UIMessages.INSTANCE.lrasterdUrlField());
	urlTMSField.setWidth(FIELD_WIDTH);
	urlTMSField.setAllowBlank(false);

	panel.add(urlTMSField);

	nameTMSField = new TextField();
	nameTMSField.setTitle(UIMessages.INSTANCE.lrasterdLayerNameField(""));
	nameTMSField.setAllowBlank(false);
	nameTMSField.setWidth(FIELD_WIDTH);
	panel.add(nameTMSField);

	formatTMSField = new TextField();
	formatTMSField.setTitle(UIMessages.INSTANCE.lrasterdImageFormatField());
	formatTMSField.setAllowBlank(false);
	formatTMSField.setWidth(FIELD_WIDTH);
	panel.add(formatTMSField);

	return panel;
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:27,代碼來源:LoadRasterLayerDialog.java

示例6: GitHubExportDialog

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
public GitHubExportDialog() {
	super();
	this.setHeadingText(UIMessages.INSTANCE.gitHubExportDialogTitle());
	this.getHeader().setIcon(ImageProvider.INSTANCE.github24());
	this.setPredefinedButtons(PredefinedButton.CANCEL);
	this.setPixelSize(350, 350);		
	this.setModal(true);
	this.setHideOnButtonClick(true);
	final VerticalPanel panel = new VerticalPanel();
	panel.add(createAuthenticationPanel());
	panel.add(createRepositoryPanel());
	panel.add(createCommitPanel());	
	add(panel);
	createButton = new TextButton(UIMessages.INSTANCE.gitHubCreateButton());
	updateButton = new TextButton(UIMessages.INSTANCE.gitHubUpdateButton());
			
	getButtonBar().add(createButton);
	getButtonBar().add(updateButton);		
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:20,代碼來源:GitHubExportDialog.java

示例7: createAuthenticationPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private Widget createAuthenticationPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.getElement().getStyle().setBackgroundColor("#E0ECF8");
	panel.setWidth("350px");		
	panel.setSpacing(10);

	userNameField = new TextField();
	userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
	userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
	userNameField.setWidth(FIELD_WIDTH);
	panel.add(userNameField);

	passwordField = new PasswordField();		
	passwordField.setTitle(UIMessages.INSTANCE.gitHubPasswordField());
	passwordField.setEmptyText(UIMessages.INSTANCE.gitHubPasswordField());
	passwordField.setWidth(FIELD_WIDTH);
	panel.add(passwordField);
	
	return panel;
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:21,代碼來源:GitHubExportDialog.java

示例8: createCommitPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private Widget createCommitPanel() {
	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("350px");		
	panel.setSpacing(10);				
	
	fileNameField = new TextField();
	fileNameField.setTitle(UIMessages.INSTANCE.gitHubFileNameField());
	fileNameField.setEmptyText(UIMessages.INSTANCE.gitHubFileNameField());
	fileNameField.setWidth(FIELD_WIDTH);
	panel.add(fileNameField);
			
	messageField = new TextField();
	messageField.setTitle(UIMessages.INSTANCE.gitHubMessageCommitField());
	messageField.setEmptyText(UIMessages.INSTANCE.gitHubMessageCommitField());
	messageField.setWidth(FIELD_WIDTH);
	panel.add(messageField);

	return panel;
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:20,代碼來源:GitHubExportDialog.java

示例9: getFoot

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private VerticalPanel getFoot() {
	slider.setWidth("290px");
	slider.disable();
	slider.setIncrement(1);

	slider.addValueChangeHandler(new ValueChangeHandler<Integer>() {

		@Override
		public void onValueChange(final ValueChangeEvent<Integer> event) {
			final Layer layer = getSelectedLayer(getSelectedTabName());
			layer.setOpacity((float) (event.getValue().intValue() / 100.0));
		}

	});

	final VerticalPanel panel = new VerticalPanel();
	panel.setWidth("300px");
	panel.addStyleName(ThemeStyles.get().style().borderTop());
	panel.add(new HTML(UIMessages.INSTANCE.lmOpacityHtmlLabel()));
	panel.add(slider);

	panel.add(statusBar);
	return panel;
}
 
開發者ID:geowe,項目名稱:sig-seguimiento-vehiculos,代碼行數:25,代碼來源:LayerManagerWidget.java

示例10: upgradeWarnDialog

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private static void upgradeWarnDialog(String aMessage) {
  final DialogBox dialogBox = new DialogBox(false, true);
  dialogBox.setStylePrimaryName("ode-DialogBox");
  dialogBox.setText(MESSAGES.warningDialogTitle());
  dialogBox.setGlassEnabled(true);
  dialogBox.setAnimationEnabled(true);
  final HTML message = new HTML(aMessage);
  message.setStyleName("DialogBox-message");
  VerticalPanel vPanel = new VerticalPanel();
  Button okButton = new Button("OK");
  okButton.addClickListener(new ClickListener() {
      @Override
      public void onClick(Widget sender) {
        dialogBox.hide();
      }
    });
  vPanel.add(message);
  vPanel.add(okButton);
  dialogBox.setWidget(vPanel);
  dialogBox.center();
  dialogBox.show();
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:23,代碼來源:YoungAndroidFormUpgrader.java

示例11: OdeLog

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
/**
 * Creates a new output panel for displaying internal messages.
 */
private OdeLog() {
  // Initialize UI
  Button clearButton = new Button(MESSAGES.clearButton());
  clearButton.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      clear();
    }
  });

  text = new HTML();
  text.setWidth("100%");

  VerticalPanel panel = new VerticalPanel();
  panel.add(clearButton);
  panel.add(text);
  panel.setSize("100%", "100%");
  panel.setCellHeight(text, "100%");
  panel.setCellWidth(text, "100%");

  initWidget(panel);
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:26,代碼來源:OdeLog.java

示例12: LabeledTextBox

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
/**
 * Use this TextBox if you want to have text validation while a user is typing
 *
 * @param caption    caption for leading label
 * @param validator  The validator to use for a specific textBox
 */
public LabeledTextBox(String caption, Validator validator) {
  this.validator = validator;

  HorizontalPanel panel = new HorizontalPanel();
  Label label = new Label(caption);
  panel.add(label);
  textbox = new TextBox();
  defaultTextBoxColor = textbox.getElement().getStyle().getBorderColor();
  textbox.setWidth("100%");
  panel.add(textbox);
  panel.setCellWidth(label, "40%");

  HorizontalPanel errorPanel = new HorizontalPanel();
  errorLabel = new Label("");
  errorPanel.add(errorLabel);

  VerticalPanel vp = new VerticalPanel();
  vp.add(panel);
  vp.add(errorPanel);
  vp.setHeight("85px");

  initWidget(vp);

  setWidth("100%");
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:32,代碼來源:LabeledTextBox.java

示例13: Icon

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
/**
 * Creates a new icon with the specified caption.
 *
 * @param image  image shown on icon (preferably 16 x 16px)
 * @param caption  caption shown below image
 */
public Icon(Image image, String caption) {

  panel = new VerticalPanel() {
    @Override
    public void onBrowserEvent(Event event) {
      Icon.this.onBrowserEvent(event);
    }
  };
  panel.add(image);
  panel.setCellHorizontalAlignment(image, VerticalPanel.ALIGN_CENTER);
  captionLabel = new Label(caption);
  panel.add(captionLabel);

  initWidget(panel);

  setStylePrimaryName("ode-Icon");
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:24,代碼來源:Icon.java

示例14: PropertiesPanel

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
/**
 * Creates a new properties panel.
 */
public PropertiesPanel() {
  // Initialize UI
  VerticalPanel outerPanel = new VerticalPanel();
  outerPanel.setWidth("100%");

  componentName = new Label("");
  componentName.setStyleName("ode-PropertiesComponentName");
  outerPanel.add(componentName);

  panel = new VerticalPanel();
  panel.setWidth("100%");
  panel.setStylePrimaryName("ode-PropertiesPanel");
  outerPanel.add(panel);

  initWidget(outerPanel);
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:20,代碼來源:PropertiesPanel.java

示例15: addLogo

import com.google.gwt.user.client.ui.VerticalPanel; //導入依賴的package包/類
private void addLogo(HorizontalPanel panel) {
  // Logo should be a link to App Inv homepage. Currently, after the user
  // has logged in, the top level *is* ODE; so for now don't make it a link.
  // Add timestamp to logo url to get around browsers that agressively cache
  // the image! This same trick is used in StorageUtil.getFilePath().
  Image logo = new Image(LOGO_IMAGE_URL + "?t=" + System.currentTimeMillis());
  logo.setSize("40px", "40px");
  logo.setStyleName("ode-Logo");
  String logoUrl = ode.getSystemConfig().getLogoUrl();
  if (!Strings.isNullOrEmpty(logoUrl)) {
    logo.addClickHandler(new WindowOpenClickHandler(logoUrl));
  }
  panel.add(logo);
  panel.setCellWidth(logo, "50px");
  Label title = new Label("MIT App Inventor");
  title.setStyleName("ode-LogoText");
  VerticalPanel titleContainer = new VerticalPanel();
  titleContainer.add(title);
  panel.add(titleContainer);
  panel.setCellWidth(titleContainer, "180px");
  panel.setCellHorizontalAlignment(logo, HorizontalPanel.ALIGN_LEFT);
  panel.setCellVerticalAlignment(logo, HorizontalPanel.ALIGN_MIDDLE);
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:24,代碼來源:TopPanel.java


注:本文中的com.google.gwt.user.client.ui.VerticalPanel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。