Initial commit from SVN.
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
package com.foundation.tcv.swt.client;
|
||||
|
||||
import com.foundation.tcv.view.ViewMessage;
|
||||
|
||||
public class CenterLayout extends Layout {
|
||||
/**
|
||||
* CenterLayout constructor.
|
||||
*/
|
||||
public CenterLayout() {
|
||||
super();
|
||||
}//CenterLayout()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.tcv.swt.client.Layout#createLayout(java.lang.Object)
|
||||
*/
|
||||
public org.eclipse.swt.widgets.Layout createLayout(Object rowObject) {
|
||||
return new com.foundation.view.swt.layout.CenterLayout();
|
||||
}//createLayout()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.tcv.swt.client.Layout#initialize()
|
||||
*/
|
||||
public void initialize() {
|
||||
}//initialize()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.tcv.swt.client.Layout#release()
|
||||
*/
|
||||
public void release() {
|
||||
}//release()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.tcv.swt.client.Layout#synchronize()
|
||||
*/
|
||||
public void synchronize() {
|
||||
}//synchronize()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.tcv.swt.client.Layout#processMessage(com.foundation.tcv.view.ViewMessage)
|
||||
*/
|
||||
public Object processMessage(ViewMessage viewMessage) {
|
||||
Object result = null;
|
||||
|
||||
switch(viewMessage.getMessageNumber()) {
|
||||
case MESSAGE_INITIALIZE: {
|
||||
setContainer((AbstractComponent) getComponent(viewMessage.getMessageInteger()));
|
||||
break;
|
||||
}//case//
|
||||
default: {
|
||||
result = super.processMessage(viewMessage);
|
||||
break;
|
||||
}//default//
|
||||
}//switch//
|
||||
|
||||
return result;
|
||||
}//processMessage()//
|
||||
}//CenterLayout//
|
||||
Reference in New Issue
Block a user