|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcreamtec.webcream.rendering.AbstractDocumentRenderer
creamtec.webcream.rendering.html.HTMLPageRenderer
creamtec.webcream.rendering.html.positioned.PositionedPageRenderer
public class PositionedPageRenderer
Implements positioned rendering, where instead of following container layouts the components are rendered into HTML with the fixed coordinates using CSS2 style property.
| Field Summary |
|---|
| Fields inherited from class creamtec.webcream.rendering.AbstractDocumentRenderer |
|---|
dummyField1, LIMIT_MODE |
| Constructor Summary | |
|---|---|
PositionedPageRenderer()
|
|
| Method Summary | |
|---|---|
void |
appendClippingClause(HTMLPage page,
java.awt.Component comp)
Appends the clipping clause to component style |
void |
appendComponentStyle(HTMLPage page,
java.lang.Object obj,
boolean renderingStyle)
Appends component style to the given page. |
void |
appendWidthHeight(java.awt.Component comp,
HTMLPage page,
java.awt.Rectangle rect)
|
Document |
createDocument()
Overrides to create a positioned HTML page |
java.awt.Rectangle |
getComponentRect(HTMLPage page,
java.awt.Component comp)
Returns the component rectangle |
java.lang.String |
getCssClassName(java.awt.Component comp,
HTMLPage page)
|
javax.swing.border.TitledBorder |
getTitledBorder(HTMLPage page,
java.awt.Container container)
|
boolean |
hasBorder(java.awt.Component comp)
|
boolean |
needsClipping(java.awt.Component comp)
Returns true if the component requires a clipping clause in style |
boolean |
needsScrollbars(java.awt.Component comp)
Returns true if the component requires scrollbars |
void |
renderContainer(HTMLPage page,
java.awt.Container container)
Renders a container into the page using fixed positioning. |
| Methods inherited from class creamtec.webcream.rendering.html.HTMLPageRenderer |
|---|
afterRenderComponent, afterRenderComponent, appendHeader, appendStyleSheet, beforeRenderComponent, beforeRenderComponent, findTitledBorder, getDeflatedHeight, getDeflatedWidth, getInflatedHeight, getInflatedWidth, getTitleForComponent, renderComponent, renderContainer, renderDocument |
| Methods inherited from class creamtec.webcream.rendering.AbstractDocumentRenderer |
|---|
getCustomComponentRenderer, getDefaultJComponentRenderer, knownContainer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionedPageRenderer()
| Method Detail |
|---|
public void renderContainer(HTMLPage page,
java.awt.Container container)
throws java.lang.Exception
renderContainer in class HTMLPageRendererpage - HTMLPagecontainer - Container
java.lang.Exception
public Document createDocument()
throws java.lang.Exception
createDocument in class HTMLPageRendererjava.lang.Exception
public void appendComponentStyle(HTMLPage page,
java.lang.Object obj,
boolean renderingStyle)
appendComponentStyle in class HTMLPageRendererpage - HTMLPageobj - componentrenderingStyle - if false, this method will append " style=" string, otherwise
it will just append style attributes.public boolean hasBorder(java.awt.Component comp)
public java.lang.String getCssClassName(java.awt.Component comp,
HTMLPage page)
public void appendWidthHeight(java.awt.Component comp,
HTMLPage page,
java.awt.Rectangle rect)
public boolean needsClipping(java.awt.Component comp)
comp - Component
public boolean needsScrollbars(java.awt.Component comp)
comp - Component
public java.awt.Rectangle getComponentRect(HTMLPage page,
java.awt.Component comp)
getComponentRect in class HTMLPageRendererpage - HTMLPagecomp - Component
public void appendClippingClause(HTMLPage page,
java.awt.Component comp)
appendClippingClause in class HTMLPageRendererpage - HTMLPagecomp - Component
public javax.swing.border.TitledBorder getTitledBorder(HTMLPage page,
java.awt.Container container)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||