本文整理了Java中org.apache.wicket.markup.html.list.ListView.get()
方法的一些代码示例,展示了ListView.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.get()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.list.ListView
类名称:ListView
方法名:get
[英]Gets the list of items in the listView. This method is final because it is not designed to be overridden. If it were allowed to be overridden, the values returned by getModelObject() and getList() might not coincide.
[中]获取listView中的项列表。此方法是最终方法,因为它不是被重写的。如果允许重写它,则getModelObject()和getList()返回的值可能不一致。
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
public Component next()
{
final String id = Integer.toString(firstIndex + index);
index++;
Component c = get(id);
return c;
}
};
代码示例来源:origin: org.wicketstuff/wicketstuff-minis
private CharSequence getListViewBodyMarkup(final ListView listView)
{
if (listView.getList().isEmpty())
return "";
final ListItem listItem = (ListItem)listView.get("0");
return getBodyMarkup(listItem);
}
代码示例来源:origin: apache/wicket
item = (ListItem<T>)get(Integer.toString(index));
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
item = (ListItem<T>)get(Integer.toString(index));
代码示例来源:origin: org.apache.wicket/wicket-core
item = (ListItem<T>)get(Integer.toString(index));
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
if (hasChildren)
item = (ListItem)get(Integer.toString(index));
if (item == null)
代码示例来源:origin: org.wicketstuff/minis
private CharSequence getListViewBodyMarkup(final ListView listView)
{
if (listView.getList().isEmpty())
return "";
final ListItem listItem = (ListItem)listView.get("0");
return getBodyMarkup(listItem);
}
代码示例来源:origin: apache/wicket
@Override
public Component next()
{
final String id = Integer.toString(firstIndex + index);
index++;
return get(id);
}
};
代码示例来源:origin: org.apache.wicket/wicket-core
@Override
public Component next()
{
final String id = Integer.toString(firstIndex + index);
index++;
return get(id);
}
};
代码示例来源:origin: stackoverflow.com
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
TextView displayTextViewTitle = (TextView) findViewById(R.id.textView1);
ListView lv = (ListView) findViewById(yourListViewName);
String value = lv.get(position).tostring();
displayTextViewTitle.setText(value);
}
代码示例来源:origin: stackoverflow.com
public class AboutFragment extends Fragment {
ListView listView2;
String[] items = {"Friendly Map", "Inc"};
public AboutFragment() {
// Required empty public constructor
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View v = inflater.inflate(R.layout.fragment_about, container, false);
listView2 = (ListView) v.findViewById(R.id.listView2);
ArrayAdapter arrayAdapter = new ArrayAdapter(getContext(), android.R.layout.simple_list_item_2, items);
listView2.setAdapter(arrayAdapter);
return v;
}
@Override
public View getView(int position, View convertView, ViewGroup parent){
View view = convertView;
String entry = listView2.get(position);
return view;
}
}
代码示例来源:origin: theonedev/onedev
@SuppressWarnings("deprecation")
private void onActiveIndexChange(AjaxRequestTarget target) {
Component hitsContainer = blobsView.get(activeBlobIndex).get(HITS_ID);
if (!hitsContainer.isVisibilityAllowed()) {
hitsContainer.setVisibilityAllowed(true);
target.add(hitsContainer);
target.add(blobsView.get(activeBlobIndex).get(EXPAND_LINK_ID));
内容来源于网络,如有侵权,请联系作者删除!