Example usage for org.apache.wicket.util.lang Args isTrue

List of usage examples for org.apache.wicket.util.lang Args isTrue

Introduction

In this page you can find the example usage for org.apache.wicket.util.lang Args isTrue.

Prototype

public static boolean isTrue(final boolean argument, final String msg, final Object... params) 

Source Link

Document

Check if argument is true

Usage

From source file:jp.xet.uncommons.wicket.gp.SizedImage.java

License:Apache License

/**
 * ??//from w  w  w  .ja  v  a2  s . c  o m
 * 
 * @param id The non-null id of this component
 * @param imageResource The image resource
 * @param width 
 * @param height ?
 * @param alt alt
 */
public SizedImage(String id, IResource imageResource, int width, int height, String alt) {
    super(id, imageResource);
    Args.isTrue(width >= 0, "width must not to be negative: %d", width);
    Args.isTrue(height >= 0, "height must not to be negative: %d", height);
    this.width = width;
    this.height = height;
    this.alt = alt;
}

From source file:jp.xet.uncommons.wicket.gp.SizedImage.java

License:Apache License

/**
 * ??/* w  w w.  j  ava 2  s .  c  o m*/
 * 
 * @param id The non-null id of this component
 * @param resourceReference The image resource reference
 * @param width 
 * @param height ?
 * @param alt alt
 */
public SizedImage(String id, ResourceReference resourceReference, int width, int height, String alt) {
    super(id, resourceReference);
    Args.isTrue(width >= 0, "width must not to be negative: %d", width);
    Args.isTrue(height >= 0, "height must not to be negative: %d", height);
    this.width = width;
    this.height = height;
    this.alt = alt;
}

From source file:jp.xet.uncommons.wicket.gp.SizedImage.java

License:Apache License

/**
 * ??/*from   w  w  w.j av  a 2  s . co m*/
 * 
 * @param id The non-null id of this component
 * @param resourceReference The image resource reference
 * @param resourceParameters The resource parameters
 * @param width 
 * @param height ?
 * @param alt alt
 */
public SizedImage(String id, ResourceReference resourceReference, PageParameters resourceParameters, int width,
        int height, String alt) {
    super(id, resourceReference, resourceParameters);
    Args.isTrue(width >= 0, "width must not to be negative: %d", width);
    Args.isTrue(height >= 0, "height must not to be negative: %d", height);
    this.width = width;
    this.height = height;
    this.alt = alt;
}

From source file:jp.xet.uncommons.wicket.spring.AbstractSpringDataProvider.java

License:Apache License

/**
 * ??/*from  ww  w . jav a2  s . co  m*/
 * 
 * @param itemsPerPage 1???
 * @throws IllegalArgumentException {@code itemsPerPage}???????
 */
public AbstractSpringDataProvider(int itemsPerPage) {
    Args.isTrue(itemsPerPage > 0, "itemsPerPage must to be positive: %d", itemsPerPage);
    this.itemsPerPage = itemsPerPage;
    clearCachedItemCount();
}