|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.Panel echopoint.Panel echopoint.ScrollablePanel echopoint.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 FormNested 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 class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_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(nextapp.echo.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 ScrollableContainer. |
nextapp.echo.Insets |
getInsets()
Returns the insets of the ScrollableContainer. |
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 ScrollableContainer. |
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 ScrollableContainer. |
void |
setInsets(nextapp.echo.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 ScrollableContainer. |
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 nextapp.echo.Component |
addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate |
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(nextapp.echo.Style style)
ScrollablePanel
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface Scrollable
applyStyle
in class ScrollablePanel
Component.applyStyle(nextapp.echo.Style)
public int getCellSpacing()
public int getHeight()
getHeight
in interface Scrollable
getHeight
in class ScrollablePanel
public int getHorizontalAlignment()
ScrollableContainer
Panel.getHorizontalAlignment()
public nextapp.echo.Insets getInsets()
ScrollableContainer
Panel.getInsets()
public int getScrollBarPolicy()
getScrollBarPolicy
in interface Scrollable
getScrollBarPolicy
in class ScrollablePanel
public int getScrollBarX()
getScrollBarX
in interface Scrollable
getScrollBarX
in class ScrollablePanel
public int getScrollBarY()
getScrollBarY
in interface Scrollable
getScrollBarY
in class ScrollablePanel
public int getVerticalAlignment()
ScrollableContainer
Panel.getVerticalAlignment()
public int getWidth()
getWidth
in interface Scrollable
getWidth
in class ScrollablePanel
public void setCellSpacing(int newValue)
newValue
- public void setHeight(int newValue)
setHeight
in interface Scrollable
setHeight
in class ScrollablePanel
public void setHorizontalAlignment(int newValue)
ScrollableContainer
Panel.setHorizontalAlignment(int)
public void setInsets(nextapp.echo.Insets newValue)
ScrollableContainer
Panel.setInsets(nextapp.echo.Insets)
public void setLayoutManager(LayoutManager newLayoutManager)
LayoutManageable
setLayoutManager
in interface LayoutManageable
setLayoutManager
in class Panel
LayoutManageable.setLayoutManager(echopoint.layout.LayoutManager)
public void setScrollBarPolicy(int newScrollBarPolicy)
setScrollBarPolicy
in interface Scrollable
setScrollBarPolicy
in class ScrollablePanel
public void setScrollBarX(int newValue)
setScrollBarX
in interface Scrollable
setScrollBarX
in class ScrollablePanel
newValue
- The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
setScrollBarY
in interface Scrollable
setScrollBarY
in class ScrollablePanel
newValue
- The new position of the vertical scroll bar, in pixels.public void setVerticalAlignment(int newValue)
ScrollableContainer
Panel.setVerticalAlignment(int)
public void setWidth(int newValue)
setWidth
in interface Scrollable
setWidth
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 ReflectionSetter
set
in class ScrollablePanel
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |