|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
Component
Flow
public class Flow
Flow is a container class for other user interface Components.
As the name suggests the Flow uses HTML like layout management
where child components are laid out to "lines".
Components need to have VISIBLE flag in order for
them to appear on screen.
Contents of this container are accessed and manipulated with:
Component.size(),
Component.first()
Component.last()
Component.indexOf(Component)
Component.get(int)
Component.set(int, Component)
Component.insert(int, Component)
Component.add(Component)
Component.remove(int)
Component.remove(Component)
Component.operator_get(int)
Component.operator_set(int, Component)
Component.clear()
A line break occurs on the following conditions:
LINEFEED flag on.
WRAP flag on, the linefeed will occur if the child
component would otherwise exceed the space horizontally available
space for Flow.
All flags are:
Flow has following special style customizations:
hspacing: Horizontal spacing between components
vspacing: Vertical spacing between lines
align: Horizontal alignment controls how
the components are aligned on lines and vertical alignment controls
how the lines are aligned on the area available for Flow.
If vertical alignment is other than TOP it is
recommended to have Flow that has explicit height (i.e.
Component.setPreferredWidth(int) has been set with != 0
value.
| Constructor Summary | |
|---|---|
Flow(Style style)
Creates a new Flow container. |
|
| Method Summary |
|---|
| Methods inherited from class Component |
|---|
add, appendText, clear, find, first, get, getAction, getData, getElement, getFlags, getImage, getLocation, getParent, getShell, getSize, getStyle, getText, getViewPort, hasLinefeed, indexOf, insert, isFocusable, isShown, isVisible, isWrapping, last, operator_get, operator_set, remove, remove, repaint, set, setAction, setData, setElement, setFlags, setImage, setLocation, setPreferredHeight, setPreferredSize, setPreferredWidth, setStyle, setText, size |
| Methods inherited from class Object |
|---|
toString, equals, hashCode |
| Methods inherited from |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Flow(Style style)
style - Style to use
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||