本文整理了Java中org.apache.wicket.markup.html.list.ListView.getModelObject()
方法的一些代码示例,展示了ListView.getModelObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.getModelObject()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.list.ListView
类名称:ListView
方法名:getModelObject
[英]Gets model object
[中]获取模型对象
代码示例来源:origin: org.apache.wicket/wicket-core
@Override
public void setObject(T object)
{
listView.getModelObject().set(index, object);
}
}
代码示例来源:origin: org.apache.wicket/wicket-core
@Override
public T getObject()
{
return listView.getModelObject().get(index);
}
代码示例来源:origin: apache/wicket
@Override
public T getObject()
{
return listView.getModelObject().get(index);
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* @see org.apache.wicket.model.IModel#setObject(java.lang.Object)
*/
public void setObject(T object)
{
listView.getModelObject().set(index, object);
}
代码示例来源:origin: apache/wicket
@Override
public void setObject(T object)
{
listView.getModelObject().set(index, object);
}
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* @see org.apache.wicket.model.IModel#getObject()
*/
public Object getObject()
{
return ((List)listView.getModelObject()).get(index);
}
代码示例来源:origin: org.apache.wicket/com.springsource.org.apache.wicket
/**
* @see org.apache.wicket.model.IModel#setObject(java.lang.Object)
*/
public void setObject(Object object)
{
((List)listView.getModelObject()).set(index, object);
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
@Override
public void convertInput() {
List<LayerIdentifierInfo> info = identifiers.getModelObject();
setConvertedInput(info);
}
代码示例来源:origin: org.geoserver.web/web-wms
@Override
protected void convertInput() {
List<AuthorityURLInfo> info = authorityURLs.getModelObject();
if (info == null || info.size() == 0) {
setConvertedInput(new ArrayList<AuthorityURLInfo>(2));
return;
}
setConvertedInput(info);
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
@Override
public void convertInput() {
List<AuthorityURLInfo> info = authorityURLs.getModelObject();
if (info == null || info.size() == 0) {
setConvertedInput(new ArrayList<AuthorityURLInfo>(2));
return;
}
setConvertedInput(info);
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-editor-frontend
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
List<String> values = list.getModelObject();
values.add("");
list.setModelObject(values);
target.add(MultipleTextFieldWidget.this);
}
};
代码示例来源:origin: org.geoserver.web/web-wms
private void updateLinksVisibility() {
List<LayerIdentifierInfo> list = identifiers.getModelObject();
boolean anyLink = list.size() > 0;
table.setVisible(anyLink);
noMetadata.setVisible(!anyLink);
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
private void updateLinksVisibility() {
List<LayerIdentifierInfo> list = identifiers.getModelObject();
boolean anyLink = list.size() > 0;
table.setVisible(anyLink);
noMetadata.setVisible(!anyLink);
}
代码示例来源:origin: theonedev/onedev
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(projectsView.getModelObject().isEmpty());
}
代码示例来源:origin: theonedev/onedev
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(!projectsView.getModelObject().isEmpty());
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
private void updateLinksVisibility() {
List<AuthorityURLInfo> list = authorityURLs.getModelObject();
boolean anyLink = list.size() > 0;
table.setVisible(anyLink);
noMetadata.setVisible(!anyLink);
}
代码示例来源:origin: org.geoserver.web/web-wms
private void updateLinksVisibility() {
List<AuthorityURLInfo> list = authorityURLs.getModelObject();
boolean anyLink = list.size() > 0;
table.setVisible(anyLink);
noMetadata.setVisible(!anyLink);
}
代码示例来源:origin: org.geoserver.web/web-wms
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
List<LayerIdentifierInfo> list = identifiers.getModelObject();
LayerIdentifierInfo newIdentifier = new LayerIdentifier();
list.add(newIdentifier);
identifiers.setModelObject(list);
updateLinksVisibility();
target.addComponent(LayerIdentifierListEditor.this);
}
代码示例来源:origin: org.geoserver.web/web-wms
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
List<AuthorityURLInfo> list = authorityURLs.getModelObject();
AuthorityURLInfo authorityURL = new AuthorityURL();
list.add(authorityURL);
authorityURLs.setModelObject(list);
AuthorityURLListEditor.this.convertInput();
updateLinksVisibility();
target.addComponent(container);
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
List<AuthorityURLInfo> list = authorityURLs.getModelObject();
AuthorityURLInfo authorityURL = new AuthorityURL();
list.add(authorityURL);
authorityURLs.setModelObject(list);
AuthorityURLListEditor.this.convertInput();
updateLinksVisibility();
target.add(container);
}
};
内容来源于网络,如有侵权,请联系作者删除!