Class View
Object
Component
Flow
View
public class View
- extends Flow
View provides programmable access to UI elements
normally created with <view> elements on widget
XML specification.
View must always have a non-zero width and height specified.
Function parseSize(String, int) can be used to calculate
size expressions.
Elements placed on view may not overlap due to hiearchical
painting algorithm.
- See Also:
Component.setPreferredSize(int, int),
Component.setPreferredWidth(int),
Component.setPreferredHeight(int)
|
Constructor Summary |
View(Style style)
Creates a new View with specified style. |
| 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 |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
View
public View(Style style)
- Creates a new View with specified style.
- Parameters:
style - Style to use
addElement
public View addElement(String name,
String top,
String right,
String bottom,
String left,
Component element)
- Adds an element to this View.
- Parameters:
name - Name of elementtop - Top coordinate expression (no spaces allowed)right - Right coordinate expression (no spaces allowed)bottom - Bottom coordinate expression (no spaces allowed)left - Left coordinate expression (no spaces allowed)element - Child component to place.- See Also:
Component.getElement(String),
Component.setElement(String, Component)