/** * @param c * The class to get a PackageName object for * @return The PackageName object */ public static PackageName forClass(final Class<?> c) { return new PackageName(Packages.extractPackageName(c)); }
public GCircle(GLatLng center, double radius, String strokeColor, int strokeWeight, float strokeOpacity, String fillColor, float fillOpacity) { this.center = Args.notNull(center, "center"); Checks.withinRangeShort(1d, Double.MAX_VALUE, radius, "radius"); this.radius = radius; this.strokeColor = strokeColor; this.strokeWeight = strokeWeight; this.strokeOpacity = strokeOpacity; this.fillColor = fillColor; this.fillOpacity = fillOpacity; }
/** * @param jQueryReference * a reference to the JQuery JavaScript library used as backing library for * wicket-event and wicket-ajax * @return {@code this} object for chaining */ public JavaScriptLibrarySettings setJQueryReference(ResourceReference jQueryReference) { this.jQueryReference = Args.notNull(jQueryReference, "jQueryReference"); return this; }
@Override public Bytes length() { return Bytes.bytes(length); }
/** * Sets the format of this resource * * @param format * The format (jpg, png or gif..) */ public synchronized final void setFormat(String format) { Args.notNull(format, "format"); this.format = format; }
/** * @param dataType * the type of the data in the Ajax response. * @return {@code this} object for chaining */ public AjaxRequestAttributes setDataType(final String dataType) { this.dataType = Args.notEmpty(dataType, "dataType"); return this; }
/** * @param c * The class to get a PackageName object for * @return The PackageName object */ public static PackageName forClass(final Class<?> c) { return new PackageName(Packages.extractPackageName(c)); }
/** * Constructor. * * @param errorMessage * the custom error message that will be rendered by a custom FeedbackPanel */ public RawValidationError(final Serializable errorMessage) { this.errorMessage = Args.notNull(errorMessage, "errorMessage"); }
/** * @param c * The class to get a PackageName object for * @return The PackageName object */ public static PackageName forClass(final Class c) { return new PackageName(Packages.extractPackageName(c)); }
/** * Constructor. * * @param application * The application instance */ public DefaultPageManagerProvider(Application application) { this.application = Args.notNull(application, "application"); }
/** * Creates a new instance * @param request * The request to use when responding * @param delegate * The request handler to delegate responding to */ public RequestSettingRequestHandler(Request request, IRequestHandler delegate) { this.request = Args.notNull(request, "request"); this.delegate = Args.notNull(delegate,"delegate"); }
/** * Construct. * * @param context */ public AbstractPageManager(IPageManagerContext context) { this.context = Args.notNull(context, "context"); }
/** * Construct. * * @param pageParametersEncoder * @param cachingStrategy */ public BasicResourceReferenceMapper(IPageParametersEncoder pageParametersEncoder, Supplier<? extends IResourceCachingStrategy> cachingStrategy) { this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder"); this.cachingStrategy = cachingStrategy; }
/** * * @param pageClass */ private void setPageClass(Class<? extends IRequestablePage> pageClass) { Args.notNull(pageClass, "pageClass"); this.pageClass = pageClass; }
/** * Create and initialize the resource loader. * * @param initializers * initializers */ public InitializerStringResourceLoader(List<IInitializer> initializers) { this.initializers = Args.notNull(initializers, "initializers"); }
/** * * @param pageRendererProvider */ public final Application setPageRendererProvider(final IPageRendererProvider pageRendererProvider) { Args.notNull(pageRendererProvider, "pageRendererProvider"); this.pageRendererProvider = pageRendererProvider; return this; }
/** * Construct. * * @param pageParametersEncoder * @param cachingStrategy */ public BasicResourceReferenceMapper(IPageParametersEncoder pageParametersEncoder, Supplier<? extends IResourceCachingStrategy> cachingStrategy) { this.pageParametersEncoder = Args.notNull(pageParametersEncoder, "pageParametersEncoder"); this.cachingStrategy = cachingStrategy; }