home *** CD-ROM | disk | FTP | other *** search
- public class JScriptLocationObject extends JScriptAbstractLinkObject {
- private static final String NAME = "location";
- private static final int LOCATION_ID_RELOAD = 273;
- private static final int LOCATION_ID_REPLACE = 274;
-
- public JScriptLocationObject(long var1) {
- super(var1);
-
- try {
- ((JSbxObject)this).Put(new JSbxObjectProperty("reload", this, this, 273, true, true));
- ((JSbxObject)this).Put(new JSbxObjectProperty("replace", this, this, 274, true, true));
- } catch (JSbxException var3) {
- }
- }
-
- public JSbxValue PropertyCallFunction(JSbxObjectProperty var1, JScriptCallParam var2) throws JSbxExceptionBase {
- JSbxVector var3 = var2.GetParamVector();
- int var4 = var1.GetID();
-
- try {
- switch (var4) {
- case 273:
- if (var3.GetSize() > 0) {
- this.reload(JScriptWindowObject.GetBooleanParam(var3, 0));
- } else {
- this.reload(true);
- }
- break;
- case 274:
- this.replace(JScriptWindowObject.GetStringParam(var3, 0));
- break;
- default:
- return super.PropertyCallFunction(var1, var2);
- }
- } catch (UnsatisfiedLinkError var6) {
- }
-
- Object var5 = null;
- JSbxValue var7 = new JSbxValue();
- var2.GetRuntimeParam().SetReturnValue(var7);
- return var7;
- }
-
- public void PropertyGet(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- super.PropertyGet(var1, var2);
- }
-
- public void PropertyPut(JSbxObjectProperty var1, JSbxValue var2) throws JSbxException {
- super.PropertyPut(var1, var2);
- }
-
- public String Property_GetJScript_typeofString(JSbxObjectProperty var1) {
- return "location";
- }
-
- public final void SetHref(String var1) {
- this.setHref(var1);
- }
-
- protected native String getHash();
-
- protected native void setHash(String var1);
-
- protected native String getHost();
-
- protected native void setHost(String var1);
-
- protected native String getHostname();
-
- protected native void setHostname(String var1);
-
- protected native String getHref();
-
- protected native void setHref(String var1);
-
- protected native String getPathname();
-
- protected native void setPathname(String var1);
-
- protected native String getPort();
-
- protected native void setPort(String var1);
-
- protected native String getProtocol();
-
- protected native void setProtocol(String var1);
-
- protected native String getSearch();
-
- protected native void setSearch(String var1);
-
- protected native void reload(boolean var1);
-
- protected native void replace(String var1);
- }
-