本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel.setSpacing方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.setSpacing方法的具體用法?Java VerticalPanel.setSpacing怎麽用?Java VerticalPanel.setSpacing使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.VerticalPanel
的用法示例。
在下文中一共展示了VerticalPanel.setSpacing方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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;
}
示例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);
}
示例3: buildLoadScreen
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* Create main VerticalPanel, add it to the RootPanel and display a loading message
*/
private void buildLoadScreen() {
// Create new main vertical panel to which all other GUI panels shall be added
mainVerPanel = new VerticalPanel();
// Add header image
Image image = new Image();
image.setUrl("/images/header.png");
mainVerPanel.add(image);
// Add loading label
Label loadingLabel = new Label("Loading Application. Please wait...");
mainVerPanel.add(loadingLabel);
// Vertical Panel Settings
mainVerPanel.setSpacing(25);
// Insert the main vertical panel into a scroll panel to allow for scrolling
ScrollPanel sp = new ScrollPanel();
sp.add(mainVerPanel);
// Add main vertical panel inside scroll panel to root panel
RootPanel.get().add(sp);
}
示例4: 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;
}
示例5: 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;
}
示例6: getWMTSPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private VerticalPanel getWMTSPanel() {
final VerticalPanel panel = new VerticalPanel();
panel.setWidth("350px");
panel.setSpacing(10);
urlWMTSField = new TextField();
urlWMTSField.setTitle(UIMessages.INSTANCE.lrasterdUrlField());
urlWMTSField.setWidth(FIELD_WIDTH);
urlWMTSField.setAllowBlank(false);
panel.add(urlWMTSField);
nameWMTSField = new TextField();
nameWMTSField.setTitle(UIMessages.INSTANCE
.lrasterdLayerNameField("WMTS"));
nameWMTSField.setAllowBlank(false);
nameWMTSField.setWidth(FIELD_WIDTH);
panel.add(nameWMTSField);
formatWMTSField = new TextField();
formatWMTSField
.setTitle(UIMessages.INSTANCE.lrasterdImageFormatField());
formatWMTSField.setAllowBlank(false);
formatWMTSField.setWidth(FIELD_WIDTH);
panel.add(formatWMTSField);
tileMatrixSetField = new TextField();
tileMatrixSetField.setTitle(UIMessages.INSTANCE
.lrasterdMatrixSetField());
tileMatrixSetField.setAllowBlank(false);
tileMatrixSetField.setWidth(FIELD_WIDTH);
panel.add(tileMatrixSetField);
return panel;
}
示例7: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
//vPanel.setPixelSize(490, 420);
vPanel.setSpacing(5);
vPanel.add(createTabPanel());
return vPanel;
}
示例8: getURLPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private VerticalPanel getURLPanel() {
final VerticalPanel geoDataContainer = new VerticalPanel();
geoDataContainer.setWidth("400px");
geoDataContainer.setSpacing(3);
geoDataContainer.add(new Label(UIMessages.INSTANCE.messageURLPanel()));
urlTextField = new TextField();
urlTextField.setBorders(true);
urlTextField.setEmptyText("http://");
urlTextField.setWidth(400);
urlTextField.setAllowBlank(false);
geoDataContainer.add(urlTextField);
HorizontalPanel horizontalContainer = new HorizontalPanel();
TextButton createUrlButton = new TextButton(
UIMessages.INSTANCE.urlToShareButtonText());
horizontalContainer.add(createUrlButton);
createUrlButton.addSelectHandler(createUrlToShare(geoDataContainer));
geoDataContainer.add(horizontalContainer);
geoDataContainer.add(createUrlToShareAnchor());
urlShared = new TextField();
urlShared.setBorders(true);
urlShared.setWidth(400);
urlShared.setVisible(false);
geoDataContainer.add(urlShared);
return geoDataContainer;
}
示例9: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(315, 400);
vPanel.setSpacing(5);
vPanel.add(createTopPanel());
return vPanel;
}
示例10: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
final VerticalPanel panel = new VerticalPanel();
panel.setSpacing(10);
panel.add(createTabPanel());
createGetcapabilitiesbutton();
return panel;
}
示例11: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(490, 400);
vPanel.setSpacing(5);
vPanel.add(createTopPanel());
vPanel.add(createBottomPanel());
return vPanel;
}
示例12: createPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private Widget createPanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setPixelSize(490, 420);
vPanel.setSpacing(5);
vPanel.add(createTopPanel());
vPanel.add(createBottomPanel());
return vPanel;
}
示例13: initializeGallery
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private void initializeGallery() {
VerticalPanel gVertPanel = (VerticalPanel)deckPanel.getWidget(galleryTabIndex);
gVertPanel.setWidth("100%");
gVertPanel.setSpacing(0);
galleryListToolbar = new GalleryToolbar();
gVertPanel.add(galleryListToolbar);
HorizontalPanel appListPanel = new HorizontalPanel();
appListPanel.setWidth("100%");
appListPanel.add(GalleryListBox.getGalleryListBox());
gVertPanel.add(appListPanel);
VerticalPanel aVertPanel = (VerticalPanel)deckPanel.getWidget(galleryAppTabIndex);
aVertPanel.setWidth("100%");
aVertPanel.setSpacing(0);
galleryPageToolbar = new GalleryToolbar();
aVertPanel.add(galleryPageToolbar);
HorizontalPanel appPanel = new HorizontalPanel();
appPanel.setWidth("100%");
appPanel.add(GalleryAppBox.getGalleryAppBox());
aVertPanel.add(appPanel);
VerticalPanel mPVertPanel = (VerticalPanel)deckPanel.getWidget(moderationPageTabIndex);
mPVertPanel.setWidth("100%");
mPVertPanel.setSpacing(0);
HorizontalPanel moderationPagePanel = new HorizontalPanel();
moderationPagePanel.setWidth("100%");
moderationPagePanel.add(ModerationPageBox.getModerationPageBox());
mPVertPanel.add(moderationPagePanel);
GalleryListBox.loadGalleryList();
if (user.isModerator()) {
ModerationPageBox.loadModerationPage();
}
PrivateUserProfileTabPanel.getPrivateUserProfileTabPanel().loadProfileImage();
galleryInitialized = true;
}
示例14: getAttrCombo
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private VerticalPanel getAttrCombo() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setSpacing(5);
vPanel.add(new Label(UIMessages.INSTANCE.asdAttributeLabel()));
initializeAttributeLabelCombo(FIELD_WIDTH);
vPanel.add(attributeCombo);
return vPanel;
}
示例15: getAttrValuePanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private VerticalPanel getAttrValuePanel() {
VerticalPanel vPanel = new VerticalPanel();
vPanel.setSpacing(5);
valueAttributeField = new TextField();
valueAttributeField.setEnabled(true);
valueAttributeField.setWidth(FIELD_WIDTH);
vPanel.add(new Label(UIMessages.INSTANCE.asdAttributeValueLabel()));
vPanel.add(valueAttributeField);
return vPanel;
}