Example usage for com.google.gwt.user.client.ui Label Label

List of usage examples for com.google.gwt.user.client.ui Label Label

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui Label Label.

Prototype

protected Label(Element element) 

Source Link

Document

This constructor may be used by subclasses to explicitly use an existing element.

Usage

From source file:com.dimdim.conference.ui.common.client.util.DebugPanel.java

License:Open Source License

public void addDebugMessage(String msg) {
    if (numMessages++ > 100) {
        for (int i = 0; i < 40; i++) {
            this.basePanel.remove(i);
        }/*  w  w  w. j a va2  s. c  o m*/
        numMessages -= 40;
    }
    Label entry = new Label(System.currentTimeMillis() + ":" + msg);
    entry.setWordWrap(true);
    entry.setStyleName("common-text");
    this.basePanel.add(entry);
}

From source file:com.dimdim.conference.ui.common.client.util.DmGlassPanel.java

License:Open Source License

public DmGlassPanel(ModalDialog modalDialog) {
    this.modalDialog = modalDialog;

    Label l = new Label(" ");
    add(basePanel);/*from  w ww  .j  a va 2s. c  o  m*/
    l.addClickListener(this);
    basePanel.add(scrollPanel);
    scrollPanel.add(l);

    basePanel.setSize(Window.getClientWidth() + "px", Window.getClientHeight() + "px");
    scrollPanel.setSize(Window.getClientWidth() + "px", Window.getClientHeight() + "px");
    basePanel.setStyleName("common-glass-panel");
    basePanel.setCellHorizontalAlignment(l, HorizontalPanel.ALIGN_CENTER);
    basePanel.setCellVerticalAlignment(l, VerticalPanel.ALIGN_MIDDLE);
    this.setPopupPosition(0, 0);
}

From source file:com.dimdim.conference.ui.common.client.util.DmGlassPanel2.java

License:Open Source License

public DmGlassPanel2(NonModalPopupPanel popup) {
    this.popup = popup;

    Label l = new Label(" ");
    add(basePanel);//from   w w  w  .  j  a  va  2 s.c o  m
    l.addClickListener(this);
    basePanel.add(scrollPanel);
    scrollPanel.add(l);

    basePanel.setSize(Window.getClientWidth() + "px", Window.getClientHeight() + "px");
    l.setSize(Window.getClientWidth() + "px", Window.getClientHeight() + "px");
    scrollPanel.setSize(Window.getClientWidth() + "px", Window.getClientHeight() + "px");
    basePanel.setStyleName("common-glass-panel-2");
    basePanel.setCellHorizontalAlignment(l, HorizontalPanel.ALIGN_CENTER);
    basePanel.setCellVerticalAlignment(l, VerticalPanel.ALIGN_MIDDLE);
    this.setPopupPosition(0, 0);
}

From source file:com.dimdim.conference.ui.dialogues.client.common.ConferenceClosedHtml.java

License:Open Source License

protected Label createText(String text) {
    Label html = new Label(text);
    html.setStyleName("common-table-text");
    return html;
}

From source file:com.dimdim.conference.ui.dialogues.client.common.ImageButtonPanel2.java

License:Open Source License

public ImageButtonPanel2(String label1, String label2, String name) {
    initWidget(basePanel);//from w w  w .ja va2 s .  c  o m
    //        sinkEvents(Event.ONCLICK | Event.MOUSEEVENTS | Event.ONLOAD | Event.ONERROR);

    this.line1 = new Label(label1);
    //      this.line1.addMouseListener(this);
    //      this.line1.setStyleName("common-text");
    if (label2 != null) {
        this.line2 = new Label(label2);
        //         this.line2.addMouseListener(this);
        //         this.line2.setStyleName("common-text");
        this.line2.setStyleName("anchor-cursor");
    }
    this.basePanel.setStyleName("wizard-label-base");

    baseLeftEdge = new PNGImage("images/assistent/" + name + "-left.png", 12, 63);
    this.basePanel.add(baseLeftEdge);
    this.basePanel.setCellHorizontalAlignment(baseLeftEdge, HorizontalPanel.ALIGN_LEFT);
    this.basePanel.setCellVerticalAlignment(baseLeftEdge, VerticalPanel.ALIGN_MIDDLE);

    this.labelPanel.add(this.line1);
    this.line1.setStyleName("wizard-label");
    this.line1.addStyleName("anchor-cursor");
    this.labelPanel.setCellHorizontalAlignment(this.line1, HorizontalPanel.ALIGN_CENTER);
    this.labelPanel.setCellVerticalAlignment(this.line1, VerticalPanel.ALIGN_MIDDLE);

    this.basePanel.add(this.labelPanel);
    //basePanel.setBorderWidth(1);
    this.labelPanel.setStyleName("wizard-label-lanel");
    this.labelPanel.addStyleName(name + "-label-panel");
    //this.labelPanel.setBorderWidth(1);
    //this.labelPanel.setStyleName("red-label-panel");
    this.basePanel.setCellHeight(this.labelPanel, "100%");
    this.basePanel.setCellHorizontalAlignment(this.labelPanel, HorizontalPanel.ALIGN_LEFT);
    this.basePanel.setCellVerticalAlignment(this.labelPanel, VerticalPanel.ALIGN_MIDDLE);

    baseRightEdge = new PNGImage("images/assistent/" + name + "-right.png", 12, 63);
    this.basePanel.add(baseRightEdge);
    this.basePanel.setCellHorizontalAlignment(baseRightEdge, HorizontalPanel.ALIGN_LEFT);
    this.basePanel.setCellVerticalAlignment(baseRightEdge, VerticalPanel.ALIGN_MIDDLE);
}

From source file:com.dimdim.conference.ui.dialogues.client.common.MeetingInfoHtml.java

License:Open Source License

public MeetingInfoHtml() {
    UIResources uiResources = UIResources.getUIResources();
    //      FlexTable   table = new FlexTable();
    int i = 0;/* w w  w.j  a va2  s  .c  o  m*/
    String subject = uiResources.getConferenceInfoAndDecode64("subject");
    String key = uiResources.getConferenceInfo("key");
    UIRosterEntry host = ClientModel.getClientModel().getRosterModel().getCurrentHost();
    String organizerName = host.getDisplayName();
    //String   organizerName = uiResources.getConferenceInfo("organizerName");
    //organizerName = UIRosterEntry.decodeBase64(organizerName);
    if (organizerName.length() > 50) {
        organizerName = organizerName.substring(0, 50);
    }
    String organizerEmail = uiResources.getConferenceInfo("organizerEmail");
    String startDate = uiResources.getConferenceInfo("startDate");
    String joinURL = uiResources.getConferenceInfo("joinURL");
    //String   mailToTag = "<a href=\"mailto:"+organizerEmail+
    //   "?subject="+subject+"\">"+organizerName+"</a>";

    this.setWidget(i, 0, createLabel(UIStrings.getMeetingInfoSubjectLabel()));
    this.setWidget(i++, 1, createTextHTML(subject));
    this.setWidget(i, 0, createLabel(UIStrings.getMeetingInfoKeyLabel()));
    this.setWidget(i++, 1, createTextHTML(key));
    this.setWidget(i, 0, createLabel(UIStrings.getMeetingInfoOrganizerLabel()));
    this.setWidget(i++, 1, createTextHTML(organizerName));
    this.setWidget(i, 0, createLabel(UIStrings.getMeetingInfoStartTimeLabel()));
    this.setWidget(i++, 1, createTextHTML(startDate));

    if (ConferenceGlobals.showPhoneInfo) {
        //this.setWidget(i, 0, createLabel(UIStrings.getTollFreeInfoLabel()));
        //this.setWidget(i++, 1, createTextHTML(ConferenceGlobals.tollFree));
        if (ConferenceGlobals.internToll.length() > 0) {
            this.setWidget(i, 0, createLabel(UIStrings.getTollInfoLabel()));
            this.setWidget(i++, 1, createTextHTML(ConferenceGlobals.internToll));
        }
        //this.setWidget(i, 0, createLabel(UIStrings.getInternTollFreeLabel()));
        //this.setWidget(i++, 1, createTextHTML(ConferenceGlobals.internTollFree));
        //this.setWidget(i, 0, createLabel(UIStrings.getInternTollLabel()));
        //this.setWidget(i++, 1, createTextHTML(ConferenceGlobals.internToll));
        if (ConferenceGlobals.attendeePasscode.length() > 0) {
            this.setWidget(i, 0, createLabel(UIStrings.getAttendePasscodeLabel()));
            this.setWidget(i++, 1, createTextHTML(ConferenceGlobals.attendeePasscode));
        }
        //this.setWidget(i, 0, createLabel(UIStrings.getModeratorPasscodeLabel()));
        //this.setWidget(i++, 1, createTextHTML(ConferenceGlobals.moderatorPassCode));
    }
    this.setWidget(i, 0, createLabel(UIStrings.getMeetingInfoJoinURLLabel()));
    //if (joinURL.length() > 78)
    //{
    //   joinUrl = new TextBox();
    //   joinUrl.setName("join_URL_text");
    //   joinUrl.setText(joinURL);
    //   joinUrl.setStyleName("common-text");
    //   joinUrl.addStyleName("meeting-info-text");
    //   joinUrl.addStyleName("meeting-info-text-box");
    //   this.setWidget(i++, 1, joinUrl);
    //}
    //else
    //{
    //FocusPanel fp = new FocusPanel();
    //CopyToClipBoard copyListener = new CopyToClipBoard(joinURL);
    //fp.addClickListener(copyListener);
    //HTML htmlTextBox = createTextAreaHTML(joinURL);
    VerticalPanel vp = new VerticalPanel();
    //vp.add(htmlTextBox);
    String fullMovieUrl = ConferenceGlobals.baseWebappURL + "html/layout2/clipbdMeetInfo.swf";

    SWFParams wbWidgetParams = new SWFParams(fullMovieUrl, "334", "18", "#ffffff");
    wbWidgetParams.setWmode("");
    wbWidgetParams.addVar("roomName", key);
    wbWidgetParams.addVar("meetingUrl", joinURL);
    if (ConferenceGlobals.isBrowserSafari()) {
        wbWidgetParams.setWmode("opaque");
    }

    SWFWidget movieWidget = new SWFWidget(wbWidgetParams);
    vp.add(movieWidget);
    Label help = new Label(ConferenceGlobals.getDisplayString("console.copy.url.tooltip",
            "Click on the URL to copy it to Clicpboard."));
    help.setStyleName("common-text");
    help.addStyleName("meeting-info-text");
    vp.add(help);
    //vp.setWidth("350px");
    //vp.setBorderWidth(1);
    //fp.add(vp);

    this.setWidget(i++, 1, vp);

    /*String fullMovieUrl = ConferenceGlobals.baseWebappURL+"html/layout2/clipbdMeetInfo.swf";
            
    SWFParams wbWidgetParams = new SWFParams(fullMovieUrl,"100", "10", "#ff0000");
    wbWidgetParams.setWmode("");
    wbWidgetParams.addVar("roomName", key);
    wbWidgetParams.addVar("meetingUrl", joinURL);
    if(ConferenceGlobals.isBrowserSafari())
    {
       wbWidgetParams.setWmode("opaque");
    }
            
    SWFWidget movieWidget = new SWFWidget(wbWidgetParams);
    this.setWidget(i++, 1, movieWidget);*/

    //}
}

From source file:com.dimdim.conference.ui.dialogues.client.common.UserControlDialog.java

License:Open Source License

protected Label createTextLabel(String text, String styleName) {
    Label html = new Label(text);
    html.setStyleName("common-table-text");
    if (styleName != null) {
        html.addStyleName(styleName);/*from  ww  w.  j av a2s  . c  o  m*/
    }
    return html;
}

From source file:com.dimdim.conference.ui.dialogues.client.InvitationPreviewDialog.java

License:Open Source License

protected Widget getContent() {
    basePanel = new VerticalPanel();
    presenters = new TextArea();
    attendees = new TextArea();
    message = new TextArea();

    //      basePanel.setStyleName("send-invitation-preview-box");
    //      Window.alert("3");

    //      HTML presentersComment = new HTML(UIGlobals.getInvitePresentersComment());
    //      basePanel.add(presentersComment);
    //      basePanel.setCellWidth(presentersComment,"100%");
    //      presentersComment.setStyleName("invitations-preview-comment");
    //      basePanel.add(presenters);
    //      basePanel.setCellWidth(presenters,"100%");
    //      presenters.setStyleName("invitations-preview-textarea");

    HTML line1 = new HTML("&nbsp;");
    line1.setStyleName("line-break");
    basePanel.add(line1);/*from  w  w  w.  j a  va  2s  . c  om*/

    //      Window.alert("4");
    HTML attendeesComment = new HTML(UIGlobals.getInviteAttendeesComment());
    basePanel.add(attendeesComment);
    basePanel.setCellWidth(attendeesComment, "100%");
    attendeesComment.setStyleName("invitations-preview-comment");
    basePanel.add(attendees);
    basePanel.setCellWidth(attendees, "100%");
    attendees.setStyleName("invitations-preview-textarea");

    HTML line2 = new HTML("&nbsp;");
    line2.setStyleName("line-break");
    basePanel.add(line2);

    //      Window.alert("5");
    HTML messageComment = new HTML(UIGlobals.getAddPersonalMessageComment());
    basePanel.add(messageComment);
    basePanel.setCellWidth(messageComment, "100%");
    messageComment.setStyleName("invitations-preview-comment");
    basePanel.add(message);
    message.setVisibleLines(4);
    message.setText(UIGlobals.getDefaultInvitationPersonalMessage());
    basePanel.setCellWidth(message, "100%");
    message.setStyleName("invitations-preview-textarea");

    HTML line3 = new HTML("&nbsp;");
    line3.setStyleName("line-break");
    basePanel.add(line3);

    attendees.setTabIndex(1);
    message.setTabIndex(2);
    //      Window.alert("6");
    if (this.currentAttendees != null) {
        this.attendees.setText(this.currentAttendees);
    }
    if (this.currentPresenters != null) {
        this.presenters.setText(this.currentPresenters);
    }

    errorMessageLabel = new Label(UIStrings.getValidEmailRquired());
    errorMessageLabel.setStyleName("email-error-message");
    errorMessageLabel.setWordWrap(true);
    errorMessageLabel.setVisible(false);
    this.basePanel.add(errorMessageLabel);
    this.basePanel.setCellVerticalAlignment(errorMessageLabel, VerticalPanel.ALIGN_BOTTOM);

    //      RoundedPanel rp = new RoundedPanel(basePanel);
    //      rp.setStyleName("send-invitation-preview-rounded-corner-box");

    //      Window.alert("7");

    attendees.addKeyboardListener(new KeyboardListenerAdapter() {
        public void onKeyDown(Widget arg0, char arg1, int arg2) {
            errorMessageLabel.setVisible(false);
        }
    });

    return basePanel;
}

From source file:com.dimdim.conference.ui.dialogues.client.SettingsDialog.java

License:Open Source License

protected Widget getContent() {
    SettingsModel currentSettings = ClientModel.getClientModel().getSettingsModel();
    RosterModel rosterModel = ClientModel.getClientModel().getRosterModel();
    String currentNetworkProfile = rosterModel.getCurrentUser().getNetProfile();
    String currentImageQuality = rosterModel.getCurrentUser().getImgQuality();
    int currentMaxAudios = rosterModel.getMaximumAttendeeAudios();
    UIParams uiParams = UIParams.getUIParams();
    basePanel = new VerticalPanel();

    //      basePanel.setStyleName("send-invitation-preview-box");
    basePanel.add(this.settingsMainComment);
    basePanel.setCellWidth(this.settingsMainComment, "100%");
    this.settingsMainComment.setStyleName("invitations-preview-comment");

    HTML line0 = new HTML("&nbsp;");
    line0.setStyleName("line-break");
    basePanel.add(line0);/*from w ww .  java  2s  . com*/

    //   Meeting Lobby

    HorizontalPanel lobbyControlButtons = new HorizontalPanel();
    lobbyControlButtons.add(this.meetingLobbyComment);
    lobbyControlButtons.setCellVerticalAlignment(this.meetingLobbyComment, VerticalPanel.ALIGN_MIDDLE);
    this.meetingLobbyComment.setStyleName("invitations-preview-comment");
    this.meetingLobbyComment.addStyleName("settings-item-heading");

    this.enableLobby.setChecked(currentSettings.isLobbyEnabled());
    lobbyControlButtons.add(this.enableLobby);
    lobbyControlButtons.setCellVerticalAlignment(this.enableLobby, VerticalPanel.ALIGN_MIDDLE);
    lobbyControlButtons.add(this.enableLobbyButtonTag);
    lobbyControlButtons.setCellVerticalAlignment(this.enableLobbyButtonTag, VerticalPanel.ALIGN_MIDDLE);
    this.enableLobbyButtonTag.setWordWrap(false);
    this.enableLobbyButtonTag.setStyleName("invitations-preview-comment");
    this.enableLobbyButtonTag.addStyleName("settings-button-tag-text");

    this.disableLobby.setChecked(!currentSettings.isLobbyEnabled());
    lobbyControlButtons.add(this.disableLobby);
    lobbyControlButtons.setCellVerticalAlignment(this.disableLobby, VerticalPanel.ALIGN_MIDDLE);
    lobbyControlButtons.add(this.disableLobbyButtonTag);
    lobbyControlButtons.setCellVerticalAlignment(this.disableLobbyButtonTag, VerticalPanel.ALIGN_MIDDLE);
    this.disableLobbyButtonTag.setWordWrap(false);
    this.disableLobbyButtonTag.setStyleName("invitations-preview-comment");
    this.disableLobbyButtonTag.addStyleName("settings-button-tag-text");

    basePanel.add(lobbyControlButtons);

    //   Network Profile

    if (ConferenceGlobals.publisherEnabled) {
        HTML line1 = new HTML("&nbsp;");
        line1.setStyleName("line-break");
        basePanel.add(line1);

        HorizontalPanel networkProfileButtons = new HorizontalPanel();
        networkProfileButtons.add(this.networkProfileComment);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfileComment, VerticalPanel.ALIGN_MIDDLE);
        this.networkProfileComment.setStyleName("invitations-preview-comment");
        this.networkProfileComment.addStyleName("settings-item-heading");

        this.networkProfile1.setChecked(currentNetworkProfile.equals("1"));
        networkProfileButtons.add(this.networkProfile1);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfile1, VerticalPanel.ALIGN_MIDDLE);
        networkProfileButtons.add(this.networkProfile1ButtonTag);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfile1ButtonTag,
                VerticalPanel.ALIGN_MIDDLE);
        this.networkProfile1ButtonTag.setWordWrap(false);
        this.networkProfile1ButtonTag.setStyleName("invitations-preview-comment");
        this.networkProfile1ButtonTag.addStyleName("settings-button-tag-text");

        this.networkProfile2.setChecked(currentNetworkProfile.equals("2"));
        networkProfileButtons.add(this.networkProfile2);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfile2, VerticalPanel.ALIGN_MIDDLE);
        networkProfileButtons.add(this.networkProfile2ButtonTag);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfile2ButtonTag,
                VerticalPanel.ALIGN_MIDDLE);
        this.networkProfile2ButtonTag.setWordWrap(false);
        this.networkProfile2ButtonTag.setStyleName("invitations-preview-comment");
        this.networkProfile2ButtonTag.addStyleName("settings-button-tag-text");

        this.networkProfile3.setChecked(currentNetworkProfile.equals("3"));
        networkProfileButtons.add(this.networkProfile3);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfile3, VerticalPanel.ALIGN_MIDDLE);
        networkProfileButtons.add(this.networkProfile3ButtonTag);
        networkProfileButtons.setCellVerticalAlignment(this.networkProfile3ButtonTag,
                VerticalPanel.ALIGN_MIDDLE);
        this.networkProfile3ButtonTag.setWordWrap(false);
        this.networkProfile3ButtonTag.setStyleName("invitations-preview-comment");
        this.networkProfile3ButtonTag.addStyleName("settings-button-tag-text");

        basePanel.add(networkProfileButtons);

        //         HTML line2 = new HTML("&nbsp;");
        //         line2.setStyleName("line-break");
        //         basePanel.add(line2);

        //   Image Quality

        //         HorizontalPanel imageQualityButtons = new HorizontalPanel();
        //         imageQualityButtons.add(this.imageQualityComment);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityComment, VerticalPanel.ALIGN_MIDDLE);
        //         this.imageQualityComment.setStyleName("invitations-preview-comment");
        //         this.imageQualityComment.addStyleName("settings-item-heading");
        //         
        //         this.imageQualityLow.setChecked(currentImageQuality.equalsIgnoreCase("low"));
        //         imageQualityButtons.add(this.imageQualityLow);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityLow, VerticalPanel.ALIGN_MIDDLE);
        //         imageQualityButtons.add(this.imageQualityLowButtonTag);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityLowButtonTag, VerticalPanel.ALIGN_MIDDLE);
        //         this.imageQualityLowButtonTag.setWordWrap(false);
        //         this.imageQualityLowButtonTag.setStyleName("invitations-preview-comment");
        //         this.imageQualityLowButtonTag.addStyleName("settings-button-tag-text");
        //         
        //         this.imageQualityMedium.setChecked(currentImageQuality.equalsIgnoreCase("medium"));
        //         imageQualityButtons.add(this.imageQualityMedium);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityMedium, VerticalPanel.ALIGN_MIDDLE);
        //         imageQualityButtons.add(this.imageQualityMediumButtonTag);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityMediumButtonTag, VerticalPanel.ALIGN_MIDDLE);
        //         this.imageQualityMediumButtonTag.setWordWrap(false);
        //         this.imageQualityMediumButtonTag.setStyleName("invitations-preview-comment");
        //         this.imageQualityMediumButtonTag.addStyleName("settings-button-tag-text");
        //         
        //         this.imageQualityHigh.setChecked(currentImageQuality.equalsIgnoreCase("high"));
        //         imageQualityButtons.add(this.imageQualityHigh);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityHigh, VerticalPanel.ALIGN_MIDDLE);
        //         imageQualityButtons.add(this.imageQualityHighButtonTag);
        //         imageQualityButtons.setCellVerticalAlignment(this.imageQualityHighButtonTag, VerticalPanel.ALIGN_MIDDLE);
        //         this.imageQualityHighButtonTag.setWordWrap(false);
        //         this.imageQualityHighButtonTag.setStyleName("invitations-preview-comment");
        //         this.imageQualityHighButtonTag.addStyleName("settings-button-tag-text");
        //         
        //         basePanel.add(imageQualityButtons);
        //         
        //         HTML line3 = new HTML("&nbsp;");
        //         line3.setStyleName("line-break");
        //         basePanel.add(line3);

        // Mouse Track

        //         HorizontalPanel mouseControlButtons = new HorizontalPanel();
        //         mouseControlButtons.add(this.mouseTrackComment);
        //         mouseControlButtons.setCellVerticalAlignment(this.mouseTrackComment, VerticalPanel.ALIGN_MIDDLE);
        //         this.mouseTrackComment.setStyleName("invitations-preview-comment");
        //         this.mouseTrackComment.addStyleName("settings-item-heading");
        //         
        //         this.enableMouseTrack.setChecked(currentSettings.isMouseTrackEnabled());
        //         mouseControlButtons.add(this.enableMouseTrack);
        //         mouseControlButtons.setCellVerticalAlignment(this.enableMouseTrack, VerticalPanel.ALIGN_MIDDLE);
        //         mouseControlButtons.add(this.enableMouseTrackButtonTag);
        //         mouseControlButtons.setCellVerticalAlignment(this.enableMouseTrackButtonTag, VerticalPanel.ALIGN_MIDDLE);
        //         this.enableMouseTrackButtonTag.setWordWrap(false);
        //         this.enableMouseTrackButtonTag.setStyleName("invitations-preview-comment");
        //         this.enableMouseTrackButtonTag.addStyleName("settings-button-tag-text");
        //         
        //         this.disableMouseTrack.setChecked(!currentSettings.isMouseTrackEnabled());
        //         mouseControlButtons.add(this.disableMouseTrack);
        //         mouseControlButtons.setCellVerticalAlignment(this.disableMouseTrack, VerticalPanel.ALIGN_MIDDLE);
        //         mouseControlButtons.add(this.disableMouseTrackButtonTag);
        //         mouseControlButtons.setCellVerticalAlignment(this.disableMouseTrackButtonTag, VerticalPanel.ALIGN_MIDDLE);
        //         this.disableMouseTrackButtonTag.setWordWrap(false);
        //         this.disableMouseTrackButtonTag.setStyleName("invitations-preview-comment");
        //         this.disableMouseTrackButtonTag.addStyleName("settings-button-tag-text");
        //         
        //         basePanel.add(mouseControlButtons);
    } //these settings make sense only whe publisher is enabled

    HTML line5 = new HTML("&nbsp;");
    line5.setStyleName("line-break");
    basePanel.add(line5);

    //   Maximum participants
    HorizontalPanel maxParticipantsPanel = new HorizontalPanel();
    maxParticipantsPanel.add(this.maxParticipantsComment);
    maxParticipantsPanel.setCellVerticalAlignment(this.maxParticipantsComment, VerticalPanel.ALIGN_MIDDLE);
    maxParticipantsComment.setStyleName("invitations-preview-comment");
    maxParticipantsComment.addStyleName("settings-item-heading");

    maxParticipantsOptions = prepareListBox(ConferenceGlobals.currentMaxParticipants,
            uiParams.getMaxParticipantsForAnyMeeting(), 5);
    maxParticipantsPanel.add(maxParticipantsOptions);
    maxParticipantsPanel.setCellVerticalAlignment(maxParticipantsOptions, VerticalPanel.ALIGN_MIDDLE);

    basePanel.add(maxParticipantsPanel);
    basePanel.setCellVerticalAlignment(maxParticipantsPanel, VerticalPanel.ALIGN_MIDDLE);

    HTML line4 = new HTML("&nbsp;");
    line4.setStyleName("line-break");
    basePanel.add(line4);

    String s = ConferenceGlobals.getOverrideMaxParticipants();
    if (s != null && s.equalsIgnoreCase("false")) {
        maxParticipantsOptions.setEnabled(false);
    }

    //   Maximum meeting time

    int hours = ConferenceGlobals.currentMaxMeetingTime / 60;
    int minutes = ConferenceGlobals.currentMaxMeetingTime % 60;

    HorizontalPanel currentMeetingLengthPanel = new HorizontalPanel();
    currentMeetingLengthComment.setStyleName("invitations-preview-comment");
    currentMeetingLengthComment.addStyleName("settings-item-heading");
    currentMeetingLengthPanel.add(currentMeetingLengthComment);
    currentMeetingLengthPanel.setCellVerticalAlignment(currentMeetingLengthComment, VerticalPanel.ALIGN_MIDDLE);

    currentMeetingLengthHoursSuffix.setStyleName("common-text");
    currentMeetingLengthHoursSuffix.addStyleName("common-label");
    currentMeetingLengthMinutesSuffix.setStyleName("common-text");
    currentMeetingLengthMinutesSuffix.addStyleName("common-label");

    Label h = new Label("" + hours);
    h.setStyleName("common-text");
    h.addStyleName("common-label");
    currentMeetingLengthPanel.add(h);
    currentMeetingLengthPanel.setCellVerticalAlignment(h, VerticalPanel.ALIGN_MIDDLE);
    currentMeetingLengthPanel.add(currentMeetingLengthHoursSuffix);
    currentMeetingLengthPanel.setCellVerticalAlignment(currentMeetingLengthHoursSuffix,
            VerticalPanel.ALIGN_MIDDLE);

    Label m = new Label("" + minutes);
    m.setStyleName("common-text");
    m.addStyleName("common-label");
    currentMeetingLengthPanel.add(m);
    currentMeetingLengthPanel.setCellVerticalAlignment(m, VerticalPanel.ALIGN_MIDDLE);
    currentMeetingLengthPanel.add(currentMeetingLengthMinutesSuffix);
    currentMeetingLengthPanel.setCellVerticalAlignment(currentMeetingLengthMinutesSuffix,
            VerticalPanel.ALIGN_MIDDLE);

    basePanel.add(currentMeetingLengthPanel);
    basePanel.setCellVerticalAlignment(currentMeetingLengthPanel, VerticalPanel.ALIGN_MIDDLE);

    HorizontalPanel maxMeetingTimePanel = new HorizontalPanel();
    maxMeetingTimePanel.add(this.maxMeetingTimeComment);
    maxMeetingTimePanel.setCellVerticalAlignment(this.maxMeetingTimeComment, VerticalPanel.ALIGN_MIDDLE);
    maxMeetingTimeComment.setStyleName("invitations-preview-comment");
    maxMeetingTimeComment.addStyleName("settings-item-heading");

    maxMeetingHoursSuffix.setStyleName("invitations-preview-comment");
    maxMeetingMinutesSuffix.setStyleName("invitations-preview-comment");

    prepateMeetingTimeListBoxes(ConferenceGlobals.currentMaxMeetingTime,
            uiParams.getMaxMeetingTimeForAnyMeeting());

    //      maxMeetingTimeOptions = prepareListBox(ConferenceGlobals.currentMaxMeetingTime,
    //            uiParams.getMaxMeetingTimeForAnyMeeting(), 20);

    maxMeetingTimePanel.add(this.maxMeetingHoursOptions);
    maxMeetingTimePanel.setCellVerticalAlignment(maxMeetingHoursOptions, VerticalPanel.ALIGN_MIDDLE);
    maxMeetingTimePanel.add(this.maxMeetingHoursSuffix);
    maxMeetingTimePanel.setCellVerticalAlignment(maxMeetingHoursSuffix, VerticalPanel.ALIGN_MIDDLE);

    maxMeetingTimePanel.add(this.maxMeetingMinutesOptions);
    maxMeetingTimePanel.setCellVerticalAlignment(maxMeetingMinutesOptions, VerticalPanel.ALIGN_MIDDLE);
    maxMeetingTimePanel.add(this.maxMeetingMinutesSuffix);
    maxMeetingTimePanel.setCellVerticalAlignment(maxMeetingMinutesSuffix, VerticalPanel.ALIGN_MIDDLE);

    basePanel.add(maxMeetingTimePanel);
    basePanel.setCellVerticalAlignment(maxMeetingTimePanel, VerticalPanel.ALIGN_MIDDLE);

    HTML line6 = new HTML("&nbsp;");
    line6.setStyleName("line-break");
    basePanel.add(line6);

    //   Maximum attendee mikes
    if (!ConferenceGlobals.isPresenterAVAudioDisabled() && !ConferenceGlobals.isMeetingVideoChat()) {
        HorizontalPanel maxAttendeeMikesPanel = new HorizontalPanel();
        maxAttendeeMikesPanel.add(this.maxAttendeeMikesComment);
        maxAttendeeMikesPanel.setCellVerticalAlignment(this.maxAttendeeMikesComment,
                VerticalPanel.ALIGN_MIDDLE);
        maxAttendeeMikesComment.setStyleName("invitations-preview-comment");
        maxAttendeeMikesComment.addStyleName("settings-item-heading");

        maxAttendeeMikes = new ListBox();
        String sm = getServerMaxAttendeeAudios();
        int smi = (new Integer(sm)).intValue();
        for (int i = currentMaxAudios; i <= smi; i++) {
            maxAttendeeMikes.addItem("" + i);
        }
        maxAttendeeMikesPanel.add(maxAttendeeMikes);
        maxAttendeeMikesPanel.setCellVerticalAlignment(maxAttendeeMikes, VerticalPanel.ALIGN_MIDDLE);
        maxAttendeeMikesPanel.setVisible(false);

        basePanel.add(maxAttendeeMikesPanel);
        basePanel.setCellVerticalAlignment(maxAttendeeMikesPanel, VerticalPanel.ALIGN_MIDDLE);

        HTML line7 = new HTML("&nbsp;");
        line7.setStyleName("line-break");
        line7.setVisible(false);
        basePanel.add(line7);
    }
    //   Track back url

    HorizontalPanel returnURLPanel = new HorizontalPanel();
    returnURLPanel.add(this.returnURLComment);
    returnURLPanel.setCellVerticalAlignment(this.returnURLComment, VerticalPanel.ALIGN_MIDDLE);
    returnURLComment.setStyleName("invitations-preview-comment");
    returnURLComment.addStyleName("settings-item-heading");

    returnURL = new TextBox();
    returnURL.setText(this.getReturnUrlForSettings());
    returnURL.setStyleName("common-text");
    returnURLPanel.add(returnURL);
    returnURLPanel.setCellVerticalAlignment(returnURL, VerticalPanel.ALIGN_MIDDLE);

    basePanel.add(returnURLPanel);
    basePanel.setCellVerticalAlignment(returnURLPanel, VerticalPanel.ALIGN_MIDDLE);

    HTML line8 = new HTML("&nbsp;");
    line8.setStyleName("line-break");
    basePanel.add(line8);

    //      Window.alert("7");
    return basePanel;
}

From source file:com.dimdim.conference.ui.envcheck.client.layout.CheckPanel.java

License:Open Source License

private void setMessageText(String text) {
    //Window.alert("result div id ="+resultTextDivId);
    //Window.alert("div element = "+RootPanel.get(this.resultTextDivId));
    RootPanel.get(this.resultTextDivId).clear();
    RootPanel.get(this.resultTextDivId).add(new Label(""));
    HTML lbl = new HTML(text);
    lbl.setStyleName("console-label");
    RootPanel.get(this.resultTextDivId).add(lbl);
}