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

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.jface.layout
Class TableColumnLayout

java.lang.Object
  extended by 

org.eclipse.swt.widgets.Layout
      extended by 

org.eclipse.jface.layout.AbstractColumnLayout
          extended by 
org.eclipse.jface.layout.TableColumnLayout

public class TableColumnLayout
extends AbstractColumnLayout

The TableColumnLayout is the Layout used to maintain TableColumn sizes in a Table.

You can only add the Layout to a container whose only child is the Table control you want the Layout applied to. Don't assign the layout directly the Table

Since:
3.3

Field Summary
 
Fields inherited from class org.eclipse.jface.layout. AbstractColumnLayout
LAYOUT_DATA
 
Constructor Summary
TableColumnLayout ()
           
 
Method Summary
protected  int getColumnCount ( Scrollable tableTree)
          Get the number of columns for the receiver.
protected   ColumnLayoutData getLayoutData ( Scrollable tableTree, int columnIndex)
          Get the layout data for a column
protected  void setColumnWidths ( Scrollable tableTree, int[] widths)
          Set the widths of the columns.
protected  void updateColumnData ( Widget column)
          Update the layout data for a column
 
Methods inherited from class org.eclipse.jface.layout. AbstractColumnLayout
computeSize, getColumnTrim, layout, setColumnData
 
Methods inherited from class org.eclipse.swt.widgets. Layout
flushCache
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableColumnLayout

public TableColumnLayout()
Method Detail

getColumnCount

protected int getColumnCount(
Scrollable tableTree)
Get the number of columns for the receiver.

Specified by:
getColumnCount in class AbstractColumnLayout
Parameters:
tableTree - the control
Returns:
the number of columns
Since:
3.5

setColumnWidths

protected void setColumnWidths(
Scrollable tableTree,
                               int[] widths)
Set the widths of the columns.

Specified by:
setColumnWidths in class AbstractColumnLayout
Parameters:
tableTree - the control
widths - the widths of the column
Since:
3.5

getLayoutData

protected 
ColumnLayoutData getLayoutData(
Scrollable tableTree,
                                         int columnIndex)
Get the layout data for a column

Specified by:
getLayoutData in class AbstractColumnLayout
Parameters:
tableTree - the control
columnIndex - the column index
Returns:
the layout data, might not null
Since:
3.5

updateColumnData

protected void updateColumnData(
Widget column)
Description copied from class: AbstractColumnLayout
Update the layout data for a column

Specified by:
updateColumnData in class AbstractColumnLayout
Parameters:
column - the column
Since:
3.5

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