public TransferElementPanel() {

    mainPnl = new FlowPanel();
    nodeList = new ArrayList<String>();
    container = new FlowPanel();
    container.setStyleName("trnsfrElmt-containerPnl");

    closeBtn = new Button();
    closeBtn.setStyleName("endpt-list-pnl-close-btn");

    HTMLPanel hdr = new HTMLPanel("Transfer Element");
    hdr.setStyleName("trnsfrElmnt-list-hdr");
    hdr.add(closeBtn);

    trnsfrElmntOkBtn = new SwitchButton("OK");
    trnsfrElmntOkBtn.setStyleName("priLvl-btn");
    FlowPanel btnPnl = new FlowPanel();
    btnPnl.setStyleName("trnsfrElem-btnPnl");
    btnPnl.add(trnsfrElmntOkBtn);

    nodeContainer = new FlowPanel();
    nodeContainer.setStyleName("node-wdgt-cntr");
    container.add(hdr);
    container.add(nodeContainer);
    container.add(btnPnl);

    mainPnl.setStyleName("endpt-list-pnl");
    mainPnl.add(container);
    // mainPnl.add(btnPnl);

    hide();

    initWidget(mainPnl);
  }
Exemplo n.º 2
0
  @Override
  protected Widget onInitialization() {
    setHeight100();

    lockInfo = new LockInfoWidget();
    HeaderWidget header = new HeaderWidget();
    sidebar = new SwitcherWidget(true);
    workarea.setStyleName("Workspace-body-center-content");

    ScrollPanel workareaScroller =
        new ScrollPanel(Gwt.createDiv("Workspace-body-center-content", workarea));
    workareaScroller.getElement().setId("workarea-scroller");
    workareaScroller.setHeight("100%");
    workarea.setScrollPanel(workareaScroller);

    FlowPanel body = new FlowPanel();
    body.setStyleName("Workspace-body");
    body.add(Gwt.createDiv("Workspace-body-west", sidebar));
    body.add(Gwt.createDiv("Workspace-body-center", workareaScroller));

    FlowPanel workspace = Gwt.createFlowPanel(Gwt.createDiv("Workspace-header", header), body);
    workspace.setStyleName("Workspace");

    locker = new LockWidget(workspace);

    return new FullscreenPanel(locker);
  }
Exemplo n.º 3
0
  private void countCharacters(int input, TextBox tb) {

    int ilen = tb.getText().length();
    String len = Integer.toString(ilen);

    switch (input) {
      case 3: // secret 1
        pSecretCount1.clear();
        pSecretCount1.add(new HTML(len));
        if (ilen > consumerSecret_Len) {
          pSecretCount1.removeStyleName("core-CreateUserAccount-CharCountError");
          pSecretCount1.setStyleName("core-CreateUserAccount-CharCountPass");
        } else {
          pSecretCount1.setStyleName("core-CreateUserAccount-CharCountError");
          pSecretCount1.removeStyleName("core-CreateUserAccount-CharCountPass");
        }
        break;
      case 4: // secret 2
        pSecretCount2.clear();
        pSecretCount2.add(new HTML(len));
        if (ilen > consumerSecret_Len) {
          pSecretCount2.removeStyleName("core-CreateUserAccount-CharCountError");
          pSecretCount2.setStyleName("core-CreateUserAccount-CharCountPass");
        } else {
          pSecretCount2.setStyleName("core-CreateUserAccount-CharCountError");
          pSecretCount2.removeStyleName("core-CreateUserAccount-CharCountPass");
        }
        break;
    }
  }
Exemplo n.º 4
0
  public SettingsPageGenerated() {

    FlowPanel flowPanel = new FlowPanel();
    flowPanel.setStyleName("gwt-SettingsPage");
    initWidget(flowPanel);
    flowPanel.setSize("100%", "100%");

    FlowPanel flowPanel_1 = new FlowPanel();
    flowPanel.add(flowPanel_1);
    flowPanel_1.setStyleName("gwt-insidePanel");

    Label lblZmieHaso = new Label("Zmień hasło");
    flowPanel_1.add(lblZmieHaso);
    lblZmieHaso.setStyleName("gwt-GroupLabel");

    FlexTable flexTable = new FlexTable();
    flexTable.setStyleName("gwt-table");
    flowPanel_1.add(flexTable);

    Label lblStareHaso = new Label("STARE HASŁO");
    lblStareHaso.setStyleName("gwt-LabelCustom");
    flexTable.setWidget(0, 0, lblStareHaso);

    oldPassTextBox = new PasswordTextBox();
    flexTable.setWidget(0, 1, oldPassTextBox);

    Label lblNoweHaso = new Label("NOWE HASŁO");
    lblNoweHaso.setStyleName("gwt-LabelCustom");
    flexTable.setWidget(1, 0, lblNoweHaso);

    newPassTextBox = new PasswordTextBox();
    flexTable.setWidget(1, 1, newPassTextBox);

    Label lblPowtrzHaso = new Label("POWTÓRZ HASŁO");
    lblPowtrzHaso.setStyleName("gwt-LabelCustom");
    flexTable.setWidget(2, 0, lblPowtrzHaso);
    flexTable.getCellFormatter().setHorizontalAlignment(2, 0, HasHorizontalAlignment.ALIGN_RIGHT);
    flexTable.getCellFormatter().setHorizontalAlignment(1, 0, HasHorizontalAlignment.ALIGN_RIGHT);
    flexTable.getCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_RIGHT);

    newPassConfirmTextBox = new PasswordTextBox();
    flexTable.setWidget(2, 1, newPassConfirmTextBox);

    changePassButton = new Button("New button");
    changePassButton.setStyleName("gwt-ButtonCustom");
    changePassButton.setText("Zmień");
    flexTable.setWidget(3, 1, changePassButton);
    flexTable.getCellFormatter().setHorizontalAlignment(3, 1, HasHorizontalAlignment.ALIGN_RIGHT);

    errorLabel = new Label("");
    errorLabel.setStyleName("gwt-LabelErr");
    flowPanel_1.add(errorLabel);
  }
Exemplo n.º 5
0
  public AnimationSpeedPanelW(AnimationSpeedModel m, final AppW app) {
    super(app.getLocalization(), app.getLocalization().getMenu("AnimationSpeed"));
    this.app = app;
    model = m;
    model.setListener(this);
    setModel(model);
    modeLabel = new Label();

    InputPanelW inputPanel = new InputPanelW(null, app, -1, false);
    tfAnimSpeed = inputPanel.getTextComponent();
    FlowPanel mainPanel = new FlowPanel();
    FlowPanel speedPanel = new FlowPanel();
    FlowPanel repeatPanel = new FlowPanel();
    speedPanel.setStyleName("optionsPanel rows");
    repeatPanel.setStyleName("optionsPanel rows");
    speedPanel.add(getLabel());
    speedPanel.add(tfAnimSpeed);
    repeatPanel.add(modeLabel);
    repeatPanel.add(getListBox());
    // mainPanel.add(LayoutUtil.panelRow(speedPanel, repeatPanel));
    mainPanel.add(LayoutUtilW.panelRowVertical(getLabel(), tfAnimSpeed));
    mainPanel.add(LayoutUtilW.panelRowVertical(modeLabel, getListBox()));
    setWidget(mainPanel);

    tfAnimSpeed.addKeyHandler(
        new KeyHandler() {

          public void keyReleased(KeyEvent e) {
            if (e.isEnterKey()) {
              doActionPerformed();
            }
          }
        });

    tfAnimSpeed.enableGGBKeyboard();

    tfAnimSpeed.addFocusListener(
        new FocusListenerW(this) {

          @Override
          protected void wrapFocusGained() {}

          @Override
          protected void wrapFocusLost() {
            doActionPerformed();
          }
        });
    tfAnimSpeed.requestToShowSymbolButton();
  }
Exemplo n.º 6
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");
  }
  @Override
  public void showCodeResult(QuickCodeCallResult result) {
    loadingBar.setVisible(false);
    quickCodeResult.clear();
    quickCodeResult.setVisible(true);

    resultStatusTextBox.setVisible(true);
    resultStatusTextBox.removeStyleName(style.errorTextBoxQuickCard());
    resultStatusTextBox.removeStyleName(style.successTextBoxQuickCard());
    resultStatusTextBox.addStyleName(style.successTextBoxQuickCard());

    if (result == null) {
      resultStatusTextBox.setText(MSG_RESULT_NULL);
    } else {
      resultStatusTextBox.setText(MSG_SUCCESS);
      List<MCLResultSetTable> resultSetTableList = result.getResultSetTableList();
      for (int i = 0; i < resultSetTableList.size(); i++) {
        MCLResultSetTable table = resultSetTableList.get(i);
        ResultSetTable tab = new ResultSetTable(String.valueOf(i + 1) + ". result", table);
        FlowPanel wrapper = new FlowPanel();
        wrapper.add(tab);
        wrapper.setStyleName(style.resultWrapperQuickCard());
        quickCodeResult.add(wrapper);
      }
    }
  }
Exemplo n.º 8
0
  public DetailContentPanel(GroupDetail detail) {
    _detail = detail;

    setStyleName("ContentPanel");
    add(_title = MsoyUI.createSimplePanel(null, "ContentPanelTitle"));

    // contains content and discussions button for css min-height
    FlowPanel container = new FlowPanel();
    container.setStyleName("ContentPanelContainer");
    add(container);
    container.add(_content = new SimplePanel());
    _content.setStyleName("ContentPanelContent");

    // back to discussions button hidden by default
    container.add(_backButton = new Label(_msgs.detailBackToDiscussions()));
    _backButton.setVisible(false);
    _backButton.addStyleName("actionLabel");
    _backButton.addStyleName("ContentBackButton");
    ClickHandler backClick =
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            showDiscussions();
          }
        };
    _backButton.addClickHandler(backClick);
  }
Exemplo n.º 9
0
  public BlogEntry(Entry entry, Blog blog) {
    setStyleName(CssClasses.BLOG_ENTRY);

    this.blog = blog;

    HTML msg = new HTML();
    msg.setHTML(entry.getText());
    msg.setStyleName(CssClasses.BLOG_TEXT);

    Label author = new Label();
    author.setText(entry.getAuthor().getName());
    author.setStyleName(CssClasses.AUTHOR);

    Label date = new Label();
    date.setText(DateTimeFormat.getFormat("dd. MMM yyyy, HH:mm").format(entry.getDate()));
    date.setStyleName(CssClasses.DATE);

    commentContainer.setStyleName(CssClasses.BLOG_ENTRY_COMMENT_CONTAINER);

    add(msg);
    add(date);
    add(author);
    add(new Separator());
    add(new CommentForm(this));
    add(commentContainer);
  }
Exemplo n.º 10
0
  private void createGUI() {
    optionsPanel = new FlowPanel();
    optionsPanel.setStyleName("algebraOptions");
    lblShow = new Label();
    lblShow.addStyleName("panelTitle");
    showAuxiliaryObjects = new CheckBox();
    showAuxiliaryObjects.addClickHandler(this);
    lblSortMode = new Label();
    lblSortMode.addStyleName("panelTitle");
    lblDescriptionMode = new Label();
    lblDescriptionMode.addStyleName("panelTitle");
    sortMode = new ListBox();
    description = new ListBox();

    optionsPanel.add(lblShow);
    optionsPanel.add(LayoutUtil.panelRowIndent(showAuxiliaryObjects));
    optionsPanel.add(lblSortMode);
    optionsPanel.add(LayoutUtil.panelRowIndent(sortMode));
    optionsPanel.add(lblDescriptionMode);
    optionsPanel.add(LayoutUtil.panelRowIndent(description));
    sortMode.addChangeHandler(this);
    description.addChangeHandler(
        new ChangeHandler() {

          public void onChange(ChangeEvent event) {
            app.getKernel().setAlgebraStyle(description.getSelectedIndex());
            app.getKernel().updateConstruction();
          }
        });
    // updateSortMode(); done by setLabels
    // updateDescription(); done by set labels
    setLabels();
  }
Exemplo n.º 11
0
  private void createGUI() {

    getCaption().setText(app.getMenu("Exercise.CreateNew"));

    setWidget(mainWidget = new VerticalPanel());
    addDomHandlers(mainWidget);
    assignmentsTable = new FlexTable();
    FlexCellFormatter cellFormatter = assignmentsTable.getFlexCellFormatter();
    cellFormatter.setColSpan(0, 1, 2);

    assignmentsTable.setWidget(0, 1, new Label(app.getPlain("Tool")));
    assignmentsTable.setWidget(0, 2, new Label(app.getPlain("HintForCorrect")));
    assignmentsTable.setWidget(0, 3, new Label(app.getPlain("Fraction")));

    createAssignmentsTable();
    checkAssignmentsTable = new FlexTable();
    checkAssignmentsTable.setVisible(false);

    mainWidget.add(assignmentsTable);
    mainWidget.add(checkAssignmentsTable);

    addList = new UnorderedList();
    addDomHandlers(addList);
    // addIcon = new ListItem();
    Image addIcon = new Image(GuiResources.INSTANCE.menu_icon_file_new());
    ListItem addListItem = new ListItem();
    addListItem.addStyleName("toolbar_item");
    addListItem.add(addIcon);
    addList.add(addListItem);

    userAddModes = new ToolbarSubemuW(app, 1);
    userAddModes.addStyleName("toolbar_item");
    userAddModes.setVisible(false);
    for (int i = 0; i < app.getKernel().getMacroNumber(); i++) {
      if (!exercise.usesMacro(i)) {
        ListItem item = userAddModes.addItem(i + EuclidianConstants.MACRO_MODE_ID_OFFSET);
        addDomHandlers(item);
      }
    }
    addList.add(userAddModes);
    mainWidget.add(addList);

    mainWidget.add(bottomWidget = new FlowPanel());
    bottomWidget.setStyleName("DialogButtonPanel");

    btApply = new Button(app.getPlain("OK"));
    btApply.addClickHandler(this);
    btApply.getElement().getStyle().setMargin(3, Style.Unit.PX);

    addCancelButton();

    btTest = new Button(app.getPlain("Test"));
    btTest.addClickHandler(this);
    btTest.getElement().getStyle().setMargin(3, Style.Unit.PX);

    bottomWidget.add(btTest);
    bottomWidget.add(btApply);
    // bottomWidget.add(btCancel);

  }
  /**
   * Page widgets.
   *
   * @param cellTree the cell tree
   */
  public void createPageView(CellTree cellTree) {
    this.cellTree = cellTree;
    mainPanel.setStyleName("div-wrapper"); // main div

    SimplePanel leftPanel = new SimplePanel();
    leftPanel.getElement().setId("leftPanel_SimplePanel");
    leftPanel.setStyleName("div-first bottomPadding10px"); // left side div which will  have tree

    SimplePanel rightPanel = new SimplePanel();
    rightPanel.getElement().setId("rightPanel_SimplePanel");
    rightPanel.setStyleName("div-second"); // right div having tree creation inputs.

    VerticalPanel treePanel = new VerticalPanel();
    treePanel.getElement().setId("treePanel_VerticalPanel");
    HorizontalPanel expandCollapse = new HorizontalPanel();
    expandCollapse.getElement().setId("expandCollapse_HorizontalPanel");
    expandCollapse.setStyleName("leftAndTopPadding");
    expandCollapse.setSize("100px", "20px");
    buttonExpand.setStylePrimaryName("expandAllButton");
    buttonCollapse.setStylePrimaryName("collapseAllButton");
    buttonExpand.setTitle("Expand All (Shift +)");
    buttonCollapse.setTitle("Collapse All (Shift -)");
    expandCollapse.add(buttonExpand);
    expandCollapse.add(buttonCollapse);
    buttonExpand.setFocus(true);
    buttonCollapse.setVisible(true);

    treePanel.add(expandCollapse);
    treePanel.add(cellTree);
    leftPanel.add(treePanel);

    SimplePanel bottomSavePanel = new SimplePanel();
    bottomSavePanel.getElement().setId("bottomSavePanel_SimplePanel");
    bottomSavePanel.setStyleName("div-first buttonPadding");
    VerticalPanel vp = new VerticalPanel();
    HorizontalPanel savePanel = new HorizontalPanel();
    savePanel.getElement().setId("savePanel_VerticalPanel");
    savePanel.add(new SpacerWidget());
    //		savePanel.add(errorMessageDisplay);
    vp.add(successMessageDisplay);
    //		saveBtn.setTitle("Ctrl+Alt+s");
    savePanel.add(saveBtn);
    validateBtn.setTitle("Validate");
    savePanel.add(validateBtn);
    vp.add(warningMessageDisplay);
    vp.add(savePanel);
    bottomSavePanel.add(vp);

    SimplePanel errPanel = new SimplePanel();
    errPanel.getElement().setId("errPanel_SimplePanel");
    errPanel.add(errorMessageDisplay);
    mainPanel.add(errPanel);
    mainPanel.add(leftPanel);
    mainPanel.add(rightPanel);
    mainPanel.add(bottomSavePanel);
    focusPanel.addKeyDownHandler(this);
    focusPanel.addFocusHandler(this);
    cellTreeHandlers();
  }
Exemplo n.º 13
0
 public CategoriesList(Resources resources) {
   this.resources = resources;
   this.categoryNodeElements = Collections.createArray();
   root = new FlowPanel();
   initWidget(root);
   root.setStyleName(resources.defaultCategoriesListCss().listContainer());
   selectionManager = new SelectionManager();
 }
Exemplo n.º 14
0
  /**
   * Constructor.
   *
   * @param pSelectorCallback called when the selector is clicked. Must <b>not</b> be <code>null
   *     </code>.
   * @param pMoreArrowCallback called when the 'More' arrow is clicked. Must <b>not</b> be <code>
   *     null</code>.
   */
  public CbGenericListItem(
      final CbSelectorCallbackIF<W> pSelectorCallback,
      final CbMoreArrowCallbackIF<W> pMoreArrowCallback) {
    // dummy widget we put on the panel until the display widget is set in setDisplayWidget()
    Label dummy = new Label("<dummy>"); // $NON-NLS-1$

    // image shown when the marker is active
    Image markerActive = new Image(CbConstants.IMG_BUNDLE.markerActive());
    markerActive.setStyleName(CbConstants.CSS.ccColMarker());
    markerActive.setVisible(false);
    Image markerPassive = new Image(CbConstants.IMG_BUNDLE.markerPassive());
    markerPassive.setStyleName(CbConstants.CSS.ccColMarker());

    CbMoreArrow moreArrow = new CbMoreArrow(pMoreArrowCallback.getTooltipText());
    moreArrow.addStyleName(CbConstants.CSS.cbMoreArrowLabelSmaller());

    iDisplayWidgetWrapper = new FlowPanel();
    iDisplayWidgetWrapper.add(dummy);
    iDisplayWidgetWrapper.setStyleName(CbConstants.CSS.cbDisplayWidgetWrapper());

    final FlowPanel fp = new FlowPanel();
    fp.setStyleName(CbConstants.CSS.cbGeneralListItem());
    fp.add(markerActive);
    fp.add(markerPassive);
    fp.add(iDisplayWidgetWrapper);
    fp.add(moreArrow);

    final ClickHandler clickHandler =
        new ClickHandler() {
          @Override
          public void onClick(final ClickEvent pEvent) {
            int pos = COL_SELECTOR;
            if (!fp.getWidget(pos).isVisible()) {
              pos++;
            }
            if (CbUtil.isInside(fp.getWidget(pos), pEvent)) {
              pSelectorCallback.onItemSelected(CbGenericListItem.this);
            } else {
              pMoreArrowCallback.onMoreArrowClicked(CbGenericListItem.this);
            }
          }
        };
    addClickHandler(clickHandler);
    initWidget(fp);
  }
Exemplo n.º 15
0
  public static FlowPanel panelRow(IsWidget... widgets) {
    FlowPanel p = new FlowPanel();
    for (IsWidget widget : widgets) {
      p.add(widget);
    }
    p.setStyleName("panelRow");

    return p;
  }
Exemplo n.º 16
0
  /**
   * Default constructor.
   *
   * @param aUserProfile
   * @param aListener
   */
  public UserPreferencesWidget(UserProfile aUserProfile) {
    super();
    myUserProfile = aUserProfile;
    // set the css style name
    myOuterPanel.setStyleName("bos_user_preferences_widget");
    myOuterPanel.add(buildUserPreferences());

    this.initWidget(myOuterPanel);
  }
Exemplo n.º 17
0
 public MenuChoice(Widget aChoiceContent, Command aCommand) {
   super();
   myChoiceOuterPanel = new FlowPanel();
   myChoiceOuterPanel.setStyleName("menu_choice");
   myChoiceOuterPanel.add(aChoiceContent);
   myCommand = aCommand;
   enabled = true;
   addDomHandler(this, ClickEvent.getType());
   this.initWidget(myChoiceOuterPanel);
 }
Exemplo n.º 18
0
 @Override
 public Widget getWidget() {
   if (isExists()) {
     FlowPanel p = new FlowPanel();
     p.setStyleName("partnership_desk");
     p.add(partnershipDesk = new PartnershipDeskPanel());
     return p;
   } else {
     return null;
   }
 }
Exemplo n.º 19
0
  public SimpleFormPanel(
      VerticalFieldContainer.Factory containerFactory, FormFieldWidgetFactory widgetFactory) {
    FormPanelStyles.INSTANCE.ensureInjected();

    this.containerFactory = containerFactory;
    this.widgetFactory = widgetFactory;

    panel = new FlowPanel();
    panel.setStyleName(FormPanelStyles.INSTANCE.formPanel());
    scrollPanel = new ScrollPanel(panel);
  }
Exemplo n.º 20
0
  /** 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);
  }
Exemplo n.º 21
0
  /** Creates a display panel to hold an image, e.g. tabletext */
  private void createImagePanel() {

    imagePanel = new FlowPanel();
    if (app.has(Feature.JLM_IN_WEB)) {
      latexCanvas = Canvas.createIfSupported();
      imagePanel.add(latexCanvas);
    } else {
      imageContainer = new Label();
      imagePanel.add(imageContainer);
    }
    imagePanel.setStyleName("daImagePanel");
  }
  public ChangePriorityLvlPanel() {

    closeBtn = new Button();
    closeBtn.setStyleName("endpt-list-pnl-close-btn");

    HTMLPanel hdr = new HTMLPanel("Change Priority Level");
    hdr.setStyleName("endpt-list-hdr");
    hdr.add(closeBtn);

    container = new FlowPanel();

    container.add(hdr);

    priLvlCntnrWdgt = new FlowPanel();
    priLvlCntnrWdgt.setStyleName("priLvl-wdgt-cntr");

    buildPriLvlPnls();

    container.add(priLvlCntnrWdgt);

    priLvlBtnCntr = new FlowPanel();
    priLvlBtnCntr.setStyleName("priLvl-btn-pnl");

    prilvlBtn = new SwitchButton("OK");
    prilvlBtn.setStyleName("priLvl-btn");

    priLvlBtnCntr.add(prilvlBtn);

    container.add(priLvlBtnCntr);

    mainPnl = new FlowPanel();

    mainPnl.setStyleName("endpt-list-pnl");
    mainPnl.add(container);

    hide();

    initWidget(mainPnl);
  }
Exemplo n.º 23
0
  @Override
  protected Widget onInitialization() {
    new RequestCommentsServiceCall(parent.getId()).execute(); // TODO commentsManagerComponent

    activateCommentLink = new HyperlinkWidget(new ActivateCommentEditorAction());

    widgets = new HashMap<Comment, CommentWidget>();

    containerPanel = new FlowPanel();
    containerPanel.setStyleName("CommentsWidget");

    return containerPanel;
  }
  /** Creates new component design panel for non-visible components. */
  public SimpleNonVisibleComponentsPanel() {
    // Initialize UI
    VerticalPanel panel = new VerticalPanel();
    panel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);

    heading = new Label("");
    heading.setStyleName("ya-NonVisibleComponentsHeader");
    panel.add(heading);

    componentsPanel = new FlowPanel();
    componentsPanel.setStyleName("ode-SimpleUiDesignerNonVisibleComponents");
    panel.add(componentsPanel);

    initWidget(panel);
  }
Exemplo n.º 25
0
  /** constructor */
  public LoginUiHorizontal() {

    HorizontalPanel hp = new HorizontalPanel();
    hp.add(wLoading);
    hp.add(pUi);

    pWidget.add(hp);

    initWidget(pWidget);

    // observers
    bLogin.addClickListener(this);
    bForgot.addClickListener(this);

    tbConsumerKey.addClickListener(this);
    tbConsumerKey.addChangeListener(this);
    tbConsumerKey.addKeyboardListener(this);
    tbConsumerKey.addFocusListener(this);

    tbConsumerSecret.addClickListener(this);
    tbConsumerSecret.addChangeListener(this);
    tbConsumerSecret.addKeyboardListener(this);
    tbConsumerSecret.addFocusListener(this);

    tbConsumerSecretPass.addClickListener(this);
    tbConsumerSecretPass.addChangeListener(this);
    tbConsumerSecretPass.addKeyboardListener(this);
    tbConsumerSecretPass.addFocusListener(this);

    cbRemberMe.addKeyboardListener(this);
    cbRemberMe.addClickListener(this);

    hAccountLogin.addClickListener(this);
    hForgotPassword.addClickListener(this);

    // style
    pWidget.setStyleName("login-Ui");

    // defaults
    pError.setVisible(false);

    hp.setCellVerticalAlignment(wLoading, VerticalPanel.ALIGN_MIDDLE);

    // debug
    // pWidget.addStyleName("test2");

  }
  public HorizontalScrollWrapper(ListBox listBox) {
    id = getListBoxWrapperUIId(listBox);

    FlowPanel container = new FlowPanel();
    container.getElement().setId(id);
    container.setStyleName("scrollable-horizontally");

    SimplePanel helperDiv = new SimplePanel();
    Label dummyText = new Label("&nbsp");
    dummyText.setStyleName("invisible-font");
    helperDiv.add(dummyText);

    container.add(listBox);
    container.add(helperDiv);

    initWidget(container);
  }
Exemplo n.º 27
0
  @Override
  protected void onInitUI() {
    super.onInitUI();

    tokenLabel = new CopyableLabel("");
    tokenLabel.addStyleName(Gerrit.RESOURCES.css().oauthToken());

    expiresLabel = new Label("");
    expiresLabel.addStyleName(Gerrit.RESOURCES.css().oauthExpires());

    grid = new Grid(2, 2);
    grid.setStyleName(Gerrit.RESOURCES.css().infoBlock());
    grid.addStyleName(Gerrit.RESOURCES.css().oauthInfoBlock());
    add(grid);

    expiredNote = new Label(Util.C.labelOAuthExpired());
    expiredNote.setVisible(false);
    add(expiredNote);

    row(grid, 0, Util.C.labelOAuthToken(), tokenLabel);
    row(grid, 1, Util.C.labelOAuthExpires(), expiresLabel);

    CellFormatter fmt = grid.getCellFormatter();
    fmt.addStyleName(0, 0, Gerrit.RESOURCES.css().topmost());
    fmt.addStyleName(0, 1, Gerrit.RESOURCES.css().topmost());
    fmt.addStyleName(1, 0, Gerrit.RESOURCES.css().bottomheader());

    flow = new FlowPanel();
    flow.setStyleName(Gerrit.RESOURCES.css().oauthPanel());
    add(flow);

    Label netrcLabel = new Label(Util.C.labelOAuthNetRCEntry());
    netrcLabel.setStyleName(Gerrit.RESOURCES.css().oauthPanelNetRCHeading());
    flow.add(netrcLabel);
    netrcValue = new CopyableLabel("");
    netrcValue.setStyleName(Gerrit.RESOURCES.css().oauthPanelNetRCEntry());
    flow.add(netrcValue);

    Label cookieLabel = new Label(Util.C.labelOAuthGitCookie());
    cookieLabel.setStyleName(Gerrit.RESOURCES.css().oauthPanelCookieHeading());
    flow.add(cookieLabel);
    cookieValue = new CopyableLabel("");
    cookieValue.setStyleName(Gerrit.RESOURCES.css().oauthPanelCookieEntry());
    flow.add(cookieValue);
  }
  /**
   * Constructor.
   *
   * @param page the {@link CloudCoderPage}
   * @param labelText the label text
   */
  public LabeledCourseSelectionListBox(CloudCoderPage page, String labelText) {
    FlowPanel panel = new FlowPanel();

    panel.setStyleName("cc-inlineFlowPanel", true);

    if (!labelText.endsWith(" ")) {
      labelText = labelText + " ";
    }

    InlineLabel label = new InlineLabel(labelText);
    panel.add(label);
    this.courseSelectionListBox = new CourseSelectionListBox(page, 1);
    panel.add(courseSelectionListBox);
    courseSelectionListBox.setWidth(LISTBOX_WIDTH_PX + "px");
    courseSelectionListBox.setHeight(HEIGHT_PX + "px");

    initWidget(panel);
  }
Exemplo n.º 29
0
  @Override
  protected Widget onInitialization() {
    new RequestCommentsServiceCall(parent.getId()).execute(); // TODO commentsManagerComponent

    activateCommentLink = new HyperlinkWidget(new ActivateCommentEditorAction());

    widgets = new HashMap<Comment, CommentWidget>();

    editorWrapper = new SimplePanel();
    editorWrapper.setWidget(activateCommentLink);

    commentListPanel = new FlowPanel();

    FlowPanel panel = new FlowPanel();
    panel = new FlowPanel();
    panel.setStyleName("CommentsWidget");
    panel.add(editorWrapper);
    panel.add(commentListPanel);
    return panel;
  }
Exemplo n.º 30
0
  @Override
  protected Widget onInitialization() {
    cardSlotsWrapper = new SimplePanel();
    handCardsWrapper = new SimplePanel();
    actionsWrapper = new SimplePanel();

    FlowPanel pokerTable = new FlowPanel();
    pokerTable.setStyleName("PlanningPokerWidget-table");
    pokerTable.add(createTableBranding());
    pokerTable.add(cardSlotsWrapper);
    if (getCurrentProject().isTeamMember(getCurrentUser())) {
      pokerTable.add(Gwt.createSpacer(1, 20));
      pokerTable.add(handCardsWrapper);
    }
    pokerTable.add(Gwt.createSpacer(1, 20));
    pokerTable.add(actionsWrapper);

    SimplePanel pokerTableBorder = Gwt.createDiv("PlanningPokerWidget-table-border", pokerTable);

    return pokerTableBorder;
  }