Package org.compiere.util
Class WebDoc
- java.lang.Object
-
- org.compiere.util.WebDoc
-
public class WebDoc extends Object
XHTML Document.- Version:
- $Id: WebDoc.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.ecs.xhtml.td
addPopupCenter(boolean nowrap)
Add Popup Centerorg.apache.ecs.xhtml.td[]
addPopupClose(Properties ctx)
Add Popup Close Footerorg.apache.ecs.xhtml.td
addWindowCenter(boolean nowrap)
Add Window Centerorg.apache.ecs.xhtml.td
addWindowFooter()
Add Window Footerorg.apache.ecs.xhtml.td[]
addWindowFooters()
Add Window Footerstatic WebDoc
create(boolean plain)
Create Documentstatic WebDoc
create(boolean plain, String title, boolean javaClient)
Create styled Document with Titlestatic WebDoc
create(String title)
Create styled web Document with Titlestatic WebDoc
createPopup(String title)
Create styled popup Document with Titlestatic WebDoc
createWindow(String title)
Create styled window Document with Titleorg.apache.ecs.xhtml.body
getBody()
Get Bodyorg.apache.ecs.xhtml.head
getHead()
Get Headorg.apache.ecs.xhtml.table
getTable()
Get Table (no class set)org.apache.ecs.xhtml.td
getTopLeft()
Get Table Data Left (no class set)org.apache.ecs.xhtml.td
getTopRight()
Get Table Data Right (no class set)org.apache.ecs.xhtml.tr
getTopRow()
Get Table Row (no class set)static void
main(String[] args)
Test Classvoid
output(OutputStream out)
Output Documentvoid
output(PrintWriter out)
Output Documentvoid
setClasses(String tableClass, String tdClass)
Set css ClassesString
toString()
String representation
-
-
-
Field Detail
-
NBSP
public static final String NBSP
Non breaking Space- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static WebDoc create(boolean plain, String title, boolean javaClient)
Create styled Document with Title- Parameters:
plain
- if true adds standard.css and standard.jstitle
- optional header title and h1javaClient
- true if Java Client - browser otherwise- Returns:
- Document
-
create
public static WebDoc create(boolean plain)
Create Document- Parameters:
plain
- if true adds stylesheet and standard js- Returns:
- Document
-
createPopup
public static WebDoc createPopup(String title)
Create styled popup Document with Title- Parameters:
title
- header title and h1- Returns:
- Document
-
createWindow
public static WebDoc createWindow(String title)
Create styled window Document with Title- Parameters:
title
- header title and h1- Returns:
- Document
-
create
public static WebDoc create(String title)
Create styled web Document with Title- Parameters:
title
- optional header title and h1- Returns:
- Document
-
setClasses
public void setClasses(String tableClass, String tdClass)
Set css Classes- Parameters:
tableClass
- optional class for tabletdClass
- optional class for left/right td
-
getBody
public org.apache.ecs.xhtml.body getBody()
Get Body- Returns:
- Body
-
getHead
public org.apache.ecs.xhtml.head getHead()
Get Head- Returns:
- Header
-
getTable
public org.apache.ecs.xhtml.table getTable()
Get Table (no class set)- Returns:
- table
-
getTopRow
public org.apache.ecs.xhtml.tr getTopRow()
Get Table Row (no class set)- Returns:
- table row
-
getTopLeft
public org.apache.ecs.xhtml.td getTopLeft()
Get Table Data Left (no class set)- Returns:
- table data
-
getTopRight
public org.apache.ecs.xhtml.td getTopRight()
Get Table Data Right (no class set)- Returns:
- table data
-
toString
public String toString()
String representation
-
output
public void output(OutputStream out)
Output Document- Parameters:
out
- out
-
output
public void output(PrintWriter out)
Output Document- Parameters:
out
- out
-
addPopupCenter
public org.apache.ecs.xhtml.td addPopupCenter(boolean nowrap)
Add Popup Center- Parameters:
nowrap
- set nowrap in td- Returns:
- null or center single td
-
addPopupClose
public org.apache.ecs.xhtml.td[] addPopupClose(Properties ctx)
Add Popup Close Footer- Returns:
- null or array with left/right td
-
addWindowCenter
public org.apache.ecs.xhtml.td addWindowCenter(boolean nowrap)
Add Window Center- Parameters:
nowrap
- set no wrap in td- Returns:
- empty single center td
-
addWindowFooters
public org.apache.ecs.xhtml.td[] addWindowFooters()
Add Window Footer- Returns:
- null or array with empty left/right td
-
addWindowFooter
public org.apache.ecs.xhtml.td addWindowFooter()
Add Window Footer- Returns:
- empty single center td
-
main
public static void main(String[] args)
Test Class- Parameters:
args
- args
-
-