本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel.setWidth方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.setWidth方法的具體用法?Java VerticalPanel.setWidth怎麽用?Java VerticalPanel.setWidth使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.VerticalPanel
的用法示例。
在下文中一共展示了VerticalPanel.setWidth方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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;
}
示例2: 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;
}
示例3: 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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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);
}
示例7: WikiManager
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* WikiManager
*/
public WikiManager(boolean isDashboard) {
this.isDashboard = isDashboard;
vPanel = new VerticalPanel();
toolbar = new TabToolbarWiki(this, isDashboard);
// Post Editor
vWikiPanel = new VerticalPanel();
vWikiPanel.setWidth("100%");
wikiEditor = new WikiEditor(this);
wikiEditor.setStyleName("okm-Mail");
wikiHistory = new WikiHistory(this);
wikiPage = new WikiPage();
scrollPanelWiki = new ScrollPanel(vWikiPanel);
vPanel.add(toolbar); // Always visible
toolbar.setHeight("" + TOOLBAR_HEADER + "px");
toolbar.setWidth("100%");
vPanel.setCellHeight(toolbar, "" + TOOLBAR_HEADER + "px");
initWidget(vPanel);
}
示例8: LogoutPopup
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* Logout popup
*/
public LogoutPopup() {
// Establishes auto-close when click outside
super(false, true);
vPanel = new VerticalPanel();
text = new HTML(Main.i18n("logout.logout"));
button = new Button(Main.i18n("button.close"), this);
vPanel.setWidth("250px");
vPanel.setHeight("100px");
vPanel.add(new HTML("<br>"));
vPanel.add(text);
vPanel.add(new HTML("<br>"));
vPanel.add(button);
vPanel.add(new HTML("<br>"));
vPanel.setCellHorizontalAlignment(text, VerticalPanel.ALIGN_CENTER);
vPanel.setCellHorizontalAlignment(button, VerticalPanel.ALIGN_CENTER);
button.setStyleName("okm-YesButton");
super.hide();
setWidget(vPanel);
}
示例9: WorkflowWidget
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* WorkflowWidget
*/
public WorkflowWidget(String name, String uuid, WorkflowWidgetToFire workflowWidgetToFire, Map<String, Object> workflowVariables) {
this.name = name;
this.uuid = uuid;
this.workflowWidgetToFire = workflowWidgetToFire;
this.workflowVariables = workflowVariables;
drawed = false;
vPanel = new VerticalPanel();
hPanel = new HorizontalPanel();
manager = new FormManager();
vPanel.setWidth("300px");
vPanel.setHeight("50px");
vPanel.add(new HTML("<br>"));
vPanel.add(manager.getTable());
vPanel.add(new HTML("<br>"));
vPanel.setCellHorizontalAlignment(hPanel, VerticalPanel.ALIGN_CENTER);
initWidget(vPanel);
}
示例10: FuturamaWalking
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* FuturamaWalking
*/
public FuturamaWalking() {
// Establishes auto-close when click outside
super(false, false);
left = -180;
top = Window.getClientHeight() - 80 - 21;
vPanel = new VerticalPanel();
vPanel.setWidth("186px");
vPanel.setHeight("80px");
logo = new Image("img/eastereggs/futurama_walking.gif");
vPanel.add(logo);
setPopupPosition(left, top);
hide();
setWidget(vPanel);
}
示例11: BaseViewImpl
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
public BaseViewImpl(boolean useDetailsPanel) {
errorPanel = new AlertPanel(Type.ERROR);
sandboxStyle = Utils.sandboxStyle;
avroUiStyle = Utils.avroUiStyle;
initWidget(createAndBindUi());
setTitle(getViewTitle());
if (useDetailsPanel) {
detailsPanel = new VerticalPanel();
detailsPanel.setWidth("100%");
detailsPanel.addStyleName(sandboxStyle.contentPanel());
ScrollPanel scroll = new ScrollPanel();
scroll.setWidth("100%");
scroll.add(detailsPanel);
centerPanel.setWidget(scroll);
}
initCenterPanel();
clearError();
}
示例12: AlertStackWidget
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的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);
}
示例13: loadLayoutStructure
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private void loadLayoutStructure() {
page = new VerticalPanel();
mainView = new HorizontalPanel();
leftPanel = new VerticalPanel();
mainView.setStyleName("mainViewLayer");
mainView.setWidth("100%");
leftPanel.setStyleName("leftPanelLayer");
leftPanel.setWidth("700px");
page.setWidth("100%");
Label title = new Label("Import configuration");
title.setStyleName("title");
//Main layout
page.add(title);
page.add(mainView);
//Left layout
mainView.add(leftPanel);
grid = new Grid(1,2);
grid.setCellPadding(5);
leftPanel.add(grid);
}
示例14: showRiskData
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
protected void showRiskData( JsonRiskDataList list ) {
VerticalPanel p = new VerticalPanel();
p.setWidth("100%");
Grid grid = new Grid( list.size(), 2 );
// grid.getColumnFormatter().setWidth(0, "20%");
// grid.getColumnFormatter().setWidth(1, "80%");
for( int i = 0; i < list.size(); i++ ) {
JsonRiskDataList.RiskDataItem item = list.get( i );
grid.setWidget( i, 0, new Label( item.getId() ) );
grid.setWidget( i, 1, new Label( item.getValue() ) );
}
Label title = new Label(entity);
title.setStyleName("smallTitle");
p.add(title);
p.add(grid);
panel.setWidget( p );
}
示例15: getAuthenticationPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private VerticalPanel getAuthenticationPanel() {
final VerticalPanel panel = new VerticalPanel();
panel.setWidth("150px");
panel.setSpacing(10);
Anchor anchor = new AnchorBuilder().setHref("http://www.geowe.org")
.setImage(new Image(ImageProvider.INSTANCE.geoweSquareLogo()))
.build();
panel.add(anchor);
userNameField = new TextField();
userNameField.setTitle(UIMessages.INSTANCE.gitHubUserNameField());
userNameField.setEmptyText(UIMessages.INSTANCE.gitHubUserNameField());
userNameField.setWidth(120);
userNameField.setAllowBlank(false);
// userNameField.focus();
panel.add(userNameField);
passwordField = new PasswordField();
passwordField.setTitle(UIMessages.INSTANCE.gitHubPasswordField());
passwordField.setEmptyText(UIMessages.INSTANCE.gitHubPasswordField());
passwordField.setWidth(120);
passwordField.setAllowBlank(false);
panel.add(passwordField);
progressImage = new Image(ImageProvider.INSTANCE.circleProgress());
progressImage.setVisible(false);
panel.add(progressImage);
return panel;
}