net.sourceforge.geeboss.util
Class LayoutDataUtil

java.lang.Object
  extended by net.sourceforge.geeboss.util.LayoutDataUtil

public class LayoutDataUtil
extends java.lang.Object

Factory class for some LayoutData concerns in Geeboss


Method Summary
static org.eclipse.swt.layout.FormData createFormData(int marginLeft, int marginRight, int marginTop, int marginBottom)
          Create a new FormData with the given Parameters
static org.eclipse.swt.layout.GridData createGridData(int style, int horizontalSpan)
          Create a new GridData with the given parameters
static org.eclipse.swt.layout.GridData createGridData(int style, int horizontalSpan, int widthHint)
          Create a new GridData with the given parameters
static org.eclipse.swt.layout.GridData createGridData(int style, int horizontalSpan, int widthHint, int heightHint)
          Create a new GridData with the given parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFormData

public static org.eclipse.swt.layout.FormData createFormData(int marginLeft,
                                                             int marginRight,
                                                             int marginTop,
                                                             int marginBottom)
Create a new FormData with the given Parameters

Parameters:
marginLeft - Margin in pixel to the left
marginRight - Margin in pixel to the right
marginTop - Margin in pixel to the top
marginBottom - Margin in pixel to the bottom
Returns:
FormData with the given parameters

createGridData

public static org.eclipse.swt.layout.GridData createGridData(int style,
                                                             int horizontalSpan)
Create a new GridData with the given parameters

Parameters:
style - GridData style
horizontalSpan - Horizontal span
Returns:
GridData with the given parameters

createGridData

public static org.eclipse.swt.layout.GridData createGridData(int style,
                                                             int horizontalSpan,
                                                             int widthHint)
Create a new GridData with the given parameters

Parameters:
style - GridData style
horizontalSpan - Horizontal span
widthHint - Width hint in pixel
Returns:
GridData with the given parameters

createGridData

public static org.eclipse.swt.layout.GridData createGridData(int style,
                                                             int horizontalSpan,
                                                             int widthHint,
                                                             int heightHint)
Create a new GridData with the given parameters

Parameters:
style - GridData style
horizontalSpan - Horizontal span
widthHint - Width hint in pixel
heightHint - Height hint in pixel
Returns:
GridData with the given parameters


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.