Exemplo n.º 1
0
  /** {@inheritDoc} */
  @Override
  public void showLocationDetails(
      final String name, final String htmlTitle, final String htmlContent) {
    final MQAPoi point = getMarker(name);
    if (point != null) {
      point.setInfoTitleHTML(htmlTitle);
      point.setInfoContentHTML(htmlContent);
      point.showInfoWindow();

      final NodeList<Element> elements = Document.get().getElementsByTagName("div");
      for (int i = 0; i < elements.getLength(); i++) {
        final Element e = elements.getItem(i);
        if (e.getClassName().equals("mqpoicontenttext")) {
          final Style s = e.getStyle();
          s.setOverflow(Overflow.HIDDEN);
          break;
        }
      }
    }
  }
Exemplo n.º 2
0
  /**
   * Constructor.
   *
   * <p>
   */
  @SuppressWarnings("unused")
  private DebugLog() {

    if (!DEBUG) {
      return;
    }
    m_html = new HTML();
    initWidget(m_html);
    Style style = getElement().getStyle();
    style.setWidth(200, Unit.PX);
    style.setHeight(500, Unit.PX);
    style.setPadding(10, Unit.PX);
    style.setOverflow(Overflow.AUTO);
    style.setBorderStyle(BorderStyle.SOLID);
    style.setBorderColor(I_LayoutBundle.INSTANCE.constants().css().borderColor());
    style.setBorderWidth(1, Unit.PX);
    style.setPosition(Position.FIXED);
    style.setTop(50, Unit.PX);
    style.setRight(50, Unit.PX);
    style.setBackgroundColor(I_LayoutBundle.INSTANCE.constants().css().backgroundColorDialog());
    style.setZIndex(10);
  }