|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Panel
echopoint.Panel
echopoint.ScrollablePanel
echopoint.HorizontalPanel
public class HorizontalPanel
The HorizontalPanel class provides a Panel
that will layout its contents horizontally in a series of
adjoining cells.
|=======|=======|=======|=======|=======|
|-------|-------|-------|-------|-------|
|-------|-------|-------|-------|-------| extends -->
|-------|-------|-------|-------|-------|
|=======|=======|=======|=======|=======|
The vertical and horizontal alignment properties of Panel relate to these horizontal cells. The component will only be sized as large as its contents.
This component uses a HorizontalLayoutManager layout manager
to provide the left to right placing of components.
For more complex layout components see :
Grid,
Table,
GridPanel,
HorizontalLayoutManager,
GridLayoutManager,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
HorizontalPanel.NestedStyleInfo
Nested public static StyleInfo class. |
| Field Summary | |
|---|---|
static java.lang.String |
CELL_SPACING_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_CELL_SPACING
|
| Fields inherited from class echopoint.ScrollablePanel |
|---|
DEFAULT_POSITONABLE_POLICY, DEFAULT_SCROLLBAR_POLICY |
| Fields inherited from class nextapp.echo.Panel |
|---|
DEFAULT_INSETS, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.ScrollableContainer |
|---|
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, INSETS_CHANGED_PROPERTY, STYLE_HORIZONTAL_ALIGNMENT, STYLE_INSETS, STYLE_VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.Scrollable |
|---|
HEIGHT_CHANGED_PROPERTY, SCROLL_BAR_X_CHANGED_PROPERTY, SCROLL_BAR_Y_CHANGED_PROPERTY, SCROLLBAR_POLICY_CHANGED_PROPERTY, SCROLLBARS_ALWAYS, SCROLLBARS_AUTO, SCROLLBARS_CLIPHIDE, SCROLLBARS_NEVER, STYLE_HEIGHT, STYLE_SCROLL_BAR_POLICY, STYLE_WIDTH, UNDEFINED, undefinedSymbolic, WIDTH_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.Positionable |
|---|
POSITION_CHANGED_PROPERTY, POSITIONING_ABSOLUTE, POSITIONING_FLOW, POSITIONING_RELATIVE, positioningSymbolics, STYLE_BOTTOM, STYLE_LEFT, STYLE_POSITIONING, STYLE_RIGHT, STYLE_TOP, STYLE_ZINDEX, UNDEFINED, undefinedSymbolic |
| Fields inherited from interface echopoint.positionable.Clippable |
|---|
CLIP_RECT_CHANGED_PROPERTY, STYLE_CLIP_RECT |
| Fields inherited from interface echopoint.layout.LayoutManageable |
|---|
LAYOUT_MANAGED_CHANGED_PROPERTY |
| Fields inherited from interface echopoint.positionable.MouseCursorable |
|---|
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI |
| Constructor Summary | |
|---|---|
HorizontalPanel()
Constructs a HorizontalPanel, which will of
course have an underlying HorizontalLayoutManager. |
|
| Method Summary | |
|---|---|
void |
applyStyle(Style style)
Applies the provided style to the component. |
int |
getCellSpacing()
Returns the cell spacing |
int |
getHeight()
Returns the height of the component |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the contents of this panel. |
Insets |
getInsets()
Returns the insets (margins) of the panel. |
int |
getScrollBarPolicy()
Returns the ScrollBarPolicy in place This can be one of : SCOLLBARS_NONE SCOLLBARS_ALWAYS SCOLLBARS_AUTO |
int |
getScrollBarX()
Returns the position of the horizontal scroll bar, in pixels offset from the left of the component. |
int |
getScrollBarY()
Returns the position of the vertical scroll bar, in pixels offset from the top the component. |
int |
getVerticalAlignment()
Returns the vertical alignment of the contents of this panel. |
int |
getWidth()
Returns the width of the component |
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setCellSpacing(int newValue)
Sets the cell spacing |
void |
setHeight(int newValue)
Sets the height of the component |
void |
setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the contents of this panel. |
void |
setInsets(Insets newValue)
Sets the insets (margins) of the pane. |
void |
setLayoutManager(LayoutManager newLayoutManager)
Sets a new LayoutManager into the LayoutManageable container. |
void |
setScrollBarPolicy(int newScrollBarPolicy)
This sets the scroll bar policy to use. |
void |
setScrollBarX(int newValue)
Sets the position of the horizontal scroll bar, in pixels offset from the left of the component. |
void |
setScrollBarY(int newValue)
Sets the position of the vertical scroll bar, in pixels offset from the top of the component. |
void |
setVerticalAlignment(int newValue)
Sets the vertical alignment of the contents of this panel. |
void |
setWidth(int newValue)
Sets the width of the component |
| Methods inherited from class echopoint.ScrollablePanel |
|---|
clearPositioning, getBottom, getClipRect, getLeft, getPositioning, getRight, getScreenHeight, getScreenWidth, getTop, getzIndex, isPositioned, setBottom, setClipRect, setClipRect, setClipRect, setLeft, setPositioning, setRight, setTop, setzIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.layout.LayoutManageable |
|---|
add, add, add, add, getLayoutManager, remove, remove |
| Field Detail |
|---|
public static final java.lang.String CELL_SPACING_CHANGED_PROPERTY
public static final java.lang.String STYLE_CELL_SPACING
| Constructor Detail |
|---|
public HorizontalPanel()
HorizontalPanel, which will of
course have an underlying HorizontalLayoutManager.
| Method Detail |
|---|
public void applyStyle(Style style)
ScrollablePanelnextapp.echo.Component
style names can be used as well.
applyStyle in interface BorderableapplyStyle in interface ClippableapplyStyle in interface MouseCursorableapplyStyle in interface PositionableapplyStyle in interface ScrollableapplyStyle in interface ComponentapplyStyle in class ScrollablePanelstyle - The style object from which to retrieve properties for this
Component.Component.applyStyle(nextapp.echo.Style)public int getCellSpacing()
public int getHeight()
getHeight in interface ScrollablegetHeight in class ScrollablePanelpublic int getHorizontalAlignment()
Panel
getHorizontalAlignment in interface ScrollableContainergetHorizontalAlignment in class PanelPanel.getHorizontalAlignment()public Insets getInsets()
Panel
getInsets in interface ScrollableContainergetInsets in class PanelPanel.getInsets()public int getScrollBarPolicy()
getScrollBarPolicy in interface ScrollablegetScrollBarPolicy in class ScrollablePanelpublic int getScrollBarX()
getScrollBarX in interface ScrollablegetScrollBarX in class ScrollablePanelpublic int getScrollBarY()
getScrollBarY in interface ScrollablegetScrollBarY in class ScrollablePanelpublic int getVerticalAlignment()
Panel
getVerticalAlignment in interface ScrollableContainergetVerticalAlignment in class PanelPanel.getVerticalAlignment()public int getWidth()
getWidth in interface ScrollablegetWidth in class ScrollablePanelpublic void setCellSpacing(int newValue)
newValue - public void setHeight(int newValue)
setHeight in interface ScrollablesetHeight in class ScrollablePanelpublic void setHorizontalAlignment(int newValue)
Panel
setHorizontalAlignment in interface ScrollableContainersetHorizontalAlignment in class PanelnewValue - The horizontal alignment of the contents of this panel,
one of the following values.
Panel.setHorizontalAlignment(int)public void setInsets(Insets newValue)
Panel
setInsets in interface ScrollableContainersetInsets in class PanelnewValue - An insets object that specifies the size of each margin
of this pane.Panel.setInsets(nextapp.echo.Insets)public void setLayoutManager(LayoutManager newLayoutManager)
LayoutManageable
setLayoutManager in interface LayoutManageablesetLayoutManager in class PanelLayoutManageable.setLayoutManager(echopoint.layout.LayoutManager)public void setScrollBarPolicy(int newScrollBarPolicy)
setScrollBarPolicy in interface ScrollablesetScrollBarPolicy in class ScrollablePanelpublic void setScrollBarX(int newValue)
setScrollBarX in interface ScrollablesetScrollBarX in class ScrollablePanelnewValue - The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
setScrollBarY in interface ScrollablesetScrollBarY in class ScrollablePanelnewValue - The new position of the vertical scroll bar, in pixels.public void setVerticalAlignment(int newValue)
Panel
setVerticalAlignment in interface ScrollableContainersetVerticalAlignment in class PanelnewValue - The vertical alignment of the contents of this panel,
one of the following values.
Panel.setVerticalAlignment(int)public void setWidth(int newValue)
setWidth in interface ScrollablesetWidth in class ScrollablePanel
public java.lang.Object set(java.lang.reflect.Field field,
java.lang.Object newValue)
throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception {
Object oldValue = f.get(this);
f.set(this,newValue);
return oldValue;
}
set in interface ReflectionSetterset in class ScrollablePanelfield - - the field to be setnewValue - - the new value to be set
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.ExceptionReflectionSetter.set(Field, Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||