53 lines
1.9 KiB
Java
53 lines
1.9 KiB
Java
/*
|
|
* Copyright (c) 2003,2009 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.server.controller.SessionViewController;
|
|
import com.foundation.tcv.swt.IScrollableComponent;
|
|
import com.foundation.tcv.view.*;
|
|
import com.foundation.view.IAbstractContainer;
|
|
|
|
public abstract class ScrollableComponent extends Component implements IScrollableComponent {
|
|
/**
|
|
* ScrollableComponent default constructor.
|
|
* <p>Warning: This is only for use by the framework. This should never be called to create a useable instance.</p>
|
|
*/
|
|
public ScrollableComponent() {
|
|
}//ScrollableComponent()//
|
|
/**
|
|
* ScrollableComponent constructor.
|
|
* @param parent The parent container.
|
|
* @param name The name of the component.
|
|
*/
|
|
public ScrollableComponent(IAbstractContainer parent, String name, int style) {
|
|
super(parent, name, style);
|
|
}//ScrollableComponent()//
|
|
/**
|
|
* ScrollableComponent constructor.
|
|
* This constructor is used if this is the top level component and has no parent.
|
|
* @param sessionViewController The session view controller for this view.
|
|
* @param name The name of the component.
|
|
*/
|
|
public ScrollableComponent(SessionViewController sessionViewController, String name, int style) {
|
|
super(sessionViewController, name, style);
|
|
}//ScrollableComponent()//
|
|
/* (non-Javadoc)
|
|
* @see com.foundation.tcv.swt.server.Component#processMessage(com.foundation.tcv.view.ViewMessage)
|
|
*/
|
|
public Object processMessage(ViewMessage viewMessage) {
|
|
Object retVal = null;
|
|
|
|
switch(viewMessage.getMessageNumber()) {
|
|
default: {
|
|
retVal = super.processMessage(viewMessage);
|
|
}//default//
|
|
}//switch//
|
|
|
|
return retVal;
|
|
}//processMessage()//
|
|
}//ScrollableComponent// |