|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.ui.util.Render
public class Render
Render is used to render stuff into CssStyle objects. It goals
is to reduce the amount of code needed to create valid CssStyle objects.
| Constructor Summary | |
|---|---|
Render()
|
|
| Method Summary | |
|---|---|
static void |
asAble(CssStyle cssStyle,
java.lang.Object ableObject)
This will take an object and render all the interfaces that the Render code knows about such as Borderable, Insetable or MouseCursorable. |
static void |
asAble(CssStyle cssStyle,
java.lang.Object ableObject,
Style fallbackStyle)
This will take an object and render all the interfaces that the Render code knows about such as Borderable, Insetable or MouseCursorable. |
static void |
asAlignable(CssStyle cssStyle,
Alignable able)
Renders an Alignable into the CssStyle. |
static void |
asAlignable(CssStyle cssStyle,
Alignable able,
Style fallbackStyle)
Renders an Alignable into the CssStyle. |
static void |
asBackgroundImage(RenderContext rc,
CssStyle cssStyle,
FillImage backgroundImage)
Renders an background FillImage into the CssStyle. |
static void |
asBackgroundImageable(RenderContext rc,
CssStyle cssStyle,
BackgroundImageable able)
Renders an BackgroundImageable into the CssStyle. |
static void |
asBackgroundImageable(RenderContext rc,
CssStyle cssStyle,
BackgroundImageable able,
Style fallbackStyle)
Renders an BackgroundImageable into the CssStyle. |
static void |
asBackgroundImageImpl(RenderContext rc,
CssStyle cssStyle,
FillImage backgroundImage,
Component component)
|
static void |
asBorder(CssStyle cssStyle,
Border border)
Renders a Border to the CSS border values |
static void |
asBorder(CssStyle cssStyle,
Component component,
java.lang.String propertyName)
Renders the specified component's property as a Border into the CssStyle provided. |
static void |
asBorder(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
Style fallbackStyle)
Renders the specified component's property as a Border into the CssStyle provided. |
static void |
asBorderable(CssStyle cssStyle,
Borderable able)
Renders a Borderable into the CssStyle. |
static void |
asBorderable(CssStyle cssStyle,
Borderable able,
Style fallbackStyle)
Renders a Borderable into the CssStyle. |
static void |
asColor(CssStyle cssStyle,
Color color,
java.lang.String cssAttributeName)
Renders a color to the specified CSS attribute |
static void |
asColors(CssStyle cssStyle,
Component component)
Renders the specified component's background and foreground properties into the CssStyle provided. |
static void |
asColors(CssStyle cssStyle,
Component component,
java.lang.String backgroundPropertyName,
java.lang.String foregroundPropertyName)
Renders the specified component's background property and foreground property into the CssStyle provided. |
static void |
asColors(CssStyle cssStyle,
Component component,
java.lang.String backgroundPropertyName,
java.lang.String foregroundPropertyName,
Style fallbackStyle)
Renders the specified component's background property and foreground property into the CssStyle provided. |
static void |
asColors(CssStyle cssStyle,
Component component,
Style fallbackStyle)
Renders the specified component's background and foreground properties into the CssStyle provided. |
static void |
asComponent(CssStyle cssStyle,
Component component)
This will take a component and render all the interfaces that the Render code knows about such as Borderable, Insetable or MouseCursorable. |
static void |
asComponent(CssStyle cssStyle,
Component component,
Style fallbackStyle)
This will take a component and render all the interfaces that the Render code knows about such as Borderable, Insetable or MouseCursorable. |
static void |
asFillImage(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
RenderContext rc)
This will render the FillImage property from the component. |
static void |
asFillImage(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
Style fallbackStyle,
RenderContext rc)
This will render the FillImage property from the component. |
static void |
asFont(CssStyle cssStyle,
Component component)
Renders the specified component's "font" property as a Font into the CssStyle provided. |
static void |
asFont(CssStyle cssStyle,
Component component,
java.lang.String propertyName)
Renders the specified component's property as a Font into the CssStyle provided. |
static void |
asFont(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
Style fallbackStyle)
Renders the specified component's property as a Font into the CssStyle provided. |
static void |
asFont(CssStyle cssStyle,
Component component,
Style fallbackStyle)
Renders the specified component's "font" property as a Font into the CssStyle provided. |
static void |
asFont(CssStyle cssStyle,
Font font)
Renders the specified font into the CssStyle provided. |
static void |
asHeightable(CssStyle cssStyle,
Heightable able)
Renders a Heightable into the CssStyle. |
static void |
asHeightable(CssStyle cssStyle,
Heightable able,
Style fallbackStyle)
Renders a Heightable into the CssStyle. |
static void |
asInsetable(CssStyle cssStyle,
Insetable able)
Renders an Insetable into the CssStyle. |
static void |
asInsetable(CssStyle cssStyle,
Insetable able,
Style fallbackStyle)
Renders an Insetable into the CssStyle. |
static void |
asInsets(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
java.lang.String cssAttributeName)
Renders the specified component's property as an Insets into the CssStyle provided. |
static void |
asInsets(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
java.lang.String cssAttributeName,
Style fallbackStyle)
Renders the specified component's property as an Insets into the CssStyle provided. |
static void |
asMouseCursorable(CssStyle cssStyle,
MouseCursorable able)
Renders a MouseCursorable into the CssStyle. |
static void |
asMouseCursorable(CssStyle cssStyle,
MouseCursorable able,
Style fallbackStyle)
Renders a MouseCursorable into the CssStyle. |
static void |
asPositionable(CssStyle cssStyle,
Positionable able)
Renders a Positionable into the CssStyle. |
static void |
asPositionable(CssStyle cssStyle,
Positionable able,
Style fallbackStyle)
Renders a Positionable into the CssStyle. |
static void |
asScrollable(CssStyle cssStyle,
Scrollable able)
Renders a Scrollable into the CssStyle. |
static void |
asScrollable(CssStyle cssStyle,
Scrollable able,
Style fallbackStyle)
Renders a Scrollable into the CssStyle. |
static void |
asSizeable(CssStyle cssStyle,
Sizeable able)
Renders a Sizeable into the CssStyle. |
static void |
asSizeable(CssStyle cssStyle,
Sizeable able,
Style fallbackStyle)
Renders a Sizeable into the CssStyle. |
static void |
asWidthable(CssStyle cssStyle,
Widthable able)
Renders a Widthable into the CssStyle. |
static void |
asWidthable(CssStyle cssStyle,
Widthable able,
Style fallbackStyle)
Renders a Widthable into the CssStyle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Render()
| Method Detail |
|---|
public static void asAble(CssStyle cssStyle,
java.lang.Object ableObject)
cssStyle - -
the CssStyle object to render intoableObject - -
the object that may implement some of the known able
interfaces
public static void asAble(CssStyle cssStyle,
java.lang.Object ableObject,
Style fallbackStyle)
cssStyle - -
the CssStyle object to render intoableObject - -
the object that may implement some of the known able
interfacesfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the ableObject.
public static void asBorder(CssStyle cssStyle,
Border border)
cssStyle - -
the CssStyle to render intoborder - -
the Border
public static void asBorder(CssStyle cssStyle,
Component component,
java.lang.String propertyName)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()propertyName - -
the name of the components's "render" property
public static void asBorder(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
Style fallbackStyle)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()propertyName - -
the name of the components's "render" propertyfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asBorderable(CssStyle cssStyle,
Borderable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asBorderable(CssStyle cssStyle,
Borderable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Borderable.
public static void asColor(CssStyle cssStyle,
Color color,
java.lang.String cssAttributeName)
cssStyle - -
the CssStyle to render intocolor - -
the color to be renderedcssAttributeName - -
the CSS attribute name to place the color value in
public static void asColors(CssStyle cssStyle,
Component component)
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()
public static void asColors(CssStyle cssStyle,
Component component,
java.lang.String backgroundPropertyName,
java.lang.String foregroundPropertyName)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()backgroundPropertyName - -
the name of the background "render" property - can be nullforegroundPropertyName - -
the name of the foreground "render" property - can be null
public static void asColors(CssStyle cssStyle,
Component component,
java.lang.String backgroundPropertyName,
java.lang.String foregroundPropertyName,
Style fallbackStyle)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()backgroundPropertyName - -
the name of the background "render" property - can be nullforegroundPropertyName - -
the name of the foreground "render" property - can be nullfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asColors(CssStyle cssStyle,
Component component,
Style fallbackStyle)
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()fallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asComponent(CssStyle cssStyle,
Component component)
It also renders the standard Component properties into the CssStyle such as forground color, background color and font.
cssStyle - -
the CssStyle object to render intocomponent - -
the component that may implement some of the known interfaces
public static void asComponent(CssStyle cssStyle,
Component component,
Style fallbackStyle)
It also renders the standard Component properties into the CssStyle such as forground color, background color and font.
cssStyle - -
the CssStyle object to render intocomponent - -
the component that may implement some of the known interfacesfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asFillImage(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
RenderContext rc)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle object to render intocomponent - -
the component that may implement some of the known interfacespropertyName - -
the name of the components's "render" propertyrc - -
the RenderContext in place
public static void asFillImage(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
Style fallbackStyle,
RenderContext rc)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle object to render intocomponent - -
the component that may implement some of the known interfacespropertyName - -
the name of the components's "render" propertyfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.rc - -
the RenderContext in place
public static void asFont(CssStyle cssStyle,
Component component)
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()
public static void asFont(CssStyle cssStyle,
Component component,
java.lang.String propertyName)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()propertyName - -
the name of the components's "render" property
public static void asFont(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
Style fallbackStyle)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()propertyName - -
the name of the components's "render" propertyfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asFont(CssStyle cssStyle,
Component component,
Style fallbackStyle)
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()fallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asFont(CssStyle cssStyle,
Font font)
cssStyle - -
the CssStyle to render intofont - -
the font to render
public static void asHeightable(CssStyle cssStyle,
Heightable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asHeightable(CssStyle cssStyle,
Heightable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Heightable.
public static void asInsetable(CssStyle cssStyle,
Insetable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asInsetable(CssStyle cssStyle,
Insetable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Insetable.
public static void asAlignable(CssStyle cssStyle,
Alignable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asAlignable(CssStyle cssStyle,
Alignable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Alignable.
public static void asBackgroundImageable(RenderContext rc,
CssStyle cssStyle,
BackgroundImageable able)
rc - - thecssStyle - -
the style in questionable - -
where source of the style information
public static void asBackgroundImageable(RenderContext rc,
CssStyle cssStyle,
BackgroundImageable able,
Style fallbackStyle)
rc - - thecssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the BackgroundImageable.
public static void asBackgroundImage(RenderContext rc,
CssStyle cssStyle,
FillImage backgroundImage)
FillImage into the CssStyle.
rc - - thecssStyle - -
the style in questionbackgroundImage - -
where source of the background image
public static void asBackgroundImageImpl(RenderContext rc,
CssStyle cssStyle,
FillImage backgroundImage,
Component component)
public static void asInsets(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
java.lang.String cssAttributeName)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()propertyName - -
the name of the components's "render" propertycssAttributeName - -
the name of the CSS attribute, such as "margin" or "padding"
public static void asInsets(CssStyle cssStyle,
Component component,
java.lang.String propertyName,
java.lang.String cssAttributeName,
Style fallbackStyle)
This does a lookup of the component's properties via getRenderProperty(propertyName) and casts the return value appropriately, so take care with property name.
cssStyle - -
the CssStyle to render intocomponent - -
the component to inpect via getRenderProperty()propertyName - -
the name of the components's "render" propertycssAttributeName - -
the name of the CSS attribute, such as "margin" or "padding"fallbackStyle - -
a style to use as a default source of property information if
it cant be found in the component.
public static void asMouseCursorable(CssStyle cssStyle,
MouseCursorable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asMouseCursorable(CssStyle cssStyle,
MouseCursorable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the MouseCursorable.
public static void asPositionable(CssStyle cssStyle,
Positionable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asPositionable(CssStyle cssStyle,
Positionable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Positionable.
public static void asScrollable(CssStyle cssStyle,
Scrollable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asScrollable(CssStyle cssStyle,
Scrollable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Scrollable.
public static void asSizeable(CssStyle cssStyle,
Sizeable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asSizeable(CssStyle cssStyle,
Sizeable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Sizeable.
public static void asWidthable(CssStyle cssStyle,
Widthable able)
cssStyle - -
the style in questionable - -
where source of the style information
public static void asWidthable(CssStyle cssStyle,
Widthable able,
Style fallbackStyle)
cssStyle - -
the style in questionable - -
where source of the style informationfallbackStyle - -
a style to use as a default source of property information if
it cant be found in the Widthable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||