org.jboss.errai.common.client.dom.Window.getDocument()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.7k)|赞(0)|评价(0)|浏览(83)

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

Window.getDocument介绍

暂无

代码示例

代码示例来源:origin: org.uberfire/uberfire-layout-editor-client

@Override
public HTMLElement createContainer() {
  Div div = (Div) Window.getDocument().createElement("div");
  return div;
}

代码示例来源:origin: org.uberfire/uberfire-layout-editor-client

@Override
public HTMLElement createRow(LayoutRow layoutRow) {
  Div div = (Div) Window.getDocument().createElement("div");
  div.setClassName("row");
  return div;
}

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

@Override
public HTMLElement createRow(LayoutRow layoutRow) {
  Div div = (Div) Window.getDocument().createElement("div");
  div.setClassName("row");
  return div;
}

代码示例来源:origin: org.jbpm/jbpm-wb-process-runtime-client

public void addAction(final EventListener<MouseEvent> onclick,
             final String label) {
    final HTMLElement a = getDocument().createElement("a");
    a.setTextContent(label);
    a.setOnclick(onclick);

    final HTMLElement li = getDocument().createElement("li");
    li.appendChild(a);
    actionsItems.appendChild(li);
  }
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}

代码示例来源:origin: org.kie.workbench.forms/kie-wb-common-dynamic-forms-client

@Override
public HTMLElement createColumn(LayoutColumn layoutColumn) {
  Div div = (Div) Window.getDocument().createElement("div");
  String colSize = ColumnSizeBuilder.buildColumnSize(new Integer(layoutColumn.getSpan()));
  div.setClassName(colSize);
  return div;
}

代码示例来源:origin: kiegroup/jbpm-wb

private void appendHorizontalRule() {
  final HTMLElement hr = getDocument().createElement("hr");
  addCSSClass(hr,
        "kie-dock__divider");
  filterList.appendChild(hr);
}

代码示例来源:origin: kiegroup/jbpm-wb

@Override
public void setPotentialOwnersInfo(final List<String> owners) {
  removeAllChildren(usersGroupsControlsPanel);
  owners.forEach(owner -> {
    HTMLElement li = getDocument().createElement("li");
    li.setTextContent(owner);
    usersGroupsControlsPanel.appendChild(li);
  });
}

代码示例来源:origin: org.uberfire/uberfire-layout-editor-client

@Override
public HTMLElement createColumn(LayoutColumn layoutColumn) {
  Div div = (Div) Window.getDocument().createElement("div");
  String colSize = ColumnSizeBuilder.buildColumnSize(new Integer(layoutColumn.getSpan()));
  div.setClassName(colSize);
  return div;
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}

代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client

private Option newOption(final String text,
             final String value) {
  final Option option = (Option) Window.getDocument().createElement("option");
  option.setTextContent(text);
  option.setValue(value);
  return option;
}

代码示例来源:origin: kiegroup/jbpm-wb

public void displayDisabledAction(final CaseRolesPresenter.CaseRoleAction action) {
  removeCSSClass(actions,
          "hidden");
  final HTMLElement li = getDocument().createElement("li");
  final HTMLElement a = getDocument().createElement("a");
  a.setTextContent(action.label());
  addCSSClass(li,
        "disabled");
  li.appendChild(a);
  actionsItems.appendChild(li);
}

代码示例来源:origin: kiegroup/jbpm-wb

private void appendFormGroup(final HTMLElement element) {
  Div div = (Div) getDocument().createElement("div");
  addCSSClass(div,
        "form-group");
  div.appendChild(element);
  filterList.appendChild(div);
}

代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client

public void displayDisabledAction(final CaseRolesPresenter.CaseRoleAction action) {
  removeCSSClass(actions,
          "hidden");
  final HTMLElement li = getDocument().createElement("li");
  final HTMLElement a = getDocument().createElement("a");
  a.setTextContent(action.label());
  addCSSClass(li,
        "disabled");
  li.appendChild(a);
  actionsItems.appendChild(li);
}

代码示例来源:origin: kiegroup/jbpm-wb

private void appendSectionTitle(final String title) {
  final Heading heading = (Heading) getDocument().createElement("h5");
  heading.setTextContent(title);
  addCSSClass(heading,
        "kie-dock__heading--section");
  filterList.appendChild(heading);
}

代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client

public void addAction(final CaseCommentsPresenter.CaseCommentAction action) {
  removeCSSClass(actionsButton,
          "disabled");
  final HTMLElement a = getDocument().createElement("a");
  a.setTextContent(action.label());
  a.setOnclick(e -> action.execute());
  final HTMLElement li = getDocument().createElement("li");
  li.appendChild(a);
  actionsItems.appendChild(li);
}

代码示例来源:origin: org.jbpm/jbpm-wb-case-mgmt-client

public void addAction(final CaseActionsPresenter.CaseActionAction action) {
  removeCSSClass(actions,
          "hidden");
  final HTMLElement a = getDocument().createElement("a");
  a.setTextContent(action.label());
  a.setOnclick(e -> action.execute());
  final HTMLElement li = getDocument().createElement("li");
  li.appendChild(a);
  actionsItems.appendChild(li);
}

代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client

private HTMLElement defaultOption() {
  final HTMLElement option = Window.getDocument().createElement("option");
  option.setAttribute("value",
            "");
  option.setAttribute("disabled",
            "");
  option.setAttribute("selected",
            "");
  option.setTextContent(translationService.getTranslation(SourceConfigurationPageView_SelectOption_placeholder));
  return option;
}

代码示例来源:origin: org.guvnor/guvnor-ala-ui-client

private HTMLElement defaultOption() {
  final HTMLElement option = Window.getDocument().createElement("option");
  option.setAttribute("value",
            "");
  option.setAttribute("disabled",
            "");
  option.setAttribute("selected",
            "");
  option.setTextContent(translationService.getTranslation(SourceConfigurationPageView_SelectOption_placeholder));
  return option;
}

代码示例来源:origin: org.dashbuilder/dashbuilder-navigation-client

@Override
  public void infiniteRecursionError(String cause) {
    Div div = (Div) Window.getDocument().createElement("div");
    div.setClassName(slidesDiv.getChildNodes().getLength() == 0 ? "item active" : "item");
    alertBox.setMessage(NavigationConstants.INSTANCE.navCarouselDragComponentInfiniteRecursion() + " " + cause);
    div.appendChild(alertBox.getElement());
    slidesDiv.appendChild(div);
  }
}

相关文章

Window类方法