public void jsSet_cookie( String cookieSpec ) { final int equalsIndex = cookieSpec.indexOf( '=' ); if (equalsIndex <0) return; int endIndex = cookieSpec.indexOf( ";", equalsIndex ); if (endIndex < 0) endIndex = cookieSpec.length(); String name = cookieSpec.substring( 0, equalsIndex ); String value = cookieSpec.substring( equalsIndex+1, endIndex ); getDelegate().setCookie( name, value ); }
public void jsSet_location( String urlString ) throws IOException, SAXException { if (urlString.startsWith( "color" )) return; getWindow().setLocation( urlString ); }
public void jsFunction_writeln( String string ) { getWriteBuffer().append( string ).append( (char) 0x0D ).append( (char) 0x0A ); }
public String jsGet_title() throws SAXException { return getDelegate().getTitle(); }
public Object jsFunction_getElementsByTagName( String name ) { return toElementArray( getDelegate().getElementsByTagName( name ) ); }
public Object jsFunction_getElementsByName( String name ) { return toElementArray( getDelegate().getElementsByName( name ) ); }
public void jsFunction_write( String string ) { getWriteBuffer().append( string ); }
public void jsFunction_open( Object mimeType ) { _mimeType = toStringIfNotUndefined( mimeType ); }
protected String getDocumentWriteBuffer() { return jsGet_document().getWriteBuffer().toString(); }
public void clearCaches() { if (_document != null) _document.clearCaches(); }
public void clearCaches() { if (_document != null) _document.clearCaches(); }
public String jsGet_cookie() { return getDelegate().getCookie(); }
public String jsGet_title() throws SAXException { return getDelegate().getTitle(); }
public void jsFunction_write( String string ) { getWriteBuffer().append( string ); }
public void jsFunction_writeln( String string ) { getWriteBuffer().append( string ).append( (char) 0x0D ).append( (char) 0x0A ); }
protected void discardDocumentWriteBuffer() { jsGet_document().clearWriteBuffer(); }
public Object jsGet_location() { return _parent == null ? NOT_FOUND : getWindow().jsGet_location(); }
public Object jsGet_location() { return _parent == null ? NOT_FOUND : getWindow().jsGet_location(); }
protected void discardDocumentWriteBuffer() { jsGet_document().clearWriteBuffer(); }
public Object jsFunction_getElementsByTagName( String name ) { return toElementArray( getDelegate().getElementsByTagName( name ) ); }