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

x33g5p2x  于2022-01-30 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(120)

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

Tree.removeItem介绍

[英]Removes an item from the root level of this tree.
[中]

代码示例

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

/**
 * Removes an item from the root level of this tree.
 *
 * @param isItem the wrapper of item to be removed
 */
@Override
public void removeItem(IsTreeItem isItem) {
 if (isItem != null) {
  TreeItem item = isItem.asTreeItem();
  removeItem(item);
 }
}

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

/**
 * Removes this item from its tree.
 */
public void remove() {
 if (parent != null) {
  // If this item has a parent, remove self from it.
  parent.removeItem(this);
 } else if (tree != null) {
  // If the item has no parent, but is in the Tree, it must be a top-level
  // element.
  tree.removeItem(this);
 }
}

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

/**
 * Removes all items from the root level of this tree.
 */
@Override
public void removeItems() {
 while (getItemCount() > 0) {
  removeItem(getItem(0));
 }
}

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

/**
 * Removes an item from the root level of this tree.
 *
 * @param isItem the wrapper of item to be removed
 */
@Override
public void removeItem(IsTreeItem isItem) {
 if (isItem != null) {
  TreeItem item = isItem.asTreeItem();
  removeItem(item);
 }
}

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

/**
 * Removes this item from its tree.
 */
public void remove() {
 if (parent != null) {
  // If this item has a parent, remove self from it.
  parent.removeItem(this);
 } else if (tree != null) {
  // If the item has no parent, but is in the Tree, it must be a top-level
  // element.
  tree.removeItem(this);
 }
}

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

/**
 * Removes an item from the root level of this tree.
 *
 * @param isItem the wrapper of item to be removed
 */
@Override
public void removeItem(IsTreeItem isItem) {
 if (isItem != null) {
  TreeItem item = isItem.asTreeItem();
  removeItem(item);
 }
}

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

/**
 * Removes this item from its tree.
 */
public void remove() {
 if (parent != null) {
  // If this item has a parent, remove self from it.
  parent.removeItem(this);
 } else if (tree != null) {
  // If the item has no parent, but is in the Tree, it must be a top-level
  // element.
  tree.removeItem(this);
 }
}

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

/**
 * Removes all items from the root level of this tree.
 */
@Override
public void removeItems() {
 while (getItemCount() > 0) {
  removeItem(getItem(0));
 }
}

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

/**
 * Removes all items from the root level of this tree.
 */
@Override
public void removeItems() {
 while (getItemCount() > 0) {
  removeItem(getItem(0));
 }
}

相关文章