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

org.stjs.javascript.jquery.GlobalJQuery Maven / Gradle / Ivy

/**
 *  Copyright 2011 Alexandru Craciun, Eyal Kaspi
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.stjs.javascript.jquery;

import org.stjs.javascript.Array;
import org.stjs.javascript.Map;
import org.stjs.javascript.annotation.GlobalScope;
import org.stjs.javascript.annotation.SyntheticType;
import org.stjs.javascript.dom.Element;
import org.stjs.javascript.functions.Callback2;
import org.stjs.javascript.functions.Callback3;
import org.stjs.javascript.functions.Function2;

@GlobalScope
@SyntheticType
abstract public class GlobalJQuery {
	public static GlobalJQuery $;

	public int active;

	public Browser browser;

	public Object fn;

	/**
	 * jquery constructors
	 */
	public static > FullJQuery $(String path) {
		return null;
	}

	public static > FullJQuery $(String path, Object context) {
		return null;
	}

	public static > FullJQuery $(Object path) {
		return null;
	}

	abstract public JQueryXHR ajax(AjaxParams params);

	abstract public void ajaxSetup(Map options);

	abstract public void get(String url, Object params, Callback3 successListener, String mode);

	abstract public void getJSON(String url, Object params, Callback3 successListener);

	abstract public  Array map(C collection, Function2 callback);

	abstract public  int inArray(T element, Array registeredListeners);

	abstract public  void each(Array collection, Callback2 elementIterationFunction);

	abstract public > void each(JQueryAndPlugins collection,
			Callback2 elementIterationFunction);

	abstract public  void each(Map collection, Callback2 elementIterationFunction);

	abstract public String trim(String obj);

	abstract public  Map extend(Map target, Map... objects);

	abstract public  T extend(T target, T src);

	abstract public  T extend(T target, T src1, T... extraSrc);

	abstract public  T extend(boolean deep, T target, T src);

	abstract public  T extend(boolean deep, T target, T src1, T... extraSrc);

	abstract public  Map extend(boolean deep, Map target, Map... objects);

	abstract public  T parseJSON(String message);

	abstract public boolean isArray(Object value);

	abstract public void widget(String name, Object plugin);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy