|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcreamtec.webcream.rendering.html.RenderContext
public class RenderContext
Stores the current runtime information about the rendering process. The context is associated with a page and can be used to avoid passing parameters into methods. See individual attributes for more information.
| Field Summary | |
|---|---|
java.util.HashMap |
disabledComponents
A map of components that used to be disabled because browsers do not send data for them and they may become enabled in response to an action |
java.lang.String |
errorMessage
The error message that will be rendered at the top of the page |
boolean |
horizontalFill
Set if currently rendering horizontal fill of a GridBagLayout |
boolean |
ignoreBackgroundColor
Set to ignore rendering colors for components (browser versions 4+) |
boolean |
ignoreForegroundColor
Set to ignore rendering colors for components (browser versions 4+) |
boolean |
isContainerTable
Set if the component is directly positioned within an HTML table |
int |
offsetX
Added to the value of the left coordinate of the rendered components |
int |
offsetY
Added to the value of the top coordinate of the rendered components |
boolean |
positionComponents
Set if components coordinates are being specified in HTML (browser versions 4+) |
boolean |
preserveHeight
If set, the height of components will be preserved in positioned rendering |
boolean |
preserveWidth
If set, the width of components will be preserved in positioned rendering |
boolean |
preserveWidthAndHeight
If set, the width and height of components will be preserved in positioned rendering |
boolean |
renderingTableCell
Set if a table cell is currently being rendered |
boolean |
tabbedPaneStylesAppended
Set if the tabbed pane styles were appended to the page |
int |
tableCol
If a table is being rendered, specifies the current column |
java.lang.String |
tableName
If a table is being rendered, specifies the JTable name |
javax.swing.JTable |
tableObject
If a table is being rendered, refers to JTable instance |
int |
tableRow
If a table is being rendered, specifies the current row |
int |
treesRendered
The number of rendered HTML trees |
boolean |
treeStylesAppended
Set if the tree styles were appended to the page |
boolean |
useComponentNames
If NOT set (default), component names are generated based on their class and hashCode If set, the name returned by Component.getName() will be used to identify it in HTML |
boolean |
verticalFill
Set if currently rendering vertical fill of a GridBagLayout |
| Constructor Summary | |
|---|---|
RenderContext()
|
|
| Method Summary | |
|---|---|
java.util.Map |
getAttributes()
|
java.awt.Container |
getRootContainer()
Returns the root container of the page, such as Window |
void |
reset()
Resets the context to the initial pre-rendering state |
void |
resetFill()
Resets both fill properties to false |
void |
setFill(HTMLPage page,
boolean horizontal,
boolean vertical)
Sets the fill properties for layout rendering (used for structured rendering) |
void |
setRootContainer(java.awt.Container container)
Sets the root container |
boolean |
wasDisabled(java.lang.Object comp)
Returns true if the given component was disabled before the rendering began |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean horizontalFill
public boolean verticalFill
public boolean positionComponents
public boolean useComponentNames
public boolean ignoreForegroundColor
public boolean ignoreBackgroundColor
public boolean isContainerTable
public boolean tabbedPaneStylesAppended
public boolean treeStylesAppended
public boolean preserveWidthAndHeight
public boolean preserveWidth
public boolean preserveHeight
public boolean renderingTableCell
public javax.swing.JTable tableObject
public int tableRow
public int tableCol
public java.lang.String tableName
public int offsetX
public int offsetY
public int treesRendered
public java.lang.String errorMessage
public java.util.HashMap disabledComponents
| Constructor Detail |
|---|
public RenderContext()
| Method Detail |
|---|
public java.util.Map getAttributes()
public void reset()
public java.awt.Container getRootContainer()
public void setRootContainer(java.awt.Container container)
container - root container
public void setFill(HTMLPage page,
boolean horizontal,
boolean vertical)
page - HTMLPagehorizontal - fillvertical - fillpublic void resetFill()
public boolean wasDisabled(java.lang.Object comp)
comp - component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||