org.zkoss.zul.Listbox.getChildren()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(78)

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

Listbox.getChildren介绍

暂无

代码示例

代码示例来源:origin: org.zkoss.zk/zul

public int size() {
  int sz = getChildren().size() - _hdcnt;
  if (_listfoot != null)
    --sz;
  if (_paging != null)
    --sz;
  if (_frozen != null)
    --sz;
  return sz;
}

代码示例来源:origin: org.zkoss.zk/zul

public Listitem get(int j) {
  final Component o = Listbox.this.getChildren().get(j + _hdcnt);
  if (o instanceof Listitem)
    return (Listitem) o;
  throw new IndexOutOfBoundsException("Wrong index: " + j);
}

代码示例来源:origin: org.zkoss.zk/zul

private void prepare() {
    if (_it == null)
      _it = cast(getChildren().listIterator(_j + _hdcnt));
  }
}

代码示例来源:origin: org.zkoss.zk/zul

private Component fixRefChildForHeader(Component refChild) {
  if (refChild != null && refChild.getParent() != this)
    refChild = null;
  // try the first listitem
  if (refChild == null || (refChild != _listhead && !(refChild instanceof Auxhead)))
    refChild = getChildren().size() > _hdcnt ? getChildren().get(_hdcnt) : null;
  // try listfoot or paging if no listem
  refChild = fixRefChildBeforeFoot(refChild);
  return refChild;
}

代码示例来源:origin: org.zkoss.zk/zul

/**
 * Returns the Listfoot, if any. Otherwise, null is returned.
 */
public Listfoot getListfoot() {
  int index = getListgroupfootIndex();
  if (index < 0)
    return null;
  final Listbox lb = (Listbox) getParent();
  return (Listfoot) lb.getChildren().get(index);
}

代码示例来源:origin: org.zkoss.zk/zul

private void afterUnmarshal(int index) {
  for (Iterator<Component> it = getChildren().iterator(); it.hasNext();) {
    final Object child = it.next();
    if (child instanceof Listitem) {
      final Listitem li = (Listitem) child;
      li.setIndexDirectly(index++); // since Listitem.clone() resets
      // index
      if (li.isSelected()) {
        _selItems.add(li);
      }
    } else if (child instanceof Listhead) {
      _listhead = (Listhead) child;
    } else if (child instanceof Listfoot) {
      _listfoot = (Listfoot) child;
    } else if (child instanceof Frozen) {
      _frozen = (Frozen) child;
    } else if (child instanceof Paging) {
      _pgi = _paging = (Paging) child;
      addPagingListener(_pgi);
    }
  }
}

代码示例来源:origin: org.zkoss.zk/zul

final int realIndex = getRealIndex(idx) - 1;
if (realIndex >= 0 && realIndex < getItemCount())
  removeChild(getChildren().get(realIndex));

代码示例来源:origin: org.carewebframework/org.carewebframework.vista.security.impl

if (j_domain.getChildren().size() > 0) {
  if (j_domain.getSelectedIndex() == -1) {
    j_domain.setSelectedIndex(0);

代码示例来源:origin: org.zkoss.zk/zul

refChild = getChildren().size() > _hdcnt ? getChildren().get(_hdcnt) : null;

相关文章