Example usage for org.apache.wicket.model IDetachable detach

List of usage examples for org.apache.wicket.model IDetachable detach

Introduction

In this page you can find the example usage for org.apache.wicket.model IDetachable detach.

Prototype

void detach();

Source Link

Document

Detaches model after use.

Usage

From source file:jp.xet.uncommons.wicket.utils.WicketUtil.java

License:Apache License

/**
 * ?{@code null}???????/* w  w  w  . j  av a  2  s  .  c  om*/
 * 
 * @param detachables ??
 * @since 1.0
 */
public static void detachIfNotNull(IDetachable... detachables) {
    for (IDetachable detachable : detachables) {
        if (detachable != null) {
            detachable.detach();
        }
    }
}