com.google.gwt.user.client.ui.Label.getElement()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中com.google.gwt.user.client.ui.Label.getElement()方法的一些代码示例,展示了Label.getElement()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.getElement()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:getElement

Label.getElement介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Gets the widget element's direction.
 * @deprecated Use {@link #getTextDirection} instead
 */
@Deprecated
public Direction getDirection() {
 return BidiUtils.getDirectionOnElement(getElement());
}

代码示例来源:origin: kaaproject/kaa

scope.getElement().getStyle().setFontSize(16, Unit.PX);
scope.getElement().getStyle().setFontWeight(FontWeight.NORMAL);
int horizontalMargin = 15;
scope.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
versionLabel.getElement().getStyle().setFontSize(16, Unit.PX);
versionLabel.getElement().getStyle().setFontWeight(FontWeight.NORMAL);
version = new IntegerListBox();
version.getElement().getStyle().setPadding(5, Unit.PX);

代码示例来源:origin: kaaproject/kaa

Label sdkAefMapsGridLabel = new Label(Utils.constants.aefMaps());
detailsTable.setWidget(++row, 0, sdkAefMapsGridLabel);
sdkAefMapsGridLabel.getElement()
  .getParentElement()
  .getStyle()

代码示例来源:origin: kaaproject/kaa

profileFiltersLabel.getElement()
  .getParentElement()
  .getStyle()
configurationsLabel.getElement()
  .getParentElement()
  .getStyle()
topicsLabel.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10);

代码示例来源:origin: kaaproject/kaa

Label groupsLabel = new Label(Utils.constants.endpointGroups());
detailsTable.setWidget(++row, 0, groupsLabel);
groupsLabel.getElement().getParentElement().getStyle().setPaddingBottom(10, Unit.PX);
detailsTable.setWidget(++row, 0, groupsGrid);
groupsGrid.getElement().getParentElement().getStyle().setPaddingBottom(10, Unit.PX);
detailsTable.setWidget(++row, 0, topicLabel);
detailsTable.getFlexCellFormatter().setColSpan(row, 0, 2);
topicLabel.getElement().getParentElement().getStyle().setPaddingBottom(10, Unit.PX);
detailsTable.setWidget(++row, 0, topicsGrid);
detailsTable.getFlexCellFormatter().setColSpan(row, 0, 2);

代码示例来源:origin: kaaproject/kaa

eventMapLabel.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10);

代码示例来源:origin: kaaproject/kaa

ecfVersionsLabel.getElement().getParentElement().getStyle().setPropertyPx("paddingBottom", 10);

代码示例来源:origin: org.jboss.errai/errai-bus

titleBarLabel.getElement().getStyle().setFontSize(10, Style.Unit.PT);
titleBarLabel.getElement().getStyle().setFontWeight(Style.FontWeight.BOLDER);
titleBarLabel.getElement().getStyle().setColor("white");

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-debugger-ide

/** {@inheritDoc} */
@Override
public void setValueTitle(@NotNull String title) {
 textAreaLabel.getElement().setInnerHTML(title);
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Override
public void setTitleColor(String color) {
 if (color == null || color.isEmpty()) {
  title.getElement().getStyle().clearColor();
 } else {
  title.getElement().getStyle().setColor(color);
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Gets the widget element's direction.
 * @deprecated Use {@link #getTextDirection} instead
 */
@Deprecated
public Direction getDirection() {
 return BidiUtils.getDirectionOnElement(getElement());
}

代码示例来源:origin: kiegroup/appformer

private Label createLabel(String text,
             String color) {
  Label l = new Label(text);
  l.getElement().getStyle().setMarginLeft(3,
                      Style.Unit.PX);
  if (color != null) {
    l.getElement().getStyle().setColor(color);
  }
  return l;
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

/** {@inheritDoc} */
@Override
public void showErrorMessage(RefactoringStatus status) {
 errorLabel.getElement().getStyle().setColor("#C34d4d");
 showMessage(status);
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Override
public void showCommandLine(String commandLine) {
 commandLabel.setText(commandLine);
 Tooltip.create((elemental.dom.Element) commandLabel.getElement(), BOTTOM, MIDDLE, commandLine);
}

代码示例来源:origin: org.jboss.ballroom/widgets

public StatusItem(String name, String title) {
  super(name, title);
  this.widget = new Label();
  this.widget.getElement().setTabIndex(0);
}

代码示例来源:origin: org.eclipse.che.plugin/che-plugin-java-ext-lang-client

/** {@inheritDoc} */
@Override
public void showStatusMessage(RefactoringStatus status) {
 errorLabel.getElement().getStyle().setColor(Style.getMainFontColor());
 showMessage(status);
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Override
public void setExecMode() {
 execLabel.getElement().getStyle().clearDisplay();
 dropdownList.getElement().getStyle().clearDisplay();
 loadAnimation.getElement().getStyle().clearDisplay();
 loadInfo.getElement().getStyle().clearDisplay();
}

代码示例来源:origin: org.eclipse.che.core/che-core-ide-app

@Override
public void setLoadMode() {
 execLabel.getElement().getStyle().setDisplay(Style.Display.NONE);
 dropdownList.getElement().getStyle().setDisplay(Style.Display.NONE);
 loadAnimation.getElement().getStyle().setDisplay(Style.Display.BLOCK);
 loadInfo.getElement().getStyle().setDisplay(Style.Display.INLINE_BLOCK);
}

代码示例来源:origin: com.allen-sauer.gwt.log/gwt-log

@Override
public void onMouseMove(MouseMoveEvent event) {
 if (dragging) {
  int absX = event.getRelativeX(dragHandle.getElement()) + logDockPanel.getAbsoluteLeft();
  int absY = event.getRelativeY(dragHandle.getElement()) + logDockPanel.getAbsoluteTop();
  RootPanel.get().setWidgetPosition(logDockPanel, absX - dragStartX, absY - dragStartY);
 }
}

代码示例来源:origin: org.kuali.student.core/ks-common-ui

public void add(final Widget widget, String text) {
  Element element = DOM.createElement("li");
  element.appendChild(new Label(text).getElement());
  super.add(widget, listElement.appendChild(element));
}

相关文章