Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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
 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 composite
changed - 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 composite
changed - true if the cached information should be flushed, false otherwise.
Returns:
the maximum width of the parent composite

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire