本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel.add方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.add方法的具體用法?Java VerticalPanel.add怎麽用?Java VerticalPanel.add使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.VerticalPanel
的用法示例。
在下文中一共展示了VerticalPanel.add方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: SimpleNonVisibleComponentsPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* Creates new component design panel for non-visible components.
*/
public SimpleNonVisibleComponentsPanel() {
// Initialize UI
VerticalPanel panel = new VerticalPanel();
panel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
heading = new Label("");
heading.setStyleName("ya-NonVisibleComponentsHeader");
panel.add(heading);
componentsPanel = new FlowPanel();
componentsPanel.setStyleName("ode-SimpleUiDesignerNonVisibleComponents");
panel.add(componentsPanel);
initWidget(panel);
}
示例2: disabledAccountDialog
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* This dialog is showned if an account is disabled. It is
* completely modal with no escape. The provided URL is displayed in
* an iframe, so it can be tailored to each person whose account is
* disabled.
*
* @param Url the Url to display in the dialog box.
*/
public void disabledAccountDialog(String Url) {
// Create the UI elements of the DialogBox
final DialogBox dialogBox = new DialogBox(false, true); // DialogBox(autohide, modal)
dialogBox.setStylePrimaryName("ode-DialogBox");
dialogBox.setText(MESSAGES.accountDisabledMessage());
dialogBox.setHeight("700px");
dialogBox.setWidth("700px");
dialogBox.setGlassEnabled(true);
dialogBox.setAnimationEnabled(true);
dialogBox.center();
VerticalPanel DialogBoxContents = new VerticalPanel();
HTML message = new HTML("<iframe src=\"" + Url + "\" style=\"border: 0; width: 680px; height: 660px;\"></iframe>");
message.setStyleName("DialogBox-message");
DialogBoxContents.add(message);
dialogBox.setWidget(DialogBoxContents);
dialogBox.show();
}
示例3: corruptionDialog
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* corruptionDialog -- Put up a dialog box explaining that we detected corruption
* while reading in a project file. There is no continuing once this happens.
*
*/
void corruptionDialog() {
// Create the UI elements of the DialogBox
final DialogBox dialogBox = new DialogBox(false, true); // DialogBox(autohide, modal)
dialogBox.setStylePrimaryName("ode-DialogBox");
dialogBox.setText(MESSAGES.corruptionDialogText());
dialogBox.setHeight("100px");
dialogBox.setWidth("400px");
dialogBox.setGlassEnabled(true);
dialogBox.setAnimationEnabled(true);
dialogBox.center();
VerticalPanel DialogBoxContents = new VerticalPanel();
HTML message = new HTML(MESSAGES.corruptionDialogMessage());
message.setStyleName("DialogBox-message");
DialogBoxContents.add(message);
dialogBox.setWidget(DialogBoxContents);
dialogBox.show();
}
示例4: 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);
}
示例5: 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;
}
示例6: create
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* Creates dialog box.
*
* @param popup - UniversalPopup on which the dialog is based
* @param title - title placed in the title bar
* @param innerWidget - the inner widget of the dialog
* @param dialogButtons - buttons
*/
public static void create(UniversalPopup popup, String title, Widget innerWidget,
DialogButton[] dialogButtons) {
// Title
popup.getTitleBar().setTitleText(title);
VerticalPanel contents = new VerticalPanel();
popup.add(contents);
// Message
contents.add(innerWidget);
// Buttons
HorizontalPanel buttonPanel = new HorizontalPanel();
for (DialogButton dialogButton : dialogButtons) {
Button button = new Button(dialogButton.getTitle());
button.setStyleName(Dialog.getCss().dialogButton());
buttonPanel.add(button);
dialogButton.link(button);
}
contents.add(buttonPanel);
buttonPanel.setStyleName(Dialog.getCss().dialogButtonPanel());
contents.setCellHorizontalAlignment(buttonPanel, HasHorizontalAlignment.ALIGN_RIGHT);
}
示例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: MailDashboard
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* GeneralDashboard
*/
public MailDashboard() {
vPanelLeft = new VerticalPanel();
vPanelRight = new VerticalPanel();
hPanel = new HorizontalPanel();
userLastImportedMails = new DashboardWidget("UserLastImportedMails",
"dashboard.mail.last.imported.mails", "img/email.gif", true, "userLastImportedMails");
userLastImportedAttachments = new DashboardWidget("UserLastImportedMailAttachments",
"dashboard.mail.last.imported.attached.documents", "img/email_attach.gif", true,
"userLastImportedMailAttachments");
vPanelLeft.add(userLastImportedMails);
vPanelRight.add(userLastImportedAttachments);
hPanel.add(vPanelLeft);
hPanel.add(vPanelRight);
initWidget(hPanel);
}
示例9: WorkflowDashboard
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* UserDashboard
*/
public WorkflowDashboard() {
vPanelLeft = new VerticalPanel();
vPanelRight = new VerticalPanel();
hPanel = new HorizontalPanel();
hPanel.add(vPanelLeft);
hPanel.add(vPanelRight);
pendingTasks = new WorkflowWidget("dashboard.workflow.pending.tasks", "img/icon/workflow.gif", true);
pendingPooledTasks = new WorkflowWidget("dashboard.workflow.pending.tasks.unassigned", "img/icon/workflow.gif", true);
pendingTasks.setIsWidgetPendingTask();
pendingPooledTasks.setIsWidgetPooledTask();
workflowFormPanel = new WorkflowFormPanel();
vPanelLeft.add(pendingTasks);
vPanelLeft.add(pendingPooledTasks);
vPanelRight.add(workflowFormPanel);
hPanel.setHeight("100%");
vPanelRight.setHeight("100%");
initWidget(hPanel);
}
示例10: ComplexColorPicker
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
public ComplexColorPicker() {
style.ensureInjected();
// The background color can be set to "none"
noneBtn = new PushButton(messages.none());
noneBtn.addStyleName(ComplexColorPicker.style.buttonsMargins());
noneBtn.setStylePrimaryName(ComplexColorPicker.style.customColorPushbutton());
noneBtn.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
listener.onNoneColorChoose();
}
});
vp = new VerticalPanel();
// We use a simple color picker by default
simplePicker = new SimpleColorPicker(this);
vp.add(simplePicker);
vp.add(noneBtn);
super.add(vp);
}
示例11: SourceCodePopupPanel
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
public SourceCodePopupPanel() {
// PopupPanel's constructor takes 'auto-hide' as its boolean parameter.
// If this is set, the panel closes itself automatically when the user
// clicks outside of it.
super(true);
// Set the dialog box's caption.
setText("Source Code");
// Enable animation.
setAnimationEnabled(true);
// Enable glass background.
setGlassEnabled(true);
Button btnClose = new Button("Close");
btnClose.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
hide();
}
});
VerticalPanel panel = new VerticalPanel();
panel.add(html);
panel.add(btnClose);
panel.setCellHorizontalAlignment(btnClose, HasHorizontalAlignment.ALIGN_RIGHT);
setWidget(panel);
}
示例12: DebugConsolePopup
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* Logout popup
*/
public DebugConsolePopup() {
// Establishes auto-close when click outside
super(false, false);
setText(Main.i18n("debug.console.label"));
vPanel = new VerticalPanel();
button = new Button(Main.i18n("button.close"), this);
text = new HTML(Main.i18n("debug.enable.disable"));
vPanel.add(new HTML("<br>"));
vPanel.add(text);
vPanel.add(Log.getLogger(DivLogger.class).getWidget());
vPanel.add(new HTML("<br>"));
vPanel.add(button);
vPanel.add(new HTML("<br>"));
vPanel.setCellHorizontalAlignment(button, VerticalPanel.ALIGN_CENTER);
button.setStyleName("okm-YesButton");
super.hide();
Log.getLogger(DivLogger.class).getWidget().setVisible(true);
setWidget(vPanel);
}
示例13: onModuleLoad
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
@Override
public void onModuleLoad() {
uploaderPanels.put("TextButtonAndProgressText", new TextButtonAndProgressText());
uploaderPanels.put("ImageButtonAndProgressText", new ImageButtonAndProgressText());
uploaderPanels.put("ImageButtonAndProgressBar", new ImageButtonAndProgressBar());
uploaderPanels.put("MultiUploadWithProgressBar", new MultiUploadWithProgressBar());
uploaderPanels.put("MultiUploadWithProgressBarAndDragAndDrop",
new MultiUploadWithProgressBarAndDragAndDrop());
for (Map.Entry<String, UploaderSample> entry : uploaderPanels.entrySet()) {
final UploaderSample sample = entry.getValue();
final Widget uploaderPanel = sample.getUploaderPanel();
final Button btnViewSource = new Button("View Source");
btnViewSource.getElement().getStyle().setMarginTop(10, Style.Unit.PX);
btnViewSource.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
sourceCodePopup.showSourceCode(sample.getUploaderCode());
}
});
VerticalPanel panel = new VerticalPanel();
panel.add(uploaderPanel);
panel.add(btnViewSource);
RootPanel.get(entry.getKey()).add(panel);
}
}
示例14: 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);
}
示例15: RCPropertyPage
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
public RCPropertyPage( SimpleRiskCconf rc ) {
VerticalPanel p = new VerticalPanel();
p.add( new Label( "Models per layer:" ) );
p.add( mlist );
try {
loadModels( rc );
}
catch( Exception ex ) {
Window.alert( ex.getMessage() );
}
tab.add( p, "Properties" );
tab.selectTab( 0 );
tab.setSize( "100%", "100%" );
}