本文整理汇总了Java中org.apache.wicket.model.IDetachable类的典型用法代码示例。如果您正苦于以下问题:Java IDetachable类的具体用法?Java IDetachable怎么用?Java IDetachable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDetachable类属于org.apache.wicket.model包,在下文中一共展示了IDetachable类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public void detach() {
factory.detach();
for (IDetachable detachable : parameterValidators) {
detachable.detach();
}
}
示例2: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public void detach() {
super.detach();
if (equivalence instanceof IDetachable) {
((IDetachable)equivalence).detach();
}
leftModel.detach();
rightModel.detach();
}
示例3: onDetach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
protected void onDetach() {
super.onDetach();
for (IDetachable detachable : source.values()) {
detachable.detach();
}
}
示例4: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
public static void detach(Iterable<? extends IDetachable> detachables) {
for (IDetachable detachable : detachables) {
if (detachable != null) {
detachable.detach();
}
}
}
示例5: serializeAndDeserialize
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
protected static <T extends Tuple> T serializeAndDeserialize(T tuple) {
for (Object value : tuple) {
if (value instanceof IDetachable) {
((IDetachable)value).detach();
}
}
return doSerializeAndDeserialize(tuple);
}
示例6: testDetach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Test
public void testDetach() {
TestModel model = new TestModel();
model.list = createMock(DetachableInterface.class);
((IDetachable)model.list).detach();
replayAll();
model.getObject();
model.detach();
verifyAll();
}
示例7: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public void detach()
{
super.detach();
// Detach nested object if it's a detachable
if (defaultValue instanceof IDetachable)
{
((IDetachable)defaultValue).detach();
}
}
示例8: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public void detach() {
if (result instanceof IDetachable) {
((IDetachable)result).detach();
}
}
示例9: page
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public abstract IDetachable page(IDetachableFactory pageClassFactory);
示例10: resource
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public abstract IDetachable resource(IDetachableFactory resourceReferenceFactory);
示例11: imageResource
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public abstract IDetachable imageResource(IDetachableFactory resourceReferenceFactory);
示例12: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
@Override
public void detach() {
for (IDetachable detachable : Iterables.concat(beforeSortModels, beforeDefaultSortModels, afterDefaultSortModels, afterSortModels)) {
detachable.detach();
}
}
示例13: detach
import org.apache.wicket.model.IDetachable; //导入依赖的package包/类
public void detach() {
if(list instanceof IDetachable){
((IDetachable) list).detach();
}
}