|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.EPNG
public class EPNG
EPNG contains static members that help control the EPNG
component library.
| Field Summary | |
|---|---|
static MutableStyleSheet |
DEFAULT_STYLESHEET
This MutableStyleSheet contains the default visual
representation of the EPNG components. |
static StyleSheet |
FALLBACK_STYLESHEET
This StyleSheet is used as the fall back stylesheet by the
EPNG rendering peers. |
| Method Summary | |
|---|---|
static Style |
getFallBackStyle(Component component)
This static helper method can be used to quickly get the Style for a given component from the FALLBACK_STYLESHEET. |
static java.lang.Object |
getRP(Component c,
java.lang.String propertyName)
This helper method will look for rendered properties inside the component (via getRenderproperty) and then if it finds null, then it will look in the fallback style for that component class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static StyleSheet FALLBACK_STYLESHEET
StyleSheet is used as the fall back stylesheet by the
EPNG rendering peers. The EPNG rendering peers use the following lookup
algorythmn for find non null property values.
You are free to change this field or remove it by setting it to null. You can also set a change the Style for a specific component class using the addStyle() methods of the stylsheet.
However remember it is a static field and hence will affect all EPNG components in the same JVM.
public static MutableStyleSheet DEFAULT_STYLESHEET
MutableStyleSheet contains the default visual
representation of the EPNG components.
| Method Detail |
|---|
public static Style getFallBackStyle(Component component)
component - -
the component to get a fallback style for
public static java.lang.Object getRP(Component c,
java.lang.String propertyName)
c - -
the component in questionpropertyName - -
the name of the property to find a value for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||