|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.ui.util.PositioningHelper
A helper class for positionable, scrollable and clippable component rendering. This class will return HTML STYLE="" strings or will added the parameters to a ComponentStyle object.
Constructor Summary | |
PositioningHelper()
|
Method Summary | |
static void |
addScrollableSaveSupport(nextapp.echoservlet.RenderingContext rc,
Scrollable scrollable,
java.lang.String htmlId,
nextapp.echoservlet.html.Element scrollableElement)
Adds support for saving ScrollBar positioning of scrollables |
static void |
addScrollableSaveSupport(nextapp.echoservlet.RenderingContext rc,
Scrollable scrollable,
java.lang.String htmlId,
nextapp.echoservlet.html.Element scrollableElement,
java.lang.String saveScrollJS)
Adds support for saving ScrollBar positioning of scrollables with a custom JS command |
static boolean |
coordHasValue(int coordValue)
Returns true of the given co-ordinate has a value that is not invalid. |
static java.lang.String |
getClippableStyle(Clippable clippable)
Returns a style String with that are relevant the clippable component. |
static int |
getHighestzIndex(nextapp.echoservlet.InstancePeer instancePeer,
nextapp.echo.Component component)
This will search up the Component hierarchy and find all Positionables and then return the highest zIndex found. |
static java.lang.String |
getMouseCursorableStyle(MouseCursorable mouseCursorable)
Returns a style string that are relevant for the MouseCursorable component. |
static java.lang.String |
getPositionableStyle(Positionable pc)
Returns a style string that is relevant for the Positonable If no positioning is in effect, then nothing is return. |
static java.lang.String |
getScrollablePolicy(Scrollable scrollable)
Returns a CSS attribute overflow:value string for the scrollable policy. |
static java.lang.String |
getScrollableStyle(Scrollable scrollable)
Returns a style string that are relevant for the scrollable component. |
static int |
getzIndex(nextapp.echo.Component c)
Returns a zIndex for the Component by searching up the tree for a Positionable parent or itself. |
static boolean |
hasBorder(Borderable borderable)
Returns true of the given Boderable should have aa border |
static void |
setBackgroundImageProperties(nextapp.echo.BackgroundImageProperties bgProperties,
java.lang.String backgroundImageURI,
nextapp.echoservlet.ComponentStyle style)
Sets background image properties into the given compoennt style. |
static void |
setBorderableStyle(Borderable borderable,
nextapp.echoservlet.ComponentStyle style)
Adds style border attributes to the provided style that are relevant for the Borderable component. |
static void |
setClippableStyle(Clippable clippable,
nextapp.echoservlet.ComponentStyle style)
Adds style attributes to the provided style that are relevant for the clippable component. |
static void |
setMouseCursorableStyle(MouseCursorable mouseCursorable,
nextapp.echoservlet.ComponentStyle style)
Adds mouse cursor attributes to the provided style that are relevant for the MouseCursorable component. |
static void |
setPositionableStyle(Positionable pc,
nextapp.echoservlet.ComponentStyle style)
Adds style attributes to the provided style that are relevant for the positonable component. |
static void |
setPositionableStyleCorners(Positionable pc,
nextapp.echoservlet.ComponentStyle style)
Adds style attributes for the left, right, top and bottom dimensions to the provided style that are relevant for the positonable component. |
static void |
setScrollableStyle(Scrollable scrollable,
nextapp.echoservlet.ComponentStyle style)
Adds style attributes to the provided style that are relevant for the scrollable component. |
static void |
setScrollableStyleScroll(Scrollable scrollable,
nextapp.echoservlet.ComponentStyle style)
Adds style scrollbar attributes to the provided style that are relevant for the scrollable component. |
static void |
setScrollableStyleWandH(Scrollable scrollable,
nextapp.echoservlet.ComponentStyle style)
Adds style width and height attributes to the provided style that are relevant for the scrollable component. |
static void |
storeScrollablePositions(java.lang.String input,
nextapp.echo.Component c)
Stores the X,Y scrollbar positions of a Scrollable ClientInutProducer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PositioningHelper()
Method Detail |
public static void addScrollableSaveSupport(nextapp.echoservlet.RenderingContext rc, Scrollable scrollable, java.lang.String htmlId, nextapp.echoservlet.html.Element scrollableElement)
public static void addScrollableSaveSupport(nextapp.echoservlet.RenderingContext rc, Scrollable scrollable, java.lang.String htmlId, nextapp.echoservlet.html.Element scrollableElement, java.lang.String saveScrollJS)
public static boolean coordHasValue(int coordValue)
public static java.lang.String getClippableStyle(Clippable clippable)
public static java.lang.String getPositionableStyle(Positionable pc)
If no positioning is in effect, then nothing is return.
public static java.lang.String getScrollableStyle(Scrollable scrollable)
public static java.lang.String getScrollablePolicy(Scrollable scrollable)
public static java.lang.String getMouseCursorableStyle(MouseCursorable mouseCursorable)
public static int getzIndex(nextapp.echo.Component c)
public static boolean hasBorder(Borderable borderable)
public static void setBorderableStyle(Borderable borderable, nextapp.echoservlet.ComponentStyle style)
public static void setClippableStyle(Clippable clippable, nextapp.echoservlet.ComponentStyle style)
public static void setPositionableStyle(Positionable pc, nextapp.echoservlet.ComponentStyle style)
If no positioning is in effect, then nothing is added.
public static void setPositionableStyleCorners(Positionable pc, nextapp.echoservlet.ComponentStyle style)
public static void setScrollableStyle(Scrollable scrollable, nextapp.echoservlet.ComponentStyle style)
public static void setScrollableStyleScroll(Scrollable scrollable, nextapp.echoservlet.ComponentStyle style)
public static void setScrollableStyleWandH(Scrollable scrollable, nextapp.echoservlet.ComponentStyle style)
public static void storeScrollablePositions(java.lang.String input, nextapp.echo.Component c)
public static void setBackgroundImageProperties(nextapp.echo.BackgroundImageProperties bgProperties, java.lang.String backgroundImageURI, nextapp.echoservlet.ComponentStyle style)
public static int getHighestzIndex(nextapp.echoservlet.InstancePeer instancePeer, nextapp.echo.Component component)
instancePeer
- - the instance peer to find peers withcomponent
- - the component to start from
public static void setMouseCursorableStyle(MouseCursorable mouseCursorable, nextapp.echoservlet.ComponentStyle style)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |