76 lines
2.2 KiB
Java
76 lines
2.2 KiB
Java
|
|
/*
|
||
|
|
* Copyright (c) 2004,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.tcv.swt.server;
|
||
|
|
|
||
|
|
import com.foundation.tcv.swt.IFillLayout;
|
||
|
|
|
||
|
|
public class FillLayout extends Layout implements IFillLayout {
|
||
|
|
/**
|
||
|
|
* FillLayout constructor.
|
||
|
|
* @param container The container that is using the layout.
|
||
|
|
*/
|
||
|
|
public FillLayout(AbstractComponent container) {
|
||
|
|
super(container);
|
||
|
|
//Initialize the client component.//
|
||
|
|
sendMessage(MESSAGE_INITIALIZE, getContainer().getNumber());
|
||
|
|
}//FillLayout()//
|
||
|
|
/**
|
||
|
|
* Sets the layout type.
|
||
|
|
* @param type The layout type.
|
||
|
|
*/
|
||
|
|
public void setType(int type) {
|
||
|
|
sendMessage(MESSAGE_SET_TYPE, type);
|
||
|
|
}//setType()//
|
||
|
|
/**
|
||
|
|
* Sets the layout margin width.
|
||
|
|
* @param marginWidth The layout margin width.
|
||
|
|
*/
|
||
|
|
public void setMarginWidth(int marginWidth) {
|
||
|
|
sendMessage(MESSAGE_SET_MARGIN_WIDTH, marginWidth);
|
||
|
|
}//setMarginWidth()//
|
||
|
|
/**
|
||
|
|
* Sets the layout margin height.
|
||
|
|
* @param marginHeight The layout margin height.
|
||
|
|
*/
|
||
|
|
public void setMarginHeight(int marginHeight) {
|
||
|
|
sendMessage(MESSAGE_SET_MARGIN_HEIGHT, marginHeight);
|
||
|
|
}//setMarginHeight()//
|
||
|
|
/**
|
||
|
|
* Sets the layout spacing.
|
||
|
|
* @param spacing The layout spacing.
|
||
|
|
*/
|
||
|
|
public void setSpacing(int spacing) {
|
||
|
|
sendMessage(MESSAGE_SET_SPACING, spacing);
|
||
|
|
}//setSpacing()//
|
||
|
|
/* (non-Javadoc)
|
||
|
|
* @see com.foundation.tcv.swt.server.Layout#getClientClassName()
|
||
|
|
*/
|
||
|
|
protected String getClientClassName() {
|
||
|
|
return "com.foundation.tcv.swt.client.FillLayout";
|
||
|
|
}//getClientClassName()//
|
||
|
|
/* (non-Javadoc)
|
||
|
|
* @see com.foundation.tcv.swt.server.Layout#initialize()
|
||
|
|
*/
|
||
|
|
public void initialize() {
|
||
|
|
}//initialize()//
|
||
|
|
/* (non-Javadoc)
|
||
|
|
* @see com.foundation.tcv.swt.server.Layout#refresh()
|
||
|
|
*/
|
||
|
|
public void refresh() {
|
||
|
|
}//refresh()//
|
||
|
|
/* (non-Javadoc)
|
||
|
|
* @see com.foundation.tcv.swt.server.Layout#release()
|
||
|
|
*/
|
||
|
|
public void release() {
|
||
|
|
}//release()//
|
||
|
|
/* (non-Javadoc)
|
||
|
|
* @see com.foundation.tcv.swt.server.Layout#synchronize()
|
||
|
|
*/
|
||
|
|
public void synchronize() {
|
||
|
|
}//synchronize()//
|
||
|
|
}//FillLayout//
|