本文整理汇总了Java中org.apache.wicket.markup.repeater.OddEvenItem类的典型用法代码示例。如果您正苦于以下问题:Java OddEvenItem类的具体用法?Java OddEvenItem怎么用?Java OddEvenItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OddEvenItem类属于org.apache.wicket.markup.repeater包,在下文中一共展示了OddEvenItem类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
@SuppressWarnings( { "rawtypes", "unchecked" })
protected Item<T> newRowItem(String id, int index, final IModel<T> model) {
Class clazz = rowItemClass != null ? rowItemClass : OddEvenItem.class;
Item<T> item = (Item<T>) ReflectionUtil.newInstance(clazz,
new Class[] { String.class, int.class, IModel.class }, new Object[] { id, index, model });
// Add event listeners to each row
// Doubleclick listener
DblClickAjaxEventBehavior<T> newOnDblClicktEvent = this.newOnDblClickEvent(model);
if (newOnDblClicktEvent != null)
item.add(newOnDblClicktEvent);
// Singleclick listener
ClickAjaxEventBehavior<T> newOnClickEvent = this.newOnClickEvent(model);
if (newOnClickEvent != null)
item.add(newOnClickEvent);
return item;
}
开发者ID:Nocket,项目名称:nocket,代码行数:23,代码来源:DMDAjaxDataTable.java
示例2: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(String id, int index, final IModel<T> model) {
Class clazz = rowItemClass != null ? rowItemClass : OddEvenItem.class;
Item<T> item = (Item<T>) ReflectionUtil.newInstance(clazz,
new Class[] { String.class, int.class, IModel.class }, new Object[] { id, index, model });
// Add event listeners to each row
// Doubleclick listener
DblClickAjaxEventBehavior<T> newOnDblClicktEvent = this.newOnDblClickEvent(model);
if (newOnDblClicktEvent != null)
item.add(newOnDblClicktEvent);
// Singleclick listener
ClickAjaxEventBehavior<T> newOnClickEvent = this.newOnClickEvent(model);
if (newOnClickEvent != null)
item.add(newOnClickEvent);
return item;
}
开发者ID:Nocket,项目名称:nocket,代码行数:22,代码来源:DMDJavaScriptDataTable.java
示例3: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(String id, int index, IModel<T> model) {
OddEvenItem<T> rowItem = new OddEvenItem<>(id, index, model);
rowItem.add(new JavascriptEvent("onmouseover", "DomUtils.addHoverStyle(this);"));
rowItem.add(new JavascriptEvent("onmouseout", "DomUtils.removeHoverStyle(this);"));
return rowItem;
}
开发者ID:alancnet,项目名称:artifactory,代码行数:8,代码来源:SortableTable.java
示例4: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
@SuppressWarnings( { "rawtypes", "unchecked" })
protected Item<T> newRowItem(final String id, final int index, final IModel<T> model) {
Class clazz = rowItemClass != null ? rowItemClass : OddEvenItem.class;
return (Item<T>) ReflectionUtil.newInstance(clazz, new Class[] { String.class, int.class, IModel.class },
new Object[] { id, index, model });
}
开发者ID:Nocket,项目名称:nocket,代码行数:9,代码来源:DMDDefaultDataTable.java
示例5: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(final String id, final int index, final IModel<T> model) {
return new OddEvenItem<T>(id, index, model);
}
开发者ID:jmfgdev,项目名称:gitplex-mit,代码行数:5,代码来源:DefaultDataTable.java
示例6: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<Object> newRowItem(final String id, final int index, final IModel<Object> model) {
return new OddEvenItem<Object>(id, index, model);
}
开发者ID:subes,项目名称:invesdwin-nowicket,代码行数:5,代码来源:ModelDataTable.java
示例7: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(final String id, final int index, final IModel<T> model)
{
return new OddEvenItem<>(id, index, model);
}
开发者ID:lumenrobot,项目名称:lumen,代码行数:6,代码来源:BootstrapDataTable.java
示例8: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(final String id, final int index, final IModel<T> model)
{
return new OddEvenItem<T>(id, index, model);
}
开发者ID:orange-cloudfoundry,项目名称:elpaaso-core,代码行数:6,代码来源:AjaxFallbackCustomDataTable.java
示例9: onCheckboxUpdate
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
private void onCheckboxUpdate(FormComponent checkbox, AjaxRequestTarget target) {
final MarkupContainer row = checkbox.findParent(OddEvenItem.class);
target.addChildren(row, StyledCheckbox.class);
}
开发者ID:alancnet,项目名称:artifactory,代码行数:5,代码来源:PermissionTargetCreateUpdatePanel.java
示例10: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item newRowItem(String id, int index, IModel model) {
return new OddEvenItem(id, index, model);
}
开发者ID:alancnet,项目名称:artifactory,代码行数:5,代码来源:MasterDetailRowPanel.java
示例11: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(final String id, final int index, final IModel<T> model) {
final OddEvenItem<T> item = new OddEvenItem<>(id, index, model);
if (togglePanel != null) {
final ActionsPanel<T> actions = getActions(model);
if (actions != null && !actions.isEmpty()) {
item.add(new AttributeModifier("style", "cursor: pointer;"));
item.add(new AjaxEventBehavior(Constants.ON_CLICK) {
private static final long serialVersionUID = 1L;
@Override
protected String findIndicatorId() {
return StringUtils.EMPTY;
}
@Override
protected void onEvent(final AjaxRequestTarget target) {
final String lastFocussedElementId = target.getLastFocusedElementId();
if (lastFocussedElementId == null) {
togglePanel.toggleWithContent(target, getActions(model), model.getObject());
} else {
final AjaxDataTablePanel<?, ?> parent = findParent(AjaxDataTablePanel.class);
final Model<Boolean> isCheck = Model.<Boolean>of(Boolean.FALSE);
parent.visitChildren(CheckGroupSelector.class, (selector, ivisit) -> {
if (selector.getMarkupId().equalsIgnoreCase(lastFocussedElementId)) {
isCheck.setObject(Boolean.TRUE);
ivisit.stop();
}
});
if (!isCheck.getObject()) {
parent.visitChildren(Check.class, (check, ivisit) -> {
if (check.getMarkupId().equalsIgnoreCase(lastFocussedElementId)) {
isCheck.setObject(Boolean.TRUE);
ivisit.stop();
}
});
}
if (!isCheck.getObject()) {
togglePanel.toggleWithContent(target, getActions(model), model.getObject());
}
}
}
});
}
}
return item;
}
开发者ID:apache,项目名称:syncope,代码行数:55,代码来源:AjaxFallbackDataTable.java
示例12: newRowItem
import org.apache.wicket.markup.repeater.OddEvenItem; //导入依赖的package包/类
@Override
protected Item<T> newRowItem(final String id, final int index, final IModel<T> model) {
return new OddEvenItem<T>(id, index, model);
}
开发者ID:PkayJava,项目名称:pluggable,代码行数:5,代码来源:DefaultDataTable.java
注:本文中的org.apache.wicket.markup.repeater.OddEvenItem类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论