public class StretchLayoutManager extends java.lang.Object implements LayoutManager
Constructor and Description |
---|
StretchLayoutManager(int width,
int height)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(TWidget child)
Add a child widget to manage.
|
void |
onResize(TResizeEvent resize)
Process the parent widget's resize event, and resize/reposition child
widgets.
|
void |
remove(TWidget child)
Remove a child widget from those managed by this LayoutManager.
|
void |
resetSize(TWidget child)
Reset a child widget's original/preferred size.
|
public StretchLayoutManager(int width, int height)
width
- the width of the parent widgetheight
- the height of the parent widgetpublic void onResize(TResizeEvent resize)
onResize
in interface LayoutManager
resize
- resize eventpublic void add(TWidget child)
add
in interface LayoutManager
child
- the widget to managepublic void remove(TWidget child)
remove
in interface LayoutManager
child
- the widget to removepublic void resetSize(TWidget child)
resetSize
in interface LayoutManager
child
- the widget to manageCopyright © 2019 Kevin Lamonte. Licensed MIT.