org.mortbay.html
Class FrameSet
FrameSet.
Usage
FrameSet set = new FrameSet("FrameTest","*,*","*,*");
set.frame(0,0).name("Frame1",req.getRequestPath()+"?Frame=1");
set.frame(0,1).name("Frame2",req.getRequestPath()+"?Frame=2");
set.frame(1,0).name("Frame3",req.getRequestPath()+"?Frame=3");
set.frame(1,1).name("Frame4",req.getRequestPath()+"?Frame=4");
set.write(new Writer(res.getOutputStream()));
$Id: FrameSet.java,v 1.4 2004/11/20 13:32:33 gregwilkins Exp $
Back , BaseUrl , BgColour , Content , ContentSize , FgColour , Footer , FooterSize , Header , HeaderSize , Heading , Help , HighlightColour , Home , LeftMargin , LeftMarginSize , Margin , MarginSize , Next , NoTitle , PageType , Prev , Request , Response , RightMargin , RightMarginSize , Section , Target , Title , Up , properties |
ALIGN , BGCOLOR , BOTTOM , CENTER , CLASS , COLOR , HEIGHT , ID , LEFT , MIDDLE , RIGHT , SIZE , STYLE , TOP , VALIGN , WIDTH , attributeMap , noAttributes |
FrameSet(String title, String colSpec, String rowSpec) - FrameSet constructor.
|
FrameSet | border(boolean threeD, int width, String color)
|
Frame | frame(String name)
|
Frame | frame(int col, int row)
|
Frame | nameFrame(String name, int col, int row) - Name a frame.
|
Enumeration | namedFrames()
|
void | write(Writer out) - Write the entire page by calling:
writeHtmlHead(out)
writeBodyTag(out)
writeElements(out)
writeHtmlEnd(out)
|
addHeader , addSection , addTo , completeSections , flush , frameSet , getSection , properties , rewind , setBackGroundColor , setBackGroundImage , setBase , setSection , title , write , write , writeBodyTag , writeElements , writeHtmlEnd , writeHtmlHead |
attribute , attribute , attribute , attributes , attributes , bgColor , bottom , center , color , cssClass , cssID , height , height , height , left , middle , right , setAttributesFrom , size , size , size , style , toString , top , width , width , width , write , write , write |
FrameSet
public FrameSet(String title,
String colSpec,
String rowSpec)
FrameSet constructor.
colSpec
- Comma separated list of column widths specified
as pixels, percentage or '*' for variable
border
public FrameSet border(boolean threeD,
int width,
String color)
frame
public Frame frame(String name)
frame
public Frame frame(int col,
int row)
nameFrame
public Frame nameFrame(String name,
int col,
int row)
Name a frame.
By convention, frame names match Page section names
namedFrames
public Enumeration namedFrames()
write
public void write(Writer out)
throws IOException
Write the entire page by calling:
writeHtmlHead(out)
writeBodyTag(out)
writeElements(out)
writeHtmlEnd(out)
- write in interface Page
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.