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

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

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

Widget.ensureDebugId介绍

暂无

代码示例

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

/**
 * <b>Affected Elements:</b>
 * <ul>
 * <li>-caption = text at the top of the {@link DialogBox}.</li>
 * <li>-content = the container around the content.</li>
 * </ul>
 *
 * @see UIObject#onEnsureDebugId(String)
 */
@Override
protected void onEnsureDebugId(String baseID) {
 super.onEnsureDebugId(baseID);
 caption.asWidget().ensureDebugId(baseID + "-caption");
 ensureDebugId(getCellElement(1, 1), baseID, "content");
}

代码示例来源:origin: stephenh/tessell

@Override
public void ensureDebugId(String id) {
 delegate.ensureDebugId(id);
}

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

@Override
protected void onEnsureDebugId(String baseID) {
  super.onEnsureDebugId(baseID);
  toolbar.ensureDebugId(baseID);
  if (currentNode != null) {
    Object userObject = currentNode.getUserObject();
    if (userObject instanceof Widget) {
      ((Widget) userObject).ensureDebugId(baseID);
    }
  }
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-patternfly

@PostConstruct
private void init() {
  popup = uiBinder.createAndBindUi(this);
  //Setup drop indicator
  if (dropTargetHighlight == null) {
    dropTargetHighlight = Document.get().createDivElement();
    dropTargetHighlight.getStyle().setPosition(Style.Position.ABSOLUTE);
    dropTargetHighlight.getStyle().setVisibility(Visibility.HIDDEN);
    dropTargetHighlight.setClassName(WorkbenchResources.INSTANCE.CSS().dropTargetHighlight());
    Document.get().getBody().appendChild(dropTargetHighlight);
  }
  north.ensureDebugId("CompassWidget-north");
  south.ensureDebugId("CompassWidget-south");
  east.ensureDebugId("CompassWidget-east");
  west.ensureDebugId("CompassWidget-west");
  centre.ensureDebugId("CompassWidget-centre");
}

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

@PostConstruct
private void init() {
  popup = uiBinder.createAndBindUi(this);
  //Setup drop indicator
  if (dropTargetHighlight == null) {
    dropTargetHighlight = Document.get().createDivElement();
    dropTargetHighlight.getStyle().setPosition(Style.Position.ABSOLUTE);
    dropTargetHighlight.getStyle().setVisibility(Visibility.HIDDEN);
    dropTargetHighlight.setClassName(WorkbenchResources.INSTANCE.CSS().dropTargetHighlight());
    Document.get().getBody().appendChild(dropTargetHighlight);
  }
  north.ensureDebugId("CompassWidget-north");
  south.ensureDebugId("CompassWidget-south");
  east.ensureDebugId("CompassWidget-east");
  west.ensureDebugId("CompassWidget-west");
  centre.ensureDebugId("CompassWidget-centre");
}

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

@Override
protected void onEnsureDebugId(String baseID) {
  super.onEnsureDebugId(baseID);
  Widget basicInputWidget = getInputWidget();
  if (basicInputWidget != null) {
    basicInputWidget.ensureDebugId(baseID + "-KSPicker-widget");
  }
  advSearchLink.ensureDebugId(baseID + "-Advanced-Search-anchor");
}

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

private void setDebugId(final Widget widget) {
  widget.ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(layout.getElement().getId()));
}

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

@AssistedInject
public MessageDialogPresenter(
  @NotNull MessageDialogView view,
  @NotNull @Assisted("title") String title,
  @NotNull @Assisted IsWidget content,
  @Nullable @Assisted ConfirmCallback confirmCallback,
  @Nullable @Assisted("confirmButtonText") String confirmButtonText) {
 this.view = view;
 this.view.setContent(content);
 this.view.setTitleCaption(title);
 this.confirmCallback = confirmCallback;
 this.view.setDelegate(this);
 if (content.asWidget() != null) {
  content.asWidget().ensureDebugId("info-window-message");
 }
 if (confirmButtonText != null) {
  view.setConfirmButtonText(confirmButtonText);
 }
}

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

@Override
public void setElementId(String elementId) {
  super.setElementId(elementId);
  listBar.getMaximizeButton().getView().asWidget().ensureDebugId(elementId + "-maximizeButton");
}

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

@Override
public void setElementId(String elementId) {
  super.setElementId(elementId);
  listBar.getMaximizeButton().getView().asWidget().ensureDebugId(elementId + "-maximizeButton");
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * <b>Affected Elements:</b>
 * <ul>
 * <li>-caption = text at the top of the {@link DialogBox}.</li>
 * <li>-content = the container around the content.</li>
 * </ul>
 *
 * @see UIObject#onEnsureDebugId(String)
 */
@Override
protected void onEnsureDebugId(String baseID) {
 super.onEnsureDebugId(baseID);
 caption.asWidget().ensureDebugId(baseID + "-caption");
 ensureDebugId(getCellElement(1, 1), baseID, "content");
}

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

/**
 * <b>Affected Elements:</b>
 * <ul>
 * <li>-caption = text at the top of the {@link DialogBox}.</li>
 * <li>-content = the container around the content.</li>
 * </ul>
 *
 * @see UIObject#onEnsureDebugId(String)
 */
@Override
protected void onEnsureDebugId(String baseID) {
 super.onEnsureDebugId(baseID);
 caption.asWidget().ensureDebugId(baseID + "-caption");
 ensureDebugId(getCellElement(1, 1), baseID, "content");
}

代码示例来源:origin: org.uberfire/uberfire-workbench-client-views-bs2

@Override
public void addPart( final WorkbenchPartPresenter.View view ) {
  final PartDefinition partDefinition = view.getPresenter().getDefinition();
  if ( parts.contains( partDefinition ) ) {
    selectPart( partDefinition );
    return;
  }
  menuArea.setVisible( true );
  parts.add( partDefinition );
  final FlowPanel panel = new FlowPanel();
  Layouts.setToFillParent( panel );
  panel.add( view );
  content.add( panel );
  // IMPORTANT! if you change what goes in this map, update the remove(PartDefinition) method
  partContentView.put( partDefinition, panel );
  final Widget title = buildTitle( view.getPresenter().getTitle(), view.getPresenter().getTitleDecoration() );
  partTitle.put( partDefinition, title );
  title.ensureDebugId( DEBUG_TITLE_PREFIX + view.getPresenter().getTitle() );
  if ( isDndEnabled ) {
    dndManager.makeDraggable( view, title );
  }
  scheduleResize();
}

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

widget.getDefaultTableEditor().ensureDebugId(DebugIdUtils.createWebDriverSafeDebugId(debugId.toString()));

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

public void onKeyboard(KeyboardEvent event) {}
  });
processTree.asWidget().ensureDebugId("process-tree");

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

terminals.put(terminalId, newTerminal);
view.addProcessNode(terminalNode);
terminalWidget.asWidget().ensureDebugId(terminalName);
view.addWidget(terminalId, terminalName, terminalNode.getTitleIcon(), terminalWidget, true);
refreshStopButtonState(terminalId);

相关文章