|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopoint.stylesheet.CssStyleSheetWriter
public class CssStyleSheetWriter
The CssStyleSheetWriter class allows a CSS stylesheet
fragment to be created for a given Component or Component class.
You can use this class to auto-generate valid CSS files.
This class releies on the StyleInfo support being
available for a given Component. This allows the CssStyleSheetWriter
to know what properties to look in for values and also what
the names of the style attributes should be.
| Constructor Summary | |
|---|---|
CssStyleSheetWriter()
Constructs a CssStyleSheetCreator |
|
| Method Summary | |
|---|---|
void |
createCssStyleSheet(java.lang.Class clazz,
java.io.PrintWriter out)
Create a style sheet entry for the given clazz and places the result into the provided PrintWriter. |
void |
createCssStyleSheet(Component c,
java.io.PrintWriter out)
Create a style sheet entry for the given Component and places the result into the provided PrintWriter. |
int |
getJustificationWidth()
Returns the justification width |
boolean |
isClassCommentsGenerated()
Returns whether class comments are generated. |
boolean |
isDetailCommentsShown()
Returns true if all detail is to be shown. |
boolean |
isMostSpecificClassOrder()
returns true if the classes will be presented in most specific class order. |
void |
setClassCommentsGenerated(boolean b)
Set this to true to generate class comments for each class that makes up the component class. |
void |
setDetailCommentsShown(boolean b)
Controls whether all detail is to be shown. |
void |
setJustificationWidth(int i)
Sets the justification with of a CSS line. |
void |
setMostSpecificClassOrder(boolean b)
Controls whether or not will be presented in most specific class order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CssStyleSheetWriter()
CssStyleSheetCreator
| Method Detail |
|---|
public void createCssStyleSheet(java.lang.Class clazz,
java.io.PrintWriter out)
clazz - the component clazz to checkout - -the output stream for results.
public void createCssStyleSheet(Component c,
java.io.PrintWriter out)
c - the compoennt to checkout - -the output stream for results.public boolean isDetailCommentsShown()
public void setDetailCommentsShown(boolean b)
b - public int getJustificationWidth()
public void setJustificationWidth(int i)
i - public boolean isClassCommentsGenerated()
public void setClassCommentsGenerated(boolean b)
b - the flagpublic boolean isMostSpecificClassOrder()
public void setMostSpecificClassOrder(boolean b)
b -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||