ComponentBuilder
Description
Public / Methods
WithDelegate
2 overloads
Adds the given listener in to Component.OnAction.
Adds the given listener in to Component.OnAction.
WithLabel
Adds a label for the component.
The grid bounds of the created LabelView will be derived from Box2I.X1 (x), Box2I.Y1 (y) and IBox2Ops.Width (w) of Component.LayoutGrid : if x is greater than zero, the grid bounds (x-1,y,1,1) are used. Otherwise, the grid bounds (x,y-1,w,1) are used.
WithListener
2 overloads
Adds the given listener in to Component.OnAction.
Adds the given listener in to Component.OnAction.
WithScrollBar
Adds a scroll bar to the current component.
Given the layout grid box (x,y,w,h) of the current component, the grids for the vertical and horizontal scroll bars are (x+w,y,1,h) and (x,y+h,w,1).
Wrap
Wraps the current component in a separate Container which then replaces the current component within its original parent.
The layout grid box of the current component is changed to (0,0,1,1) while retaining the other Layout values. The wrapping container uses the original layout grid box and the given layout opt values.