NextApp Echo
App Container 1.0.5

nextapp.echoservlet
Class LayoutStrut

java.lang.Object
  extended bynextapp.echoservlet.LayoutStrut

public class LayoutStrut
extends java.lang.Object

A utility class used to create image elements of various sizes that referencing a blank image generating service. These elements are used to force separation of other elements in an HTML document.


Field Summary
static Service SERVICE_BLANK_PIXEL
          The blank pixel generating service
 
Constructor Summary
private LayoutStrut()
          Non-instantiable class.
 
Method Summary
static Element createElement(Connection conn, int width, int height)
          Creates an HTML <img> element that references a transparent image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_BLANK_PIXEL

public static final Service SERVICE_BLANK_PIXEL
The blank pixel generating service

Constructor Detail

LayoutStrut

private LayoutStrut()
Non-instantiable class.

Method Detail

createElement

public static Element createElement(Connection conn,
                                    int width,
                                    int height)
Creates an HTML <img> element that references a transparent image.

Parameters:
conn - The connection to which the containing document will be rendered.
width - The desired pixel width of the layout strut.
height - The desired pixel height of the layout strut.
Returns:
An HTML <img> element that references a transparent image of the desired size.

NextApp Echo
App Container 1.0.5