List of usage examples for com.google.gwt.user.client.ui HTML HTML
protected HTML(Element element)
From source file:com.dimdim.conference.ui.envcheck.client.layout.CommonMessagePopup.java
License:Open Source License
protected void drawDialog() { vp = new VerticalPanel(); RoundedPanel rp = new RoundedPanel(vp); vp.setStyleName("common-dialog-outer-panel"); rp.setStyleName("common-dialog-rounded-corner-panel"); DockPanel buttonPanel = new DockPanel(); if (this.showCloseButton) { closeButton = new Button(closeButtonText, new ClickListener() { public void onClick(Widget sender) { hide();/*from w w w. j av a 2 s . com*/ History.back(); // TODO move out into a listener. } }); closeButton.setStyleName("dm-popup-close-button"); buttonPanel.add(closeButton, DockPanel.EAST); buttonPanel.setSpacing(0); HTML filler1 = new HTML(" "); buttonPanel.add(filler1, DockPanel.EAST); } if (this.dialogName != null) { // Create a width adjustment panel. String widthStyle = this.dialogName + "-dialog-width"; String heightStyle1 = this.dialogName + "-dialog-height-one"; String heightStyle2 = this.dialogName + "-dialog-height-two"; String contentWidthStyle = this.dialogName + "-dialog-content"; content.addStyleName(contentWidthStyle); HorizontalPanel upperPanel = new HorizontalPanel(); HTML upperLeftBar = new HTML(" "); upperLeftBar.setStyleName(heightStyle1); upperPanel.add(upperLeftBar); upperPanel.add(content); upperPanel.setCellWidth(content, "100%"); upperPanel.setCellVerticalAlignment(content, VerticalPanel.ALIGN_MIDDLE); HorizontalPanel lowerPanel = new HorizontalPanel(); lowerPanel.setStyleName(widthStyle); HTML lowerLeftBar = new HTML(" "); lowerLeftBar.setStyleName(heightStyle2); lowerPanel.add(lowerLeftBar); lowerPanel.add(buttonPanel); lowerPanel.setCellWidth(buttonPanel, "100%"); lowerPanel.setCellHorizontalAlignment(buttonPanel, HorizontalPanel.ALIGN_RIGHT); lowerPanel.setCellVerticalAlignment(buttonPanel, VerticalPanel.ALIGN_MIDDLE); vp.add(upperPanel); vp.add(lowerPanel); this.addStyleName(this.dialogName + "-dialog-size"); } else { vp.add(content); vp.setCellWidth(content, "100%"); vp.add(buttonPanel); vp.setCellWidth(buttonPanel, "100%"); vp.setCellHorizontalAlignment(buttonPanel, HorizontalPanel.ALIGN_RIGHT); } this.addPopupListener(this); this.add(vp); }
From source file:com.dimdim.conference.ui.envcheck.client.layout.SignInControls.java
License:Open Source License
public SignInControls() { initWidget(basePanel);/*from ww w . ja va 2 s. c o m*/ /** * Assemble the form body top bar */ topBar = new HorizontalPanel(); PNGImage topLeftCorner = new PNGImage("images/form-area-leftcorner.png", 47, 47); topBar.add(topLeftCorner); topBar.setCellHorizontalAlignment(topLeftCorner, HorizontalPanel.ALIGN_LEFT); topBar.setCellVerticalAlignment(topLeftCorner, VerticalPanel.ALIGN_TOP); PNGImage topCenter = new PNGImage("images/formarea-top-back.png", 305, 47); topBar.add(topCenter); topBar.setCellHorizontalAlignment(topCenter, HorizontalPanel.ALIGN_LEFT); topBar.setCellVerticalAlignment(topCenter, VerticalPanel.ALIGN_TOP); PNGImage topRightCorner = new PNGImage("images/formarea-right-corner.png", 47, 47); topBar.add(topRightCorner); topBar.setCellHorizontalAlignment(topRightCorner, HorizontalPanel.ALIGN_LEFT); topBar.setCellVerticalAlignment(topRightCorner, VerticalPanel.ALIGN_TOP); basePanel.add(topBar); basePanel.setCellHorizontalAlignment(topBar, HorizontalPanel.ALIGN_LEFT); basePanel.setCellVerticalAlignment(topBar, VerticalPanel.ALIGN_TOP); /** * Assemble the form body */ formBody = new HorizontalPanel(); PNGImage bodyLeft = new PNGImage("images/formarea-left-tile.png", 47, 431); formBody.add(bodyLeft); formBody.setCellHorizontalAlignment(bodyLeft, HorizontalPanel.ALIGN_LEFT); formBody.setCellVerticalAlignment(bodyLeft, VerticalPanel.ALIGN_TOP); formContainer = new VerticalPanel(); formContainer.setWidth("305px"); formContainer.setHeight("431px"); buttonsContainer = new VerticalPanel(); buttonsContainer.setWidth("305px"); buttonsContainer.setHeight("431px"); buttonsPanel = new VerticalPanel(); buttonsPanel.setWidth("305px"); buttonsPanel.setHeight("431px"); formContainer.add(buttonsContainer); formContainer.setCellHorizontalAlignment(buttonsContainer, HorizontalPanel.ALIGN_CENTER); formContainer.setCellVerticalAlignment(buttonsContainer, VerticalPanel.ALIGN_TOP); formContainer.setStyleName("signin-form-body-center"); buttonsContainer.add(buttonsPanel); buttonsContainer.setCellHorizontalAlignment(buttonsPanel, HorizontalPanel.ALIGN_CENTER); buttonsContainer.setCellVerticalAlignment(buttonsPanel, VerticalPanel.ALIGN_MIDDLE); formBody.add(formContainer); formBody.setCellHorizontalAlignment(formContainer, HorizontalPanel.ALIGN_CENTER); formBody.setCellVerticalAlignment(formContainer, VerticalPanel.ALIGN_MIDDLE); PNGImage bodyRight = new PNGImage("images/formarea-right-tile.png", 47, 431); formBody.add(bodyRight); formBody.setCellHorizontalAlignment(bodyRight, HorizontalPanel.ALIGN_LEFT); formBody.setCellVerticalAlignment(bodyRight, VerticalPanel.ALIGN_TOP); basePanel.add(formBody); basePanel.setCellHorizontalAlignment(formBody, HorizontalPanel.ALIGN_LEFT); basePanel.setCellVerticalAlignment(formBody, VerticalPanel.ALIGN_TOP); /** * Assemble the form bottom bar */ bottomBar = new HorizontalPanel(); PNGImage bottomLeftCorner = new PNGImage("images/formarea-bot-left-corner.png", 47, 46); bottomBar.add(bottomLeftCorner); bottomBar.setCellHorizontalAlignment(bottomLeftCorner, HorizontalPanel.ALIGN_LEFT); bottomBar.setCellVerticalAlignment(bottomLeftCorner, VerticalPanel.ALIGN_TOP); PNGImage bottomCenter = new PNGImage("images/formarea-bottom-tile.png", 305, 46); bottomBar.add(bottomCenter); bottomBar.setCellHorizontalAlignment(bottomCenter, HorizontalPanel.ALIGN_LEFT); bottomBar.setCellVerticalAlignment(bottomCenter, VerticalPanel.ALIGN_TOP); PNGImage bottomRightCorner = new PNGImage("images/formarea-bot-right-corner.png", 47, 46); bottomBar.add(bottomRightCorner); bottomBar.setCellHorizontalAlignment(bottomRightCorner, HorizontalPanel.ALIGN_LEFT); bottomBar.setCellVerticalAlignment(bottomRightCorner, VerticalPanel.ALIGN_TOP); basePanel.add(bottomBar); basePanel.setCellHorizontalAlignment(bottomBar, HorizontalPanel.ALIGN_LEFT); basePanel.setCellVerticalAlignment(bottomBar, VerticalPanel.ALIGN_TOP); /** * Privacy and copyright policy links */ HorizontalPanel linksPanel = new HorizontalPanel(); linksPanel.setStyleName("bottom-panel-links"); privacyPolicyLink = new Label( EnvGlobals.getDisplayString("dimdim_privacy_policy_link", "dimdim privacy policy")); privacyPolicyLink.setStyleName("common-text"); privacyPolicyLink.addStyleName("common-anchor"); privacyPolicyLink.addStyleName("bottom-panel-link"); privacyPolicyLink.addClickListener(this); copyrightPolicyLink = new Label(EnvGlobals.getDisplayString("dimdim_copyright_policy_link", "dimdim trademark and copyright policy")); copyrightPolicyLink.setStyleName("common-text"); copyrightPolicyLink.addStyleName("common-anchor"); copyrightPolicyLink.addStyleName("bottom-panel-link"); copyrightPolicyLink.addClickListener(this); linksPanel.add(privacyPolicyLink); linksPanel.setCellHorizontalAlignment(privacyPolicyLink, HorizontalPanel.ALIGN_LEFT); linksPanel.setCellVerticalAlignment(privacyPolicyLink, VerticalPanel.ALIGN_MIDDLE); HTML seperator1 = new HTML("|"); seperator1.setStyleName("bottom-panel-links-seperator"); linksPanel.add(seperator1); linksPanel.setCellHorizontalAlignment(seperator1, HorizontalPanel.ALIGN_LEFT); linksPanel.setCellVerticalAlignment(seperator1, VerticalPanel.ALIGN_MIDDLE); linksPanel.add(copyrightPolicyLink); linksPanel.setCellHorizontalAlignment(copyrightPolicyLink, HorizontalPanel.ALIGN_LEFT); linksPanel.setCellVerticalAlignment(copyrightPolicyLink, VerticalPanel.ALIGN_MIDDLE); basePanel.add(linksPanel); basePanel.setCellHorizontalAlignment(linksPanel, HorizontalPanel.ALIGN_CENTER); basePanel.setCellVerticalAlignment(linksPanel, VerticalPanel.ALIGN_MIDDLE); }
From source file:com.dimdim.conference.ui.envcheck.client.main.EnvCheck.java
License:Open Source License
public void onModuleLoad() { //Window.alert("inside module load..."); EnvGlobals.setOriginalURL(this.getCurrentURL()); //windowWidth = Window.getClientWidth(); //windowHeight = Window.getClientHeight(); String actionId = getActionId(); String browserType = getBrowserType(); String osType = getOSType();/*from w w w. j ava 2s. co m*/ final CommandProcessor cp = new CommandProcessor(actionId, browserType, osType); //Window.alert("created command processor"); // this.fullPage = new SignInFullPage(); // cp.setFormContainer(this.fullPage.getFormContainerPanel()); // RootPanel.get().clear(); // RootPanel.get().add(this.fullPage); RootPanel.get("check_header_text").add(new HTML( EnvGlobals.getDisplayString("checkpanel.title", "<strong>The checking of essentials...</strong>"))); RootPanel.get("check_message_text_1").add(new Label(EnvGlobals.getDisplayString("checkpanel.text", "This may take a few moments, thanks for your patience"))); changeUIForAction(); if (null != skipCheck() && "true".equals(skipCheck())) { //Window.alert("ignoring checks..."); cp.allChecksSuccessful(); } else { //Window.alert("starting timer..."); Timer t = new Timer() { public void run() { cp.startChecks(); } }; t.schedule(500); } Window.addWindowResizeListener(this); History.addHistoryListener(this); }
From source file:com.dimdim.conference.ui.envcheck.client.main.EnvCheck.java
License:Open Source License
private void fillTextPresenter() { String text = EnvGlobals.getDisplayString("oscheck.label", "Operating systems Check"); Label lbl = new Label(text); //lbl.setStyleName("console-label"); RootPanel.get("os_check_text").add(lbl); text = EnvGlobals.getDisplayString("browsercheck.label", "Browser Support Check"); lbl = new Label(text); //lbl.setStyleName("console-label"); RootPanel.get("browser_check_text").add(lbl); text = EnvGlobals.getDisplayString("flashcheck.label", "Flash Player version check"); lbl = new Label(text); //lbl.setStyleName("console-label"); RootPanel.get("flash_check_text").add(lbl); String osType = getOSType();//w w w. j a v a 2s . c o m if ("true".equalsIgnoreCase(getPubEnabled()) && !EnvGlobals.OS_MAC.equals(osType) && !EnvGlobals.OS_LINUX.equals(osType) && !EnvGlobals.OS_UNIX.equals(osType)) { text = EnvGlobals.getDisplayString("pubcheck.label", "Plugin Check"); lbl = new Label(text); //lbl.setStyleName("console-label"); RootPanel.get("plugin_check_text").add(lbl); } VerticalPanel description = new VerticalPanel(); Label header = new Label(EnvGlobals.getDisplayString("desc.label", "Description")); header.setStyleName("subheadders"); description.add(header); HTML seperator1 = new HTML(" "); description.add(seperator1); description.setCellWidth(seperator1, "100%"); Label check1 = new Label(EnvGlobals.getDisplayString("oscheck.desc", " 1. A Meeting can be started Windows XP/Vista/2003/2000, Mac and Linux.")); Label check2 = new Label(EnvGlobals.getDisplayString("browsercheck.desc", "2. A Meeting can be started on Firefox 1.5 onwards and IE 6 onwards.")); //Window.alert("flsh desc...."+EnvGlobals.getDisplayString("flashcheck.desc","3. A Meeeting can be started on Adobe Flash Player (version 9 or higher).")); HTML check3 = new HTML(EnvGlobals.getDisplayString("flashcheck.desc", "3. A Meeeting can be started on Adobe Flash Player (version 9 or higher).")); Label check4 = new Label(EnvGlobals.getDisplayString("pubcheck.desc", "4. Dimdim Publisher is required to use screen share.")); check1.setStyleName("console-label"); check2.setStyleName("console-label"); check3.setStyleName("console-label"); check4.setStyleName("console-label"); description.add(check1); HTML seperator2 = new HTML(" "); description.add(seperator2); description.setCellWidth(seperator2, "100%"); description.add(check2); HTML seperator3 = new HTML(" "); description.add(seperator3); description.setCellWidth(seperator3, "100%"); description.add(check3); HTML seperator4 = new HTML(" "); description.add(seperator4); description.setCellWidth(seperator4, "100%"); description.add(check4); RootPanel.get("description_box").add(description); //Window.alert("after fillTextPresenter..."); }
From source file:com.dimdim.conference.ui.envcheck.client.main.EnvCheck.java
License:Open Source License
private void fillTextAttendee() { String text = EnvGlobals.getDisplayString("browsercheck.label", "Browser Support Check"); Label lbl = new Label(text); //lbl.setStyleName("console-label"); RootPanel.get("browser_check_text").add(lbl); text = EnvGlobals.getDisplayString("flashcheck.label", "Flash Player version check"); lbl = new Label(text); //lbl.setStyleName("console-label"); RootPanel.get("flash_check_text").add(lbl); VerticalPanel description = new VerticalPanel(); Label header = new Label(EnvGlobals.getDisplayString("desc.label", "Description")); header.setStyleName("subheadders"); description.add(header);// ww w . jav a 2s .co m HTML seperator1 = new HTML(" "); description.add(seperator1); description.setCellWidth(seperator1, "100%"); Label check2 = new Label(EnvGlobals.getDisplayString("browsercheck.att.desc", " A Meeting can be joined on Firefox 1.5 onwards and IE 6 onwards.")); HTML check3 = new HTML(EnvGlobals.getDisplayString("flashcheck.att.desc", "A Meeeting can be joined on Adobe Flash Player (version 8 or higher).")); check2.setStyleName("console-label"); check3.setStyleName("console-label"); description.add(check2); HTML seperator3 = new HTML(" "); description.add(seperator3); description.setCellWidth(seperator3, "100%"); description.add(check3); HTML seperator4 = new HTML(" "); description.add(seperator4); description.setCellWidth(seperator4, "100%"); RootPanel.get("description_box").add(description); //Window.alert("after fillTextAttendee..."); }
From source file:com.dimdim.conference.ui.layout.client.widget.ConsoleTopPanel.java
License:Open Source License
public ConsoleTopPanel(NewLayout console, UIRosterEntry currentUser) { this.console = console; this.currentUser = currentUser; userManager = new UserRosterManager(currentUser); this.initWidget(topPanel); DOM.setAttribute(topPanel.getElement(), "id", "console-topPanel"); topPanel.setStyleName("console-top-panel"); topPanel.add(links, DockPanel.EAST); topPanel.setCellHorizontalAlignment(links, DockPanel.ALIGN_RIGHT); topPanel.setCellVerticalAlignment(links, HasVerticalAlignment.ALIGN_TOP); UIParams uiParams = UIParams.getUIParams(); //String top_links_sign_out = uiParams.getStringParamValue("top_links_sign_out", "true"); //Window.alert("top_links_sign_out = "+top_links_sign_out); //Window.alert("top_links_about = "+uiParams.getStringParamValue("top_links_about", "true")); HTML seperator1 = new HTML("|"); seperator1.setStyleName("console-top-panel-seperator"); HTML seperator2 = new HTML("|"); seperator2.setStyleName("console-top-panel-seperator"); HTML seperator3 = new HTML("|"); seperator3.setStyleName("console-top-panel-seperator"); HTML seperator4 = new HTML("|"); seperator4.setStyleName("console-top-panel-seperator"); HTML seperator5 = new HTML("|"); seperator5.setStyleName("console-top-panel-seperator"); HTML seperator6 = new HTML("|"); seperator6.setStyleName("console-top-panel-seperator"); // Top links line1. String nm = this.currentUser.getDisplayName(); nameLabel = new FixedLengthLabel(nm, 25); if (nm.length() > 25) { nameLabel.setTitle(nm);/* w w w. jav a2 s . com*/ } nameLabel.setWordWrap(false); nameLabel.setStyleName("common-text"); nameLabel.addStyleName("common-label"); // nameLabel.addClickListener(FlashCallbackHandler.getHandler()); // nameLabel.addClickListener(new ClickListener() // { // public void onClick(Widget sender) // { // String reloadUrl = (new CommandURLFactory()).getReloadConsoleURL(); // setLocation(reloadUrl); // } // }); // DOM.setAttribute(nameLabel.getElement(),"id","flash_bridge"); HoverPopupPanel.flashCallbackElement = nameLabel.getElement(); if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_settings", "true"))) { settingsLabel = new Label(UIStrings.getSettingsLabel()); settingsLabel.setWordWrap(false); settingsLabel.setTitle(ConferenceGlobals.getTooltip("settings_link")); settingsLabel.addClickListener(this); settingsLabel.setStyleName("console-top-panel-link"); } assistantLabel = new Label(UIGlobals.getAssistantSubTabLabel()); assistantLabel.setWordWrap(false); assistantLabel.setTitle(ConferenceGlobals.getTooltip("assistant_link")); assistantLabel.addClickListener(this); assistantLabel.setStyleName("console-top-panel-link"); if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_info", "true"))) { meetingLabel = new Label(UIStrings.getMeetingInfoLabel()); meetingLabel.setWordWrap(false); meetingLabel.setTitle(ConferenceGlobals.getTooltip("meetinginfo_link")); meetingLabel.addClickListener(this); meetingLabel.setStyleName("console-top-panel-link"); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_sign_out", "true"))) { if (UIGlobals.isPresenter(this.currentUser)) { logoutLabel = new Label(UIStrings.getPresenterSignOutLabel()); } else { logoutLabel = new Label(UIStrings.getAttendeeSignOutLabel()); } logoutLabel.setTitle(ConferenceGlobals.getTooltip("signout_link")); logoutLabel.setWordWrap(false); logoutLabel.addClickListener(this); logoutLabel.setStyleName("console-top-panel-link"); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_feedback", "true"))) { feedbackLabel = new Label(UIStrings.getFeedbackLabel()); feedbackLabel.setTitle(ConferenceGlobals.getTooltip("feedback_link")); feedbackLabel.addClickListener(this); feedbackLabel.setStyleName("console-top-panel-link"); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_about", "true"))) { aboutLabel = new Label(UIStrings.getAboutLabel()); aboutLabel.setTitle(ConferenceGlobals.getTooltip("about_link")); aboutLabel.addClickListener(this); aboutLabel.setStyleName("console-top-panel-link"); } linksLine1.setStyleName("console-top-links-line"); linksLine1.add(nameLabel); linksLine1.setCellVerticalAlignment(nameLabel, VerticalPanel.ALIGN_MIDDLE); if (UIGlobals.isPresenter(this.currentUser)) { if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_settings", "true"))) { linksLine1.add(seperator1); linksLine1.setCellVerticalAlignment(seperator1, VerticalPanel.ALIGN_MIDDLE); linksLine1.add(settingsLabel); linksLine1.setCellVerticalAlignment(settingsLabel, VerticalPanel.ALIGN_MIDDLE); } } if (UIGlobals.isPresenter(this.currentUser) && ConferenceGlobals.isAssistantEnabled()) { linksLine1.add(seperator6); linksLine1.setCellVerticalAlignment(seperator6, VerticalPanel.ALIGN_MIDDLE); linksLine1.add(assistantLabel); linksLine1.setCellVerticalAlignment(assistantLabel, VerticalPanel.ALIGN_MIDDLE); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_info", "true"))) { linksLine1.add(seperator2); linksLine1.setCellVerticalAlignment(seperator2, VerticalPanel.ALIGN_MIDDLE); linksLine1.add(meetingLabel); linksLine1.setCellVerticalAlignment(meetingLabel, VerticalPanel.ALIGN_MIDDLE); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_feedback", "true"))) { linksLine1.add(seperator3); linksLine1.setCellVerticalAlignment(seperator3, VerticalPanel.ALIGN_MIDDLE); linksLine1.add(feedbackLabel); linksLine1.setCellVerticalAlignment(feedbackLabel, VerticalPanel.ALIGN_MIDDLE); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_about", "true"))) { linksLine1.add(seperator4); linksLine1.setCellVerticalAlignment(seperator4, VerticalPanel.ALIGN_MIDDLE); linksLine1.add(aboutLabel); linksLine1.setCellVerticalAlignment(aboutLabel, VerticalPanel.ALIGN_MIDDLE); } if ("true".equalsIgnoreCase(uiParams.getStringParamValue("top_links_sign_out", "true"))) { linksLine1.add(seperator5); linksLine1.setCellVerticalAlignment(seperator4, VerticalPanel.ALIGN_MIDDLE); linksLine1.add(logoutLabel); linksLine1.setCellVerticalAlignment(logoutLabel, VerticalPanel.ALIGN_MIDDLE); } // if (UIGlobals.isOrganizer(this.currentUser)) // { // if (LayoutGlobals.isWhiteboardSupported() && ConferenceGlobals.whiteboardEnabled) // { // String rtmpUrl = UIGlobals.getStreamingUrlsTable().getWhiteboardRtmpUrl(); // String rtmptUrl = UIGlobals.getStreamingUrlsTable().getWhiteboardRtmptUrl(); // // String fullMovieUrl = "swf/wb_2.swf"+"?"+ConferenceGlobals.getConferenceKey()+ // "$"+rtmpUrl+"$"+rtmptUrl+"$2$2"; // this.wbMovie = new DmFlashWidget2("WB2","WB2N", // "2px","2px",fullMovieUrl,"black"); // linksLine1.add(wbMovie); // wbMovie.show(); // } // } // Top links line 2. // linksLine1.setStyleName("console-top-links-line"); links.setStyleName("console-top-links-panel"); links.add(linksLine1); links.setCellHorizontalAlignment(linksLine1, HorizontalPanel.ALIGN_RIGHT); //links.add(linksLine2); //links.setCellHorizontalAlignment(linksLine2,HorizontalPanel.ALIGN_RIGHT); topPanel.add(heading, DockPanel.CENTER); topPanel.setVerticalAlignment(DockPanel.ALIGN_TOP); topPanel.setCellWidth(heading, "100%"); }
From source file:com.dimdim.conference.ui.resources.client.DocUploadPanel.java
License:Open Source License
public DocUploadPanel(String dmsUrl, String meetingId, SelectFileDialogue dialogue, ResourceSharingController sharingController) { initWidget(this.basePanel); this.dmsUrl = dmsUrl; this.meetingId = meetingId; this.sharingController = sharingController; this.dialog = dialogue; //this.docType = docType; //this.fileType = fileType; //this.fileTypeDescription = fileTypeDescription; dmFlashFileUploader = new DmFlashFileUploader(this); // selectedFile = this.addFileBrowseField("", "selectedFile", "", false); //uploadButton = new Label("Start Upload"); //this.basePanel.add(uploadButton); //uploadButton.addClickListener(this); // this.basePanel.add(this.placeholderLabel1); this.basePanel.add(new HTML(" ")); this.basePanel.add(new HTML(" ")); progressCommonWaitMessage = new Label(""); progressCommonWaitMessage.setStyleName("console-label"); progressCommonWaitMessage.addStyleName("common-text"); progressCommonWaitMessage.setWordWrap(true); // progressCommonWaitMessage.setWidth("250px"); progressCommonWaitMessagePanel.add(progressCommonWaitMessage); progressCommonWaitMessagePanel.setCellHeight(progressCommonWaitMessage, "40%"); basePanel.add(progressCommonWaitMessagePanel); basePanel.setCellWidth(progressCommonWaitMessagePanel, "50%"); progressCommonWaitMessage2 = new Label(""); progressCommonWaitMessage2.setStyleName("console-label"); progressCommonWaitMessage2.addStyleName("common-text"); progressCommonWaitMessage2.setWordWrap(true); // progressCommonWaitMessage2.setWidth("250px"); progressCommonWaitMessagePanel2.add(progressCommonWaitMessage2); progressCommonWaitMessagePanel2.setCellHeight(progressCommonWaitMessage2, "40%"); basePanel.add(progressCommonWaitMessagePanel2); // basePanel.setCellWidth(progressCommonWaitMessagePanel2, "50%"); progressMessageLabel = new Label(" "); progressMessageLabel.setWordWrap(false); progressMessageLabel.setStyleName("console-label"); progressMessageLabel.addStyleName("common-text"); progressMessageLabel.addStyleName("common-4px-spacing"); progressMessage = new Label(""); progressMessage.setStyleName("console-label"); progressMessage.addStyleName("common-text"); progressMessage.addStyleName("common-4px-spacing"); this.basePanel.add(new HTML(" ")); waiting = new Image("images/waiting.gif"); progressMessagePanel.add(waiting);//from w w w . ja v a2 s .com progressMessagePanel.setCellHorizontalAlignment(waiting, HorizontalPanel.ALIGN_LEFT); progressMessagePanel.setCellVerticalAlignment(waiting, VerticalPanel.ALIGN_MIDDLE); waiting.setVisible(false); progressMessagePanel.add(progressMessageLabel); progressMessagePanel.setCellWidth(progressMessageLabel, "60%"); progressMessagePanel.setCellHorizontalAlignment(progressMessageLabel, HorizontalPanel.ALIGN_LEFT); progressMessagePanel.setCellVerticalAlignment(progressMessageLabel, VerticalPanel.ALIGN_MIDDLE); Label ll = new Label(" "); progressMessagePanel.add(ll); progressMessagePanel.setCellHorizontalAlignment(ll, HorizontalPanel.ALIGN_LEFT); progressMessagePanel.add(progressMessage); progressMessagePanel.setCellHorizontalAlignment(progressMessage, HorizontalPanel.ALIGN_LEFT); progressMessagePanel.setCellVerticalAlignment(progressMessage, VerticalPanel.ALIGN_MIDDLE); progressMessagePanel.setCellWidth(progressMessage, "30%"); basePanel.add(progressMessagePanel); basePanel.setCellWidth(progressMessagePanel, "100%"); // progressBar = new ProgressBar(20); // progressBar.addStyleName("progressbar-noborder"); // progressBar.setWidth("160px"); // progressBar.setHeight("16px"); // progressBarPanel.add(progressBar); // progressBarPanel.setCellHorizontalAlignment(progressBar, HorizontalPanel.ALIGN_LEFT); // progressBarPanel.add(this.placeholderLabel2); // basePanel.add(progressBarPanel); // basePanel.setCellWidth(progressBarPanel, "40%"); this.pptIDGenerator = new PPTIDGenerator(this.dmsUrl + "/generateDocID2?meetingID=" + this.meetingId, this); //"/generateDocID",this); ClientModel.getClientModel().getRosterModel().extendSessionTimeout(); // dialog.applyButton.setVisible(false); }
From source file:com.dimdim.conference.ui.resources.client.SelectOnlyFileDialog.java
License:Open Source License
protected Widget getContent() { VerticalPanel contentPanel = new VerticalPanel(); contentPanel.setStyleName("powerpoint-info-text"); //Label comment1 = new Label(ResourceGlobals.getResourceGlobals().getSelectFileComment1().replaceAll("file",this.docType)); Label comment1 = new Label(ResourceGlobals.getResourceGlobals().getSelectFileComment1()); comment1.setStyleName("change-photo-picture-caption"); comment1.addStyleName("common-text"); comment1.addStyleName("common-4px-top-bottom-spacing"); comment1.setWordWrap(true);/*from w ww . java 2s . com*/ // comment1.setWidth("200px"); // comment1.setWidth("250px"); contentPanel.add(comment1); contentPanel.add(new HTML(" ")); this.selectFileForm = new FormPanel(); this.selectFileForm.setAction(this.commandURLFactory.getPhotoUploadURL()); this.selectFileForm.setEncoding(FormPanel.ENCODING_MULTIPART); this.selectFileForm.setMethod(FormPanel.METHOD_POST); this.existingFileField = new FileUpload(); this.existingFileField.setName("photo"); this.selectFileForm.add(this.existingFileField); this.existingFileField.setStyleName("photo-file-upload-field"); contentPanel.add(this.selectFileForm); contentPanel.add(new HTML(" ")); this.errorMessage.setStyleName("common-text"); contentPanel.add(this.errorMessage); return contentPanel; }
From source file:com.dimdim.conference.ui.sharing.client.PPTBroadcasterPanel.java
License:Open Source License
/** * The whiteboard resource never changes. So once this widget is * initialized, it will remain on this single resource. *//* www . j a va 2s. c om*/ public void refreshWidget(UIResourceObject resource, int width, int height) { // if (super.requiresRefresh(resource, width, height)) // { super.refreshWidget(resource, width, height); this.setSize(width + "px", height + "px"); CollaborationResources cr = this.container.getCollaborationesources(); this.calculateMovieSize(width, height, cr.getPPTBroadcasterStageAspectRatio(), cr.getPPTBroadcasterMinimumWidth(), cr.getPPTBroadcasterMinimumHeight()); this.moviePanel.setSize(movieWidth + "px", movieHeight + "px"); if (this.movieWidget == null) { super.refreshWidget(resource, width, height); // if (this.movieWidget != null) // { // this.moviePanel.remove(this.movieWidget); // this.movieWidget = null; // } String fullMovieUrl = this.container.getCollaborationesources().getPPTBroadcasterMovieURL() + "?" + this.getPptBroadcasterArgs(resource); SWFParams movieWidgetParams = new SWFParams(fullMovieUrl, "100%", "100%");//movieWidth,movieHeight); movieWidgetParams.setWmode(""); if (ConferenceGlobals.isBrowserSafari()) { movieWidgetParams.setWmode("opaque"); } String s = null; movieWidget = new SWFWidget(movieWidgetParams, "pptMovie", "pptMovieDiv", s); this.moviePanel.add(movieWidget); if (ConferenceGlobals.isBrowserFirefox()) { HTML l = new HTML("<span id=\"forceheight\"> </span>"); this.add(l); } } // } }
From source file:com.dimdim.conference.ui.sharing.client.PPTPlayerPanel.java
License:Open Source License
/** * The whiteboard resource never changes. So once this widget is * initialized, it will remain on this single resource. */// w w w.j av a 2 s.c om public void refreshWidget(UIResourceObject resource, int width, int height) { // if (super.requiresRefresh(resource, width, height)) // { // super.refreshWidget(resource,width,height); super.refreshWidget(resource, width, height); this.setSize(width + "px", height + "px"); CollaborationResources cr = this.container.getCollaborationesources(); this.calculateMovieSize(width, height, cr.getPPTPlayerStageAspectRatio(), cr.getPPTPlayerMinimumWidth(), cr.getPPTPlayerMinimumHeight()); this.moviePanel.setSize(movieWidth + "px", movieHeight + "px"); if (this.movieWidget == null) { // if (this.movieWidget != null) // { // this.remove(this.movieWidget); // this.movieWidget = null; // } String fullMovieUrl = this.container.getCollaborationesources().getPPTPlayerMovieURL() + "?" + this.getPptPlayerArgs(resource); SWFParams movieWidgetParams = new SWFParams(fullMovieUrl, "100%", "100%");//,this.movieWidth,this.movieHeight); movieWidgetParams.setWmode(""); if (ConferenceGlobals.isBrowserSafari()) { movieWidgetParams.setWmode("opaque"); } String s = null; movieWidget = new SWFCallableWidget(movieWidgetParams, "pptMovie", "pptMovieDiv", s); this.moviePanel.add(movieWidget); if (ConferenceGlobals.isBrowserFirefox()) { HTML l = new HTML("<span id=\"forceheight\"> </span>"); this.add(l); } } // } }