Files
Brainstorm/Foundation SWT/src/com/foundation/view/swt/FillLayout.java

92 lines
2.4 KiB
Java
Raw Normal View History

2014-05-30 10:31:51 -07:00
/*
* Copyright (c) 2007 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package com.foundation.view.swt;
import org.eclipse.swt.SWT;
public class FillLayout extends Layout {
private int type = SWT.HORIZONTAL;
private int marginWidth = 0;
private int marginHeight = 0;
private int spacing = 0;
/**
* FillLayout constructor.
* @param container The container that is using the layout.
*/
public FillLayout(IAbstractSwtContainer container) {
super(container);
}//FillLayout()//
/**
* FillLayout constructor.
* @param container The container that is using the layout.
*/
public FillLayout(ICellContainer container) {
super(container);
}//FillLayout()//
/* (non-Javadoc)
* @see com.foundation.view.swt.Layout#createLayout(java.lang.Object)
*/
public org.eclipse.swt.widgets.Layout createLayout(Object rowObject) {
com.foundation.view.swt.layout.FillLayout result = new com.foundation.view.swt.layout.FillLayout();
result.type = type;
result.marginHeight = marginHeight;
result.marginWidth = marginWidth;
result.spacing = spacing;
return result;
}//createLayout()//
/* (non-Javadoc)
* @see com.foundation.view.swt.Layout#initialize()
*/
public void initialize() {
}//initialize()//
/* (non-Javadoc)
* @see com.foundation.view.swt.Layout#refresh()
*/
public void refresh() {
}//refresh()//
/* (non-Javadoc)
* @see com.foundation.view.swt.Layout#synchronize()
*/
public void synchronize() {
}//synchronize()//
/* (non-Javadoc)
* @see com.foundation.view.swt.Layout#release()
*/
public void release() {
}//release()//
/**
* Sets the layout type.
* @param type The layout type.
*/
public void setType(int type) {
this.type = type;
}//setType()//
/**
* Sets the layout margin width.
* @param marginWidth The layout margin width.
*/
public void setMarginWidth(int marginWidth) {
this.marginWidth = marginWidth;
}//setMarginWidth()//
/**
* Sets the layout margin height.
* @param marginHeight The layout margin height.
*/
public void setMarginHeight(int marginHeight) {
this.marginHeight = marginHeight;
}//setMarginHeight()//
/**
* Sets the layout spacing.
* @param spacing The layout spacing.
*/
public void setSpacing(int spacing) {
this.spacing = spacing;
}//setSpacing()//
}//FillLayout//