/**
   * Constructor.
   *
   * @param inSettings the system settings
   * @param inSupportGroup the support domain group
   */
  public SupportStreamHelpPanel(
      final SystemSettings inSettings, final DomainGroupModelView inSupportGroup) {
    Label headerLabel = new Label("Support Stream");
    headerPanel.add(headerLabel);
    headerPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().header());
    contentPanel.add(descriptionPanel);
    add(headerPanel);
    add(contentPanel);

    logoPanel.add(
        new AvatarWidget(
            inSupportGroup.getId(), inSupportGroup.getAvatarId(), EntityType.GROUP, Size.Normal));
    logoPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().supportGroupLogoPanel());

    contentPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().contentPanel());
    contentPanel.add(logoPanel);
    descriptionPanel.add(new Label(inSupportGroup.getDescription()));

    Hyperlink gotoStreamLink =
        new Hyperlink(
            "Go to Stream",
            Session.getInstance()
                .generateUrl(
                    new CreateUrlRequest(
                        Page.GROUPS, inSettings.getSupportStreamGroupShortName())));
    descriptionPanel.add(gotoStreamLink);
    gotoStreamLink.addStyleName(
        StaticResourceBundle.INSTANCE.coreCss().goToSupportGroupStreamLink());

    contentPanel.add(descriptionPanel);
    descriptionPanel.addStyleName(
        StaticResourceBundle.INSTANCE.coreCss().supportGroupDescriptionPanel());
  }
Example #2
0
  public CompositePage() {
    pageTitle.addStyleName("pageTitle");
    pageTitleContainer.addStyleName("pageTitleContainer");
    pageContetntContainer.addStyleName("pageContetntContainer");
    pageTitleContainer.add(pageTitle);

    panel.add(pageTitleContainer);
    panel.add(pageContetntContainer);
    initWidget(panel);
  }
Example #3
0
  /** Create a new GGWToolBar object */
  public GGWToolBar() {
    toolBarPanel = new FlowPanel();
    toolBarPanel.addStyleName("ggbtoolbarpanel");
    // this makes it draggable on SMART board
    toolBarPanel.addStyleName("smart-nb-draggable");

    // For app we set this also in GGWFrameLayoutPanel, but for applets we must set it here
    toolBarPanel.setHeight(GLookAndFeelI.TOOLBAR_HEIGHT + "px");
    initWidget(toolBarPanel);
  }
  // Adds all the content to main panel
  public void initialize() {
    resultPanel = new FlowPanel();
    FlowPanel innerPanel = new FlowPanel();
    innerPanel.addStyleName("content-box");

    innerPanel.add(new HTML("<h2>Search results for " + filterString + "</h2>"));
    onlyLoanableButton = new Button("");
    onlyLoanableButton.addStyleName("onlyLoanable");
    onlyLoanableButton.addClickHandler(
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            onlyLoanable = !onlyLoanable;
            resultsTableList = new ArrayList<ShopItem>(results);
            if (onlyLoanable)
              for (ShopItem i : resultsTableList) if (!i.isLoanable()) resultsTableList.remove(i);
            updateTable();
          }
        });
    innerPanel.add(onlyLoanableButton);
    innerPanel.add(createResultTable());

    resultPanel.add(innerPanel);
    initWidget(resultPanel);
    layout.add(this);
  }
  private Widget newActionContainer(final boolean atEnd) {
    FlowPanel itemActionContainer = new FlowPanel();
    itemActionContainer.addStyleName("itemActionContainer");
    AnchorButton add = new AnchorButton("Ajouter");
    add.getElement().setAttribute("name", "anchor");
    add.addStyleName("button_add");
    add.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            addItemContent(newItemInstance());
            ValueChangeEvent.fire(ExtendedAbstractComponent.this, getValue());
          }

          private void addItemContent(Bloc item) {
            // update data in order to save local widget change
            getValue();
            // where to add
            if (atEnd) {
              addItem(item);
            } else {
              addItem(0, item);
            }
            // refresh widget
            refreshWidget();
          }
        });
    add.setVisible(!isReadOnly());
    itemActionContainer.add(add);
    return itemActionContainer;
  }
  /**
   * panel with a {@link #sensorOnOff "sensor-on-off" button}, a {@link #captionLabel label} with
   * the name of the sensor and a {@link #collapse button} to expand/collapse the settings for this
   * sensor. if sensor is turned off, it stops logging the data values of this sensor.
   */
  private void addCaption() {
    FlowPanel caption = new FlowPanel();
    caption.addStyleName("panelTitle");
    this.captionLabel = new Label();
    updateCaptionLabel();

    collapse =
        new ToggleButton(
            new Image(GuiResources.INSTANCE.collapse()), new Image(GuiResources.INSTANCE.expand()));
    collapse.addStyleName("collapse");
    collapse.addClickHandler(
        new ClickHandler() {

          public void onClick(ClickEvent event) {
            dataValues.setVisible(!collapse.isDown());
          }
        });

    sensorOnOff = new SimplePanel();
    sensorON = new Image(AppResources.INSTANCE.shown());
    sensorOFF = new Image(AppResources.INSTANCE.hidden());
    sensorOnOff.add(sensorOFF);
    sensorOnOff.addStyleName("sensorOnOffButton");

    caption.add(sensorOnOff);
    caption.add(this.captionLabel);
    caption.add(collapse);
    this.add(caption);
  }
Example #7
0
  public WizardPageSelector(
      ArrayList<WizardPage<I, T>> pages, final CommandWithArg<WizardPage<I, T>> onSelected) {
    onSelected_ = onSelected;

    WizardResources res = WizardResources.INSTANCE;
    WizardResources.Styles styles = res.styles();

    FlowPanel pageSelectorPanel = new FlowPanel();
    pageSelectorPanel.addStyleName(styles.wizardPageSelector());
    pageSelectorPanel.setSize("100%", "100%");
    for (int i = 0; i < pages.size(); i++) {
      final WizardPage<I, T> page = pages.get(i);
      PageSelectorItem pageSelector =
          new PageSelectorItem(
              page,
              new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                  onSelected_.execute(page);
                }
              });

      if (i == 0) pageSelector.addStyleName(styles.wizardPageSelectorItemFirst());

      if (i == (pages.size() - 1)) pageSelector.addStyleName(styles.wizardPageSelectorItemLast());

      pageSelectorPanel.add(pageSelector);
    }

    initWidget(pageSelectorPanel);
  }
  private void createAndShowWizardFinishedContentPanel(
      final String jobName, final Button closeButton) {
    final FlowPanel contentPanel = new FlowPanel();
    contentPanel.addStyleName("WizardFinishedPanel");

    if (jobName != null && clientConfig.isScheduleEditor()) {

      contentPanel.add(_loadingIndicator);
      setContent(contentPanel);

      getSchedule(
          new Runnable() {

            @Override
            public void run() {

              final Anchor triggerAnchor = createTriggerAnchor(jobName);
              final Anchor schedulingAnchor = createSchedulingAnchor(jobName);

              // TODO: Previously there was a "Monitor this job's
              // metrics on the dashboard" anchor as well. Add it?

              contentPanel.remove(_loadingIndicator);

              populateContentPanel(jobName, closeButton, contentPanel);
              contentPanel.add(triggerAnchor);
              contentPanel.add(schedulingAnchor);
            }
          },
          jobName);
    } else {
      populateContentPanel(jobName, closeButton, contentPanel);
    }
  }
Example #9
0
  private void addToolbar(Element el, boolean isSetupChunk, AceEditorNative editor) {
    FlowPanel toolbarPanel = new FlowPanel();
    toolbarPanel.addStyleName(ThemeStyles.INSTANCE.inlineChunkToolbar());

    boolean isDark = themes_.isDark(themes_.getEffectiveThemeName(uiPrefs_.theme().getValue()));

    if (isSetupChunk) {
      Image optionsIcon = createOptionsIcon(isDark, true);
      toolbarPanel.add(optionsIcon);
    } else {
      Image optionsIcon = createOptionsIcon(isDark, false);
      optionsIcon.getElement().getStyle().setMarginRight(9, Unit.PX);
      toolbarPanel.add(optionsIcon);

      // Note that 'run current chunk' currently only operates within Rmd
      if (editor.getSession().getMode().getId().equals("mode/rmarkdown")) {
        Image runPreviousIcon = createRunPreviousIcon(isDark);
        runPreviousIcon.getElement().getStyle().setMarginRight(8, Unit.PX);
        toolbarPanel.add(runPreviousIcon);

        Image runIcon = createRunIcon();
        toolbarPanel.add(runIcon);
      }
    }

    display(toolbarPanel, el);
  }
  /** Constructor. */
  public ThumbnailSelectorComposite() {
    selectedThumbnail = new Image();
    selectedThumbnail.addStyleName("thumbnail");
    this.add(selectedThumbContainer);
    selectedThumbContainer.add(selectedThumbnail);

    pagingContainer.addStyleName("thumbnail-selector-controls");
    pagingContainer.add(caption);
    pagingContainer.add(prevThumb);
    prevThumb.addStyleName("previous-arrow");
    pagingContainer.add(nextThumb);
    nextThumb.addStyleName("next-arrow");
    pagingContainer.add(new Label(" | "));
    pagingContainer.add(removeThumbnail);

    ThumbnailSelectorCompositeModel model = new ThumbnailSelectorCompositeModel();
    view = new ThumbnailSelectorCompositeView(model);
    ThumbnailSelectorCompositeController controller =
        new ThumbnailSelectorCompositeController(view, model);

    PropertyMapper mapper =
        new PropertyMapper(
            GWT.create(ThumbnailSelectorComposite.class),
            GWT.create(ThumbnailSelectorCompositeView.class));

    mapper.bind(this, view);

    controller.init();
  }
Example #11
0
 private void setupLoadIndicator() {
   ImageResource imageResource = getResources().getLoadIndicator();
   Image image = new Image(imageResource);
   loadIndicator = new FlowPanel();
   loadIndicator.addStyleName(getResources().css().centered());
   loadIndicator.add(image);
 }
  /**
   * Gets the image.
   *
   * @param imageId the image id.
   * @return the image.
   */
  public FlowPanel getImage(final String imageId) {
    AvatarUrlGenerator urlGenerator = new AvatarUrlGenerator(entityType);
    FlowPanel imageContainer = new FlowPanel();
    imageContainer.addStyleName(StaticResourceBundle.INSTANCE.coreCss().banner());
    imageContainer.add(new Image(urlGenerator.getBannerUrl(imageId)));

    return imageContainer;
  }
 private void init() {
   FlowPanel p = new FlowPanel();
   p.add(new Label(category.getDisplayName()));
   p.add(scrollable);
   p.addStyleName("pagerWrapper");
   scrollable.addStyleName("pager");
   initWidget(p);
 }
Example #14
0
  private void createLanguagePanel() {
    selectLanguagePanel = new FlowPanel();
    selectLanguagePanel.addStyleName("selectLanguage");

    selectLanguagePanel.add(new HTML(R.lang.selectLanguage()));
    selectLanguagePanel.add(
        new Anchor(AbstractImagePrototype.create(R.img.flagEn()).getSafeHtml(), "frontend.jsp"));
    selectLanguagePanel.add(
        new Anchor(
            AbstractImagePrototype.create(R.img.flagDe()).getSafeHtml(), "frontend.jsp?locale=de"));
  }
 /** {@inheritDoc} */
 @Override
 protected ListItem<Attachment> getNewOptionListItem() {
   ListItem<Attachment> newImageOption = new ListItem<Attachment>();
   newImageOption.setData(null);
   FlowPanel newOptionPanel = new FlowPanel();
   newOptionPanel.addStyleName("xNewImagePreview");
   Label newOptionLabel = new Label(Strings.INSTANCE.imageUploadNewFileLabel());
   newOptionPanel.add(newOptionLabel);
   newImageOption.add(newOptionPanel);
   return newImageOption;
 }
Example #16
0
 @Override
 public void callback(Object object) {
   if ((Boolean) object) {
     Image imgLogo = new Image("/branding.png");
     logoPanel.addStyleName("imgSapResearch");
     logoPanel.add(new HTML("powered by"));
     logoPanel.add(imgLogo);
   } else {
     logoPanel.removeFromParent();
   }
 }
 public Widget getWidgetWithHeading(Widget widget, String heading) {
   FlowPanel vPanel = new FlowPanel();
   Label h = new Label(heading);
   h.addStyleName("myAccountHeader");
   h.addStyleName("leftAligned");
   vPanel.add(h);
   vPanel.add(widget);
   vPanel.addStyleName("myAccountPanel");
   widget.addStyleName("myAccountPanelContent");
   return vPanel;
 }
Example #18
0
  public Notification(String text) {
    // this();
    // super(false, false);
    panel.addStyleName("notification");
    panel.addStyleName("greyColorNotifBack");
    panel.addStyleName("greyColor");
    closeButt.addStyleName("closeSmallButtPosition");
    closeButt.addStyleName("notifCloseButtBack");

    closeButt
        .getFocusPanel()
        .addClickHandler(
            new ClickHandler() {

              public void onClick(ClickEvent event) {
                // TODO Auto-generated method stub
                Notification.this.removeFromParent();
                // panel.addStyleName("notificationShowed");
              }
            });

    // panel.addHandler(handler, type)

    // panel.getElement().getStyle().setProperty("opacity", "0");
    // panel.getElement().getStyle().setProperty("height", "0");
    // panel.addStyleName("text_14_black_bold");

    panel.add(closeButt);
    panel.add(new Label(text));
    // panel.add(butt);

    // int left=Window.getClientWidth()-260;
    // setPopupPosition(left, 50);
    show(5000);
    initWidget(panel);

    // panel.onBrowserEvent(event)
    // panel.getElement().getStyle().setProperty("opacity", "1");
    // panel.getElement().getStyle().setProperty("height", "auto");

  }
  /** Class constructor */
  public AppPopUpStandards() {
    super(false);
    // <div
    // class="org-ednovo-gooru-client-mvp-home-library-assign-AssignPopUpCBundle-CollectionAssignCss-assignCloseMarker org-ednovo-gooru-client-mvp-home-library-assign-AssignPopUpCBundle-CollectionAssignCss-assignSprite org-ednovo-gooru-client-mvp-home-library-assign-AssignPopUpCBundle-CollectionAssignCss-assignCloseMark" id="btnCancelButton"></div>
    ShelfCBundle.INSTANCE.css().ensureInjected();
    /*	this.setStyleName(ShelfCBundle.INSTANCE.css().shelfItemPopUp());
    this.setStyleName(ShelfCBundle.INSTANCE.css().standardsBrowsePopup());*/

    mainPanel = new FlowPanel();
    innerPanel = new FlowPanel();
    row = new FlowPanel();
    close = new Anchor();
    mainPanel.setStyleName(LoginPopUpCBundle.INSTANCE.css().PopupMainExtraLarge());
    innerPanel.setStyleName(LoginPopUpCBundle.INSTANCE.css().popupInnerGrey());
    row.setStyleName("row");
    headerPanel = new FlowPanel();
    content = new FlowPanel();
    closeBtn = new FlowPanel();
    headerPanel.setStyleName(LoginPopUpCBundle.INSTANCE.css().popupgreyHeader());
    labletitle = new Label();
    labletitle.setStyleName("col-md-8 col-xs-8");
    closeBtn.addStyleName("col-md-4 col-xs-4");
    closeBtn.addStyleName(LoginPopUpCBundle.INSTANCE.css().closeContainer());
    close.addStyleName(LoginPopUpCBundle.INSTANCE.css().closeButton());
    closeBtn.add(close);

    row.add(labletitle);
    row.add(closeBtn);
    HTMLPanel htmlPanel = new HTMLPanel("");
    htmlPanel.addStyleName("clearfix");
    row.add(htmlPanel);
    headerPanel.add(row);
    innerPanel.add(headerPanel);
    mainPanel.add(innerPanel);
    innerPanel.add(content);

    this.setWidget(mainPanel);
    setGlassEnabled(true);
    setAutoHideOnHistoryEventsEnabled(true);
    getElement().getStyle().setZIndex(200);
  }
 /** {@inheritDoc} */
 @Override
 protected ListItem<Attachment> getListItem(Attachment image) {
   ListItem<Attachment> imageItem = new ListItem<Attachment>();
   imageItem.setData(image);
   Image htmlImage = new Image(image.getUrl() + "?width=135");
   htmlImage.setTitle(new AttachmentReference(image.getReference()).getFileName());
   FlowPanel previewPanel = new FlowPanel();
   previewPanel.addStyleName("xImagePreview");
   previewPanel.add(htmlImage);
   imageItem.add(previewPanel);
   return imageItem;
 }
  /** Constructor. Pass null to prevent a value from being shown. */
  public ConnectionsPanel() {
    Label subheader = new Label("Connections");
    subheader.addStyleName("profile-subheader");
    this.add(subheader);

    this.add(contents);
    contents.addStyleName("connection-count-contents");

    SimplePanel simple = new SimplePanel();
    simple.addStyleName("clear");
    this.add(simple);
  }
Example #22
0
  public Logo() {

    super();
    panel.addStyleName("logo");

    logoButt.addStyleName("logoButt");
    logoButt.addIconStyle("logoButtIcon");

    homeIcon.addStyleName("homeIcon");

    panel.add(homeIcon);
    panel.add(logoButt);

    logoButt
        .getFocusPanel()
        .addMouseOverHandler(
            new MouseOverHandler() {

              public void onMouseOver(MouseOverEvent event) {
                // TODO Auto-generated method stub
                System.out.println("over");
                homeIcon.getElement().getStyle().setProperty("display", "block");
              }
            });

    logoButt
        .getFocusPanel()
        .addMouseOutHandler(
            new MouseOutHandler() {

              public void onMouseOut(MouseOutEvent event) {
                // TODO Auto-generated method stub
                System.out.println("out");
                homeIcon.getElement().getStyle().setProperty("display", "none");
              }
            });

    initWidget(panel);
  }
Example #23
0
  public BestUnit(AlbumObj albumObjj, int poss) {
    this.albumObj = albumObjj;
    this.pos = poss;

    panel.addStyleName("bestUnit");

    /////// Album Image/////////

    albumImage.addStyleName("albumImageBest");
    albumImage
        .getElement()
        .getStyle()
        .setProperty(
            "background",
            "url(\"/extranewgwt/getphoto?photoid="
                + albumObj.getCoverPicID()
                + "\") no-repeat center");
    panel.add(albumImage);

    /////// Rating/////
    likesStatBlock = new LikesStatBlock(albumObj, true);
    likesStatBlock.addStyleName("likesStatBlockBest");
    panel.add(likesStatBlock);

    /////// Position Label//////
    posLabel = new Label(this.pos + 1 + "");
    posLabel.addStyleName("posLabel");
    posLabel.addStyleName("text12_white_bold");
    panel.add(posLabel);

    /////// Name Label//////
    nameLabel = new Label(albumObj.getAlbname());
    nameLabel.addStyleName("nameLabel");
    nameLabel.addStyleName("text11_White");
    panel.add(nameLabel);

    // gotoAlbum.setText("Best" + albumObj.getAlbname());

    albumImage.addClickHandler(
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            // History.back();
            GoogleAnalytics.trackEvent("Pinbelle", "BestBlock_Album_Clicked", "default");
            String params =
                "albid=" + albumObj.getAlbid() + "&coverid=" + albumObj.getCoverImgObjID();
            ClientFactory.getPlaceController().goTo(new ModelPlace(params, false, null));
          }
        });

    initWidget(panel);
  }
Example #24
0
  /**
   * Initialization of the GGWToolbar.
   *
   * @param app1 application
   */
  public void init(AppW app1) {

    this.inited = true;
    this.app = app1;
    toolbars = new ArrayList<ToolBarW>();
    toolBar = new ToolBarW(this);
    toolBPanel = new FlowPanel();
    toolBarPanel.add(toolBar);
    toolBarPanel.add(toolBPanel);
    toolBarPanel.addStyleName("toolbarPanel");
    if (app.isExam()) {
      toolBarPanel.addStyleName("toolbarPanelExam");
    }
    toolBPanel.setStyleName("toolBPanel");

    // toolBarPanel.setSize("100%", "100%");
    toolBar.init(app1);
    addToolbar(toolBar);

    // Adds the Open and Options Button for SMART

    addRightButtonPanel();
  }
  @Override
  public void init() {
    FlowPanel mainPanel = new FlowPanel();

    GroupBoxPanel generalBox = new GroupBoxPanel();
    mainPanel.add(generalBox);

    FlowPanel contentPanel = new FlowPanel();
    contentPanel.addStyleName("BlocCreationViewHeader");
    generalBox.add(contentPanel);

    name = new LabelMarkup();
    contentPanel.add(name);
    contentPanel.add(new LabelMarkup("Commentaire:"));
    comment = new TextArea();
    contentPanel.add(comment);

    GroupBoxPanel iPanel = new GroupBoxPanel();
    iPanel.setText("Serveurs");
    mainPanel.add(iPanel);
    targetListWidget = new NewTargetListWidget(Boolean.FALSE);
    iPanel.add(targetListWidget);

    iPanel = new GroupBoxPanel();
    iPanel.setText("Ressources");
    mainPanel.add(iPanel);
    resourceListWidget = new NewTargetListWidget(Boolean.TRUE);
    iPanel.add(resourceListWidget);

    FlowPanel actionsPanel = new FlowPanel();
    mainPanel.add(actionsPanel);

    cancel = new AnchorButton("Annuler");
    cancel.addStyleName("button_delete");
    cancel.setTitle("Annuler");
    actionsPanel.add(cancel);

    validate = new AnchorButton("Valider");
    validate.addStyleName("button_ok");
    validate.setTitle("Valider les changements");
    actionsPanel.add(validate);

    window = new WindowPopup();
    window.getContent().add(mainPanel);
    window.setCaption("Nouvelle Publication");
    window.setWidth("640px");
    window.center();
    window.show();
  }
Example #26
0
  private Widget generateRemoveWidget() {
    ClickHandler ch =
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            getRemoveCallback().exec(RemovableItem.this);
          }
        };

    itemPanel.addStyleName("KS-Multiplicity-Item");
    Label deleteLabel = new Label("Delete");
    deleteLabel.addStyleName("KS-Multiplicity-Link-Label");
    deleteLabel.addClickHandler(ch);

    return deleteLabel;
  }
Example #27
0
  private void createGUI() {

    setGlassEnabled(true);
    addStyleName("DialogBox");

    btnOK = new Button();
    btnOK.addClickHandler(this);

    btnCancel = new Button();
    btnCancel.addClickHandler(this);
    btnCancel.addStyleName("cancelBtn");

    buttonPanel = new FlowPanel();
    buttonPanel.addStyleName("DialogButtonPanel");

    messagePanel = new HorizontalPanel();
    messagePanel.addStyleName("Dialog-messagePanel");
    messagePanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);

    messageTextPanel = new VerticalPanel();

    mainPanel = new FlowPanel();
    mainPanel.addStyleName("Dialog-content");
  }
Example #28
0
  public PasswordWidget() {

    Label ls1 = new Label("Password");
    Label ls2 = new Label("Verify Password");

    HorizontalPanel hpS1 = new HorizontalPanel();
    hpS1.setSpacing(4);
    hpS1.add(ls1);
    hpS1.add(tbS1);
    hpS1.add(pSecretCount1);

    // secret 2
    HorizontalPanel hpS2 = new HorizontalPanel();
    hpS2.setSpacing(4);
    hpS2.add(ls2);
    hpS2.add(tbS2);
    hpS2.add(pSecretCount2);

    // secret container
    pSecret.add(pSecretError);
    pSecret.add(hpS1);
    pSecret.add(hpS2);

    pSecretCount1.add(new HTML("0"));
    pSecretCount2.add(new HTML("0"));

    pWidget.add(pSecret);

    initWidget(pWidget);

    tbS1.setWidth("300px");
    tbS2.setWidth("300px");

    tbS1.addChangeHandler(this);
    tbS2.addChangeHandler(this);
    tbS1.addKeyPressHandler(this);
    tbS2.addKeyPressHandler(this);

    pSecretError.addStyleName("core-CreateUserAccount-Error");
    hpS1.setCellVerticalAlignment(ls1, VerticalPanel.ALIGN_MIDDLE);
    hpS2.setCellVerticalAlignment(ls2, VerticalPanel.ALIGN_MIDDLE);
    hpS1.setCellVerticalAlignment(pSecretCount1, VerticalPanel.ALIGN_MIDDLE);
    hpS2.setCellVerticalAlignment(pSecretCount2, VerticalPanel.ALIGN_MIDDLE);
    pSecretCount1.setStyleName("core-CreateUserAccount-CharCountError");
    pSecretCount2.setStyleName("core-CreateUserAccount-CharCountError");
    ls1.setStyleName("core-CreateUserAccount-Field");
    ls2.setStyleName("core-CreateUserAccount-Field");
  }
  /**
   * Creates a new page selector from search results.
   *
   * @param wikiService the service used to search wiki pages
   */
  public SearchSelectorWizardStep(WikiServiceAsync wikiService) {
    super(wikiService);

    display().addStyleName("xPagesSearch");
    // create the search widget
    FlowPanel searchPanel = new FlowPanel();
    searchPanel.addStyleName("xSearchForm");
    searchBox = new TextBox();
    searchBox.setTitle(Strings.INSTANCE.linkWikipageSearchTooltip());
    Button searchButton = new Button(Strings.INSTANCE.linkWikipageSearchButton());
    searchButton.addClickHandler(this);
    searchBox.addKeyPressHandler(this);
    searchPanel.add(searchBox);
    searchPanel.add(searchButton);
    display().insert(searchPanel, 0);
  }
Example #30
0
  private void initSlider() {

    mySlider = new Slider(0, 100);
    mySlider.setMajorTickSpacing(25);
    mySlider.setMinorTickSpacing(5);
    mySlider.addChangeHandler(this);
    Slider.addInputHandler(mySlider.getElement(), this);

    sliderLabel = new Label();
    FlowPanel panel = new FlowPanel();
    panel.add(mySlider);
    panel.add(sliderLabel);
    sliderLabel.addStyleName("popupSliderLabel");
    panel.addStyleName("panelRow");
    myPopup.getPanel().add(panel);
  }