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

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

Introduction

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

Prototype

private HTMLPanel(Element elem) 

Source Link

Document

Construct a new HTMLPanel with the specified element.

Usage

From source file:com.xpn.xwiki.gwt.api.client.dialog.EditPropDialog.java

License:Open Source License

/**
 * Choice dialog/* w  ww.j  a v a  2  s  . c  om*/
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 */
public EditPropDialog(XWikiGWTApp app, String name, String html, String formname, String fieldname,
        int buttonModes) {
    super(app, name, new HTMLPanel(html), buttonModes);
    this.formname = formname;
    this.fieldname = fieldname;
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.AnalysisDialog.java

License:Open Source License

public AnalysisDialog(XWikiGWTApp app, String name, int buttonModes, String[] languages) {
    super(app, name, buttonModes);

    this.languages = languages;
    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);/*from  w ww  .j  a  v a2  s.  c  o m*/
    main.add(getLanguageSelectionPanel());
    main.add(getAnalysisPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.CommentAddDialog.java

License:Open Source License

/**
 * Choice dialog/*from www.  ja v  a 2 s.  c o m*/
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 */
public CommentAddDialog(XWikiGWTApp app, String name, int buttonModes) {
    super(app, name, buttonModes);

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);
    main.add(getParametersPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.EditTagsDialog.java

License:Open Source License

/**
 * Choice dialog/*  w  w  w  .  j  a v  a 2s.c  o m*/
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 */
public EditTagsDialog(XWikiGWTApp app, String name, int buttonModes, String tags) {
    super(app, name, buttonModes);
    this.tags = tags;

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);
    main.add(getParametersPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.FeedDeleteDialog.java

License:Open Source License

public FeedDeleteDialog(XWikiGWTApp xWikiGWTApp, String name, Feed feed, AsyncCallback nextCallback) {
    super(xWikiGWTApp, name, Dialog.BUTTON_NEXT | Dialog.BUTTON_CANCEL, nextCallback);

    this.feed = feed;

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));
    String feedTitle = feed.getTitle().trim().length() > 0 ? feed.getTitle() : feed.getName();
    HTMLPanel questionPanel = new HTMLPanel(
            app.getTranslation("removefeed.confirm", new String[] { feedTitle }));
    questionPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(questionPanel);//from  www  . j  av a  2s  .c  o  m
    //create the checkbox
    this.deleteArticlesCheckBox = new CheckBox();
    this.deleteArticlesCheckBox.setText(app.getTranslation(getDialogTranslationName() + ".withArticles"));
    this.deleteArticlesCheckBox.setChecked(false);
    this.deleteArticlesCheckBox.setStyleName(getCSSName("witharticles"));
    main.add(deleteArticlesCheckBox);
    main.add(getActionsPanel());
    this.add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.FeedDialog.java

License:Open Source License

/**
 * Choice dialog/*from   w  w  w  . jav a  2 s  .  c  o m*/
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 * @languages list of available languages
 */
public FeedDialog(XWikiGWTApp app, String name, int buttonModes, Feed feed, String[] languages) {
    super(app, name, buttonModes);
    this.languages = languages;
    this.feed = feed;

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);
    main.add(getParametersPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.GroupDialog.java

License:Open Source License

/**
 * Choice dialog//w w w  .  j  a  v a  2s  .  c o m
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 */
public GroupDialog(XWikiGWTApp app, String name, int buttonModes, Group group) {
    super(app, name, buttonModes);
    this.group = group;

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);
    main.add(getParametersPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.KeywordDialog.java

License:Open Source License

/**
 * Choice dialog/*from w  w w  . j a  v a  2  s .co m*/
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 */
public KeywordDialog(XWikiGWTApp app, String name, int buttonModes, Keyword keyword) {
    super(app, name, buttonModes);
    this.keyword = keyword;

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);
    main.add(getParametersPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.LoadingStatusDialog.java

License:Open Source License

public LoadingStatusDialog(XWikiGWTApp app, String name, int buttonModes) {
    super(app, name, buttonModes);

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    main.add(invitationPanel);/*from w  w w . j  a  va2s . co m*/
    main.add(getContentPanel());
    main.add(getActionsPanel());
    add(main);
}

From source file:com.xpn.xwiki.watch.client.ui.dialog.PressReviewDialog.java

License:Open Source License

/**
 * Choice dialog/*ww  w.ja v a 2 s .  c  o  m*/
 * @param app  XWiki GWT App object to access translations and css prefix names
 * @param name dialog name
 * @param buttonModes button modes Dialog.BUTTON_CANCEL|Dialog.BUTTON_NEXT for Cancel / Next
 */
public PressReviewDialog(XWikiGWTApp app, String name, int buttonModes, String pressReviewPage) {
    super(app, name, buttonModes);
    this.pressReviewPage = pressReviewPage;

    FlowPanel main = new FlowPanel();
    main.addStyleName(getCSSName("main"));

    HTMLPanel invitationPanel = new HTMLPanel(app.getTranslation(getDialogTranslationName() + ".invitation"));
    invitationPanel.addStyleName(getCssPrefix() + "-invitation");
    ScrollPanel scroll = new ScrollPanel(getPressReviewPanel());
    scroll.addStyleName(getCssPrefix() + "-scroll");
    scroll.setHeight("300px");
    main.add(invitationPanel);
    main.add(scroll);
    main.add(getActionsPanel());
    add(main);
}