Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DecoratedPopupPanel


    if ( ttIcon == null ) {
      ttIcon = Orr.images.question12t().createImage();
    }
   
    if ( popup == null ) {
      popup = new DecoratedPopupPanel(true) {
        public boolean onKeyUpPreview(char key, int modifiers) {
          if ( key == KeyboardListener.KEY_ESCAPE
          ||  key == KeyboardListener.KEY_ENTER ) {
            hide();
            return false;
View Full Code Here


   * Constructor
   * @param tooltip
   */
  public TooltipIcon(String tooltip) {
    ttIcon = Orr.images.question12t().createImage();
    popup = new DecoratedPopupPanel(true) {
      public boolean onKeyUpPreview(char key, int modifiers) {
        if ( key == KeyboardListener.KEY_ESCAPE
        ||  key == KeyboardListener.KEY_ENTER ) {
          hide();
          return false;
View Full Code Here

            hp.add(new PChooser(statusType));

            chooseP.add(hp);
        }
        chooseP.add(new Label("Click Status To Choose"));
        popupP = new DecoratedPopupPanel(true);
        popupP.add(chooseP);
        popupP.addStyleName("TC-Popup");
        popupP.addStyleName("TC-Popup-Status");

        initWidget(lab);
View Full Code Here

            meTextBox.setValue(meLabel.getText());
            meTextBox.addStyleName(resources.css().mePeInput());
            TextBox peTextBox = new TextBox();
            peTextBox.setValue(peLabel.getText());
            peTextBox.addStyleName(resources.css().mePeInput());
            final DecoratedPopupPanel editCalculationItemPopup = new DecoratedPopupPanel(true);
            FlexTable editCalculationItemPopupFlexTable = new FlexTable();
            editCalculationItemPopupFlexTable.setWidget(0, 0, new Label(messages.materialLevel() + ":"));
            editCalculationItemPopupFlexTable.setWidget(0, 1, meTextBox);
            editCalculationItemPopupFlexTable.setWidget(1, 0, new Label(messages.productivityLevel() + ":"));
            editCalculationItemPopupFlexTable.setWidget(1, 1, peTextBox);
            Button applyButton = new Button(messages.apply());
            editCalculationItemPopupFlexTable.setWidget(3, 0, applyButton);
            editCalculationItemPopupFlexTable.getFlexCellFormatter().setColSpan(3, 0, 2);
            editCalculationItemPopup.setWidget(editCalculationItemPopupFlexTable);

            handlerRegistrations.add(editBlueprintButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    Widget source = (Widget) event.getSource();
                    int left = source.getAbsoluteLeft() + 10;
                    int top = source.getAbsoluteTop() + 10;
                    editCalculationItemPopup.setPopupPosition(left, top);
                    editCalculationItemPopup.show();
                }
            }));
            handlerRegistrations.add(applyButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    editCalculationItemPopup.hide();
                }
            }));

            editableCalculationItem.setIndex(index);
            editableCalculationItem.setBlueprintImage(blueprintImage);
View Full Code Here

        meTextBox.setValue(meLabel.getText());
        meTextBox.addStyleName(resources.css().mePeInput());
        TextBox peTextBox = new TextBox();
        peTextBox.setValue(peLabel.getText());
        peTextBox.addStyleName(resources.css().mePeInput());
        final DecoratedPopupPanel editBlueprintInfoPopup = new DecoratedPopupPanel(true);
        FlexTable editBlueprintInfoPopupFlexTable = new FlexTable();
        editBlueprintInfoPopupFlexTable.setWidget(0, 0, new Label(messages.materialLevel() + ":"));
        editBlueprintInfoPopupFlexTable.setWidget(0, 1, meTextBox);
        editBlueprintInfoPopupFlexTable.setWidget(1, 0, new Label(messages.productivityLevel() + ":"));
        editBlueprintInfoPopupFlexTable.setWidget(1, 1, peTextBox);
        TextBox quantityTextBox = new TextBox();
        quantityTextBox.setValue("1");
        quantityTextBox.addStyleName(resources.css().quantityInput());
        editBlueprintInfoPopupFlexTable.setWidget(2, 0, new Label(messages.quantity() + ":"));
        editBlueprintInfoPopupFlexTable.setWidget(2, 1, quantityTextBox);
        Button applyButton = new Button(messages.apply());
        editBlueprintInfoPopupFlexTable.setWidget(3, 0, applyButton);
        editBlueprintInfoPopupFlexTable.getFlexCellFormatter().setColSpan(3, 0, 2);
        editBlueprintInfoPopup.setWidget(editBlueprintInfoPopupFlexTable);

        handlerRegistrations.add(editButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                Widget source = (Widget) event.getSource();
                int left = source.getAbsoluteLeft() + 10;
                int top = source.getAbsoluteTop() + 10;
                editBlueprintInfoPopup.setPopupPosition(left, top);
                editBlueprintInfoPopup.show();
            }
        }));
        handlerRegistrations.add(applyButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                editBlueprintInfoPopup.hide();
            }
        }));

        editableCalculation.setUseAllBlueprintsImage(useAllBlueprintsImage);
        editableCalculation.setMeLabel(meLabel);
View Full Code Here

            meTextBox.setValue(meLabel.getText());
            meTextBox.addStyleName(resources.css().mePeInput());
            TextBox peTextBox = new TextBox();
            peTextBox.setValue(peLabel.getText());
            peTextBox.addStyleName(resources.css().mePeInput());
            final DecoratedPopupPanel editCalculationItemPopup = new DecoratedPopupPanel(true);
            FlexTable editCalculationItemPopupFlexTable = new FlexTable();
            editCalculationItemPopupFlexTable.setWidget(0, 0, new Label(messages.materialLevel() + ":"));
            editCalculationItemPopupFlexTable.setWidget(0, 1, meTextBox);
            editCalculationItemPopupFlexTable.setWidget(1, 0, new Label(messages.productivityLevel() + ":"));
            editCalculationItemPopupFlexTable.setWidget(1, 1, peTextBox);
            Button applyButton = new Button(messages.apply());
            editCalculationItemPopupFlexTable.setWidget(3, 0, applyButton);
            editCalculationItemPopupFlexTable.getFlexCellFormatter().setColSpan(3, 0, 2);
            editCalculationItemPopup.setWidget(editCalculationItemPopupFlexTable);

            handlerRegistrations.add(editBlueprintButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    Widget source = (Widget) event.getSource();
                    int left = source.getAbsoluteLeft() + 10;
                    int top = source.getAbsoluteTop() + 10;
                    editCalculationItemPopup.setPopupPosition(left, top);
                    editCalculationItemPopup.show();
                }
            }));
            handlerRegistrations.add(applyButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    editCalculationItemPopup.hide();
                }
            }));

            editableCalculationItem.setIndex(index);
            editableCalculationItem.setBlueprintImage(blueprintImage);
View Full Code Here

    if ( ttIcon == null ) {
      ttIcon = VineMain.images.question12().createImage();
    }
   
    if ( popup == null ) {
      popup = new DecoratedPopupPanel(true) {
        public boolean onKeyUpPreview(char key, int modifiers) {
          if ( key == KeyboardListener.KEY_ESCAPE
          ||  key == KeyboardListener.KEY_ENTER ) {
            hide();
            return false;
View Full Code Here

   * you wanted override them use the css selector div.chrono-infoWindow-content.
   *
   * FIXME: (MCM) this should be a unique instance of popup: ask Shawn
   */
  public InfoWindow createInfoWindow(String html, double x, double y) {
    final PopupPanel pp = new DecoratedPopupPanel(true);
    pp.addStyleName("chrono-infoWindow");
    Widget content = new HTML(html);
    content.setStyleName("chrono-infoWindow-content");
    pp.setWidget(content);
    pp.setPopupPosition(getElement().getAbsoluteLeft() + (int)x, getElement().getAbsoluteTop() + (int)y);

    GssProperties markerProperties = gssContext.getPropertiesBySelector("marker");
    if (markerProperties != null) {
      pp.getElement().getStyle().setBackgroundColor(markerProperties.bgColor.toString());
      pp.getElement().getStyle().setColor(markerProperties.color.toString());
      pp.getElement().getStyle().setProperty("fontFamily", markerProperties.fontFamily.toString());
      pp.getElement().getStyle().setProperty("fontSize", markerProperties.fontSize.toString());
      pp.getElement().getStyle().setPadding(5, Unit.PX);
    }
    pp.getElement().getStyle().setZIndex(9999);
    pp.show();
   
    return new BrowserInfoWindow(this, pp);
  }
View Full Code Here

    Window.alert("Not yet implemented!");
  }

  public static void showPopup(LoginInfo loginInfo, Widget source)
  {
    final DecoratedPopupPanel simplePopup = new DecoratedPopupPanel(true);
    simplePopup.setWidget(new PopupUsers(loginInfo));
    int left = source.getAbsoluteLeft() - 10;
    int top = source.getAbsoluteTop() + source.getOffsetHeight() + 10;
    simplePopup.setPopupPosition(left, top);
    simplePopup.show();
  }
View Full Code Here

   * @param visible true to show, false to hide
   */
  private static void setGlassPanelVisible(boolean visible) {
    // Initialize the panel.
    if (glassPanel == null) {
      glassPanel = new DecoratedPopupPanel(false, true);
      glassPanel.setWidget(new Label("Loading..."));
    }

    if (visible) {
      // Show the loading panel.
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DecoratedPopupPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.