Package jexer.layout
Interface LayoutManager
-
- All Known Implementing Classes:
BoxLayoutManager
,StretchLayoutManager
public interface LayoutManager
A LayoutManager provides automatic positioning and sizing of a TWidget's child TWidgets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
onResize
void onResize(TResizeEvent resize)
Process the parent widget's resize event, and resize/reposition child widgets.- Parameters:
resize
- resize event
-
add
void add(TWidget child)
Add a child widget to manage.- Parameters:
child
- the widget to manage
-
remove
void remove(TWidget child)
Remove a child widget from those managed by this LayoutManager.- Parameters:
child
- the widget to remove
-
resetSize
void resetSize(TWidget child)
Reset a child widget's original/preferred size.- Parameters:
child
- the widget to manage
-
-