/** * Returns the location of the frame. * @return The contents of the SRC attribute converted to an absolute URL. */ public String getFrameLocation () { String ret; ret = getAttribute ("SRC"); if (null == ret) ret = ""; else if (null != getPage ()) ret = getPage ().getAbsoluteURL (ret); return (ret); }
/** * Return a string representation of the contents of this <code>FRAME</code> tag suitable for debugging. * @return A string with this tag's contents. */ public String toString() { return "FRAME TAG : Frame " +getFrameName() + " at "+getFrameLocation()+"; begins at : "+getStartPosition ()+"; ends at : "+getEndPosition (); } }
/** * Sets the location of the frame. * @param url The new frame location. */ public void setFrameLocation (String url) { setAttribute ("SRC", url); }
/** * Return a string representation of the contents of this <code>FRAME</code> tag suitable for debugging. * @return A string with this tag's contents. */ public String toString() { return "FRAME TAG : Frame " +getFrameName() + " at "+getFrameLocation()+"; begins at : "+getStartPosition ()+"; ends at : "+getEndPosition (); } }
String framesrc = tag.getAttribute("src"); int linkhandletype = needProcess(framesrc,false); if (linkhandletype != LINK_NO_PARSER_NO_DISTRIBUTE) { if (link != null) { tag.setAttribute("src",link.getHref()); } else { if (this.baseUrl != null) tag.setAttribute("src",link.getHref()); if (link != null) { tag.setAttribute("src",link.getHref()); tag.setAttribute("src",link.getHref());
/** * Gets a frame by name. * Names are checked without case sensitivity and conversion to uppercase * is performed with the locale provided. * @param name The name of the frame to retrieve. * @param locale The locale to use when converting to uppercase. * @return The specified frame or <code>null</code> if it wasn't found. */ public FrameTag getFrame (String name, Locale locale) { Node node; FrameTag ret; ret = null; name = name.toUpperCase (locale); for (SimpleNodeIterator e = getFrames ().elements (); e.hasMoreNodes () && (null == ret); ) { node = e.nextNode(); if (node instanceof FrameTag) { ret = (FrameTag)node; if (!ret.getFrameName ().toUpperCase (locale).equals (name)) ret = null; } } return (ret); }
registerTag (new FormTag ()); registerTag (new FrameSetTag ()); registerTag (new FrameTag ()); registerTag (new ImageTag ()); registerTag (new InputTag ());
/** * Get the <code>NAME</code> attribute, if any. * @return The value of the <code>NAME</code> attribute, * or <code>null</code> if the attribute doesn't exist. */ public String getFrameName() { return (getAttribute ("NAME")); }
/** * Gets a frame by name. * Names are checked without case sensitivity and conversion to uppercase * is performed with the locale provided. * @param name The name of the frame to retrieve. * @param locale The locale to use when converting to uppercase. * @return The specified frame or <code>null</code> if it wasn't found. */ public FrameTag getFrame (String name, Locale locale) { Node node; FrameTag ret; ret = null; name = name.toUpperCase (locale); for (SimpleNodeIterator e = getFrames ().elements (); e.hasMoreNodes () && (null == ret); ) { node = e.nextNode(); if (node instanceof FrameTag) { ret = (FrameTag)node; if (!ret.getFrameName ().toUpperCase (locale).equals (name)) ret = null; } } return (ret); }
registerTag (new FormTag ()); registerTag (new FrameSetTag ()); registerTag (new FrameTag ()); registerTag (new HeadingTag ()); registerTag (new ImageTag ());