org.apache.wicket.markup.html.list.ListView.size()方法的使用及代码示例

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

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

ListView.size介绍

暂无

代码示例

代码示例来源:origin: apache/wicket

/**
 * @see org.apache.wicket.markup.repeater.AbstractRepeater#renderIterator()
 */
@Override
protected Iterator<Component> renderIterator()
{
  final int size = size();
  return new ReadOnlyIterator<Component>()
  {
    private int index = 0;
    @Override
    public boolean hasNext()
    {
      return index < size;
    }
    @Override
    public Component next()
    {
      final String id = Integer.toString(firstIndex + index);
      index++;
      return get(id);
    }
  };
}

代码示例来源:origin: org.apache.wicket/wicket-core

/**
 * @see org.apache.wicket.markup.repeater.AbstractRepeater#renderIterator()
 */
@Override
protected Iterator<Component> renderIterator()
{
  final int size = size();
  return new ReadOnlyIterator<Component>()
  {
    private int index = 0;
    @Override
    public boolean hasNext()
    {
      return index < size;
    }
    @Override
    public Component next()
    {
      final String id = Integer.toString(firstIndex + index);
      index++;
      return get(id);
    }
  };
}

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

/**
 * @see org.apache.wicket.markup.repeater.AbstractRepeater#renderIterator()
 */
@Override
protected Iterator<Component> renderIterator()
{
  final int size = size();
  return new ReadOnlyIterator<Component>()
  {
    private int index = 0;
    public boolean hasNext()
    {
      return index < size;
    }
    public Component next()
    {
      final String id = Integer.toString(firstIndex + index);
      index++;
      Component c = get(id);
      return c;
    }
  };
}

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

/**
   * @see org.apache.wicket.markup.repeater.AbstractRepeater#renderIterator()
   */
  protected Iterator renderIterator()
  {

    final int size = size();
    return new ReadOnlyIterator()
    {
      private int index = 0;

      public boolean hasNext()
      {
        return index < size;
      }

      public Object next()
      {
        final String id = Integer.toString(firstIndex + index);
        index++;
        Component c = get(id);
        return c;
      }
    };
  }
}

代码示例来源:origin: stackoverflow.com

final CharSequence[] dialogList = list.toArray(new CharSequence[list.size()]);
       final android.app.AlertDialog.Builder builderDialog = new android.app.AlertDialog.Builder(mContext);
       builderDialog.setTitle("Select Item");
       int count = dialogList.length;
       boolean[] is_checked = new boolean[count];
       // Creating multiple selection by using setMutliChoiceItem method
     builderDialog.setMultiChoiceItems(dialogList, is_checked,
         new DialogInterface.OnMultiChoiceClickListener() {
           public void onClick(DialogInterface dialog,
                     int whichButton, boolean isChecked) {
           }
         });
     builderDialog.setPositiveButton("OK",
         new DialogInterface.OnClickListener() {
           @Override
           public void onClick(DialogInterface dialog, int which) {
             ListView list = ((android.app.AlertDialog) dialog).getListView();
            //ListView has boolean array like {1=true, 3=true}, that shows checked items
           }
         });
     builderDialog.setNegativeButton("Cancel",
         new DialogInterface.OnClickListener() {
           @Override
           public void onClick(DialogInterface dialog, int which) {
             ((TextView) myFilesActivity.findViewById(R.id.text)).setText("Click here to open Dialog");
           }
         });
     android.app.AlertDialog alert = builderDialog.create();
     alert.show();

代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket

boolean hasChildren = size() != 0;

代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service

boolean hasChildren = size() != 0;

代码示例来源:origin: apache/wicket

boolean hasChildren = size() != 0;

代码示例来源:origin: org.apache.wicket/wicket-core

boolean hasChildren = size() != 0;

相关文章