|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.Component
echopoint.internal.AbstractContainer
echopoint.Strut
public class Strut
Strut is a very simple component that can have a fixed width and height. It
is most commonly used to create precise spaces between components laid out
in a container component such as Column.
The following shows how to add a 50 px space between two labels in
a Row container.
import echopoint.Strut;
import nextapp.echo.app.Label;
import nextapp.echo.app.Row;
...
final Row row = new Row();
row.add( new Label( "Label 1" ) );
row.add( new Strut( 50, 10 ) );
row.add( new Label( "Label 2" ) );
Modified by Rakesh 2008-07-20
| Field Summary |
|---|
| Fields inherited from class echopoint.internal.AbstractContainer |
|---|
ACTION_COMMAND_PROPERTY, ACTION_LISTENERS_CHANGED_PROPERTY, INPUT_ACTION, PROPERTY_ALIGNMENT, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_HEIGHT, PROPERTY_INSETS, PROPERTY_WIDTH |
| Constructor Summary | |
|---|---|
Strut()
Constructs a Strut that is 10px wide by 10px high. |
|
Strut(Extent width,
Extent height)
Constructs a Strut. |
|
Strut(int width,
int height)
Constructs a Strut that is width pixels wide by
height pixels high. |
|
| Method Summary | |
|---|---|
boolean |
isValidChild(Component child)
Strut is NOT allowed to have any children. |
| Methods inherited from class echopoint.internal.AbstractContainer |
|---|
addActionListener, fireActionPerformed, getAlignment, getBackgroundImage, getBorder, getHeight, getInsets, getWidth, hasActionListeners, removeActionListener, setAlignment, setBackgroundImage, setBorder, setHeight, setInsets, setWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Strut()
public Strut(int width,
int height)
width pixels wide by
height pixels high.
width - The width in pixels for this component.height - The height in pixels for this component.
public Strut(Extent width,
Extent height)
width - The width of the Strutheight - The height of the Strut| Method Detail |
|---|
public boolean isValidChild(Component child)
isValidChild in class ComponentComponent.isValidChild(nextapp.echo.app.Component)
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||