Package org.eclipse.ui.forms.widgets
Interface ILayoutExtension
-
- All Known Implementing Classes:
ColumnLayout
,TableWrapLayout
public interface ILayoutExtension
Classes that extend abstract class Layout and implement this interface can take part in layout computation of the TableWrapLayout manager. This layout uses alternative algorithm that computes columns before rows. It allows it to 'flow' wrapped text proportionally (similar to the way web browser renders tables). Custom layout managers that implement this interface will allow TableWrapLayout to properly compute width hint to pass.- Since:
- 3.0
- See Also:
TableWrapLayout
,ColumnLayout
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
computeMaximumWidth(Composite parent, boolean changed)
Computes the maximum width of the parent.int
computeMinimumWidth(Composite parent, boolean changed)
Computes the minimum width of the parent.
-
-
-
Method Detail
-
computeMinimumWidth
int computeMinimumWidth(Composite parent, boolean changed)
Computes the minimum width of the parent. All widgets capable of word wrapping should return the width of the longest word that cannot be broken any further.- Parameters:
parent
- the parent compositechanged
-true
if the cached information should be flushed,false
otherwise.- Returns:
- the minimum width of the parent composite
-
computeMaximumWidth
int computeMaximumWidth(Composite parent, boolean changed)
Computes the maximum width of the parent. All widgets capable of word wrapping should return the length of the entire text with wrapping turned off.- Parameters:
parent
- the parent compositechanged
-true
if the cached information should be flushed,false
otherwise.- Returns:
- the maximum width of the parent composite
-
-