All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.jwicket.JQueryJavaScriptResourceReference Maven / Gradle / Ivy

Go to download

WicketJQuery by Stefan Lindner has been renamed to jWicket, mavenized, and migrated to WicketStuff. This Wicketstuff version supercedes the original version which was available at http://subversion.visionet.de/project/WicketJQuery/wiki

There is a newer version: 9.7.0
Show newest version
package org.wicketstuff.jwicket;


public class JQueryJavaScriptResourceReference extends JQueryResourceReference {

    private static final long serialVersionUID = 1L;


    public JQueryJavaScriptResourceReference(final Class scope, final String name) {
        this(scope, name, (String) null);
    }

    public JQueryJavaScriptResourceReference(final Class scope, final String name, final String id) {
        this(scope, name, id, JQueryResourceReferenceType.OVERRIDABLE);
    }

    public JQueryJavaScriptResourceReference(final Class scope, final String name, final JQueryResourceReferenceType type) {
        this(scope, name, null, type);
    }

    public JQueryJavaScriptResourceReference(final Class scope, final String name, final String id, final JQueryResourceReferenceType type) {
        super(scope, name, id, type);
    }

//TODO_WICKET15?
//    /**
//     * Copy of {@link JavaScriptResourceReference} from Apache Wicket 1.4.7
//     */
//    @Override
//    protected IResource newResource() {
//        PackageResource packageResource = JavaScriptPackageResource.newPackageResource(getScope(),
//                getName(), getLocale(), getStyle());
//        if (packageResource != null) {
//            locale = packageResource.getLocale();
//        } else {
//            throw new IllegalArgumentException("package resource [scope=" + getScope() + ",name=" +
//                    getName() + ",locale=" + getLocale() + "style=" + getStyle() + "] not found");
//        }
//        return packageResource;
//    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy