Package org.eclipse.ui.forms.widgets
Interface ILayoutExtension
-
- All Known Implementing Classes:
ColumnLayout,TableWrapLayout
public interface ILayoutExtensionClasses 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 intcomputeMaximumWidth(Composite parent, boolean changed)Computes the maximum width of the parent.intcomputeMinimumWidth(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-trueif the cached information should be flushed,falseotherwise.- 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-trueif the cached information should be flushed,falseotherwise.- Returns:
- the maximum width of the parent composite
-
-