|
|
|
|
@@ -0,0 +1,376 @@
|
|
|
|
|
package com.de22.test.multiuser.remote.view;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* MainView
|
|
|
|
|
*/
|
|
|
|
|
public class MainView extends com.foundation.tcv.swt.server.Window implements com.foundation.view.IAssociationHandler {
|
|
|
|
|
//Component Names//
|
|
|
|
|
public static final String CONTROLLER_HOLDER_COMPONENT = "controllerHolder";
|
|
|
|
|
public static final String DATA_HOLDER_COMPONENT = "dataHolder";
|
|
|
|
|
public static final String MAIN_COMPONENT = "main";
|
|
|
|
|
public static final String NUMBER1_TEXT_COMPONENT = "number1Text";
|
|
|
|
|
public static final String NUMBER2_TEXT_COMPONENT = "number2Text";
|
|
|
|
|
public static final String APPLY_BUTTON_COMPONENT = "applyButton";
|
|
|
|
|
public static final String CANCEL_BUTTON_COMPONENT = "cancelButton";
|
|
|
|
|
public static final String MAIN_VIEW_COMPONENT = "MainView";
|
|
|
|
|
|
|
|
|
|
//Association Identifiers//
|
|
|
|
|
protected static final int DATA_HOLDER_ASSOCIATION_PARENT_ASSOCIATION_0 = 0;
|
|
|
|
|
protected static final int NUMBER1_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0 = 1;
|
|
|
|
|
protected static final int NUMBER2_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0 = 2;
|
|
|
|
|
|
|
|
|
|
//Method Association Identifiers//
|
|
|
|
|
protected static final int THIS_CLOSED_METHOD_ASSOCIATION = 0;
|
|
|
|
|
protected static final int APPLY_BUTTON_SELECTION_METHOD_ASSOCIATION = 1;
|
|
|
|
|
protected static final int CANCEL_BUTTON_SELECTION_METHOD_ASSOCIATION = 2;
|
|
|
|
|
|
|
|
|
|
//View Components//
|
|
|
|
|
private com.foundation.tcv.swt.server.ValueHolder controllerHolder = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.ValueHolder dataHolder = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.Panel main = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.Label unnamedComponent0 = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.TextField number1Text = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.Label unnamedComponent1 = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.TextField number2Text = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.Button applyButton = null;
|
|
|
|
|
private com.foundation.tcv.swt.server.Button cancelButton = null;
|
|
|
|
|
/**
|
|
|
|
|
* MainView default constructor.
|
|
|
|
|
* <p>Warning: This constructor is intended for use by the metadata service <b>only</b>. This constructor should <b>never</b> be called by the view's controller.</p>
|
|
|
|
|
*/
|
|
|
|
|
public MainView() {
|
|
|
|
|
}//MainView()//
|
|
|
|
|
/**
|
|
|
|
|
* MainView non-modal constructor.
|
|
|
|
|
* @param controller The view's view controller reference.
|
|
|
|
|
*/
|
|
|
|
|
public MainView(com.foundation.controller.RemoteViewController controller) {
|
|
|
|
|
super((controller.getParent() != null ? ((com.foundation.tcv.swt.server.Component) (((com.foundation.controller.RemoteViewController) controller.getParent()).getView())).getContainingWindow() : null), (com.foundation.tcv.server.controller.SessionViewController) controller.getRemoteViewContext(), MAIN_VIEW_COMPONENT, com.foundation.tcv.swt.server.Window.STYLE_SHELL_TRIM, controller);
|
|
|
|
|
|
|
|
|
|
}//MainView()//
|
|
|
|
|
public void initializeControllerHolder(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
controllerHolder = new com.foundation.tcv.swt.server.ValueHolder(parent, CONTROLLER_HOLDER_COMPONENT, com.de22.test.multiuser.remote.view.controller.MainViewController.class);
|
|
|
|
|
}//initializeControllerHolder()//
|
|
|
|
|
public void initializeDataHolder(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
dataHolder = new com.foundation.tcv.swt.server.ValueHolder(parent, DATA_HOLDER_COMPONENT, com.de22.test.multiuser.model.Data.class);
|
|
|
|
|
dataHolder.setParentAssociation(new com.foundation.view.SingleAssociationContainer("controllerHolder", new com.foundation.view.SingleAssociation[] {new com.foundation.view.SingleAssociation(com.de22.test.multiuser.remote.view.controller.MainViewController.class, DATA_HOLDER_ASSOCIATION_PARENT_ASSOCIATION_0, this, false, null, null, new com.foundation.view.EventAssociation[] {new com.foundation.view.EventAssociation(null, null, null, com.de22.test.multiuser.remote.view.controller.MainViewController.class, com.de22.test.multiuser.remote.view.controller.MainViewController.DATA)}, null,true)}));
|
|
|
|
|
}//initializeDataHolder()//
|
|
|
|
|
public void initializeUnnamedComponent0(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
unnamedComponent0 = new com.foundation.tcv.swt.server.Label(parent, null, 0);
|
|
|
|
|
|
|
|
|
|
unnamedComponent0.setText("First Number: (not auto-synchronizing)");
|
|
|
|
|
}//initializeUnnamedComponent0()//
|
|
|
|
|
public void initializeNumber1Text(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
number1Text = new com.foundation.tcv.swt.server.TextField(parent, NUMBER1_TEXT_COMPONENT, com.foundation.tcv.swt.server.TextField.STYLE_BORDER);
|
|
|
|
|
|
|
|
|
|
com.foundation.tcv.swt.server.TextField.IntegerFormat number1TextFormat = (com.foundation.tcv.swt.server.TextField.IntegerFormat) number1Text.initializeFormat(com.foundation.tcv.swt.server.TextField.IntegerFormat.class);
|
|
|
|
|
number1TextFormat.setValueAssociation(new com.foundation.view.SingleAssociationContainer("dataHolder", new com.foundation.view.SingleAssociation[] {new com.foundation.view.SingleAssociation(com.de22.test.multiuser.model.Data.class, NUMBER1_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0, this, false, null, null, new com.foundation.view.EventAssociation[] {new com.foundation.view.EventAssociation(null, null, null, com.de22.test.multiuser.model.Data.class, com.de22.test.multiuser.model.Data.NUMBER_1)}, null,true,com.de22.test.multiuser.model.Data.NUMBER_1)}));
|
|
|
|
|
number1Text.setAutoSynchronizeValue(false);
|
|
|
|
|
number1Text.setAutoValidate(false);
|
|
|
|
|
}//initializeNumber1Text()//
|
|
|
|
|
public void initializeUnnamedComponent1(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
unnamedComponent1 = new com.foundation.tcv.swt.server.Label(parent, null, 0);
|
|
|
|
|
|
|
|
|
|
unnamedComponent1.setText("Second Number: (auto-synchronizing)");
|
|
|
|
|
}//initializeUnnamedComponent1()//
|
|
|
|
|
public void initializeNumber2Text(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
number2Text = new com.foundation.tcv.swt.server.TextField(parent, NUMBER2_TEXT_COMPONENT, com.foundation.tcv.swt.server.TextField.STYLE_BORDER);
|
|
|
|
|
|
|
|
|
|
com.foundation.tcv.swt.server.TextField.IntegerFormat number2TextFormat = (com.foundation.tcv.swt.server.TextField.IntegerFormat) number2Text.initializeFormat(com.foundation.tcv.swt.server.TextField.IntegerFormat.class);
|
|
|
|
|
number2TextFormat.setValueAssociation(new com.foundation.view.SingleAssociationContainer("dataHolder", new com.foundation.view.SingleAssociation[] {new com.foundation.view.SingleAssociation(com.de22.test.multiuser.model.Data.class, NUMBER2_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0, this, false, null, null, new com.foundation.view.EventAssociation[] {new com.foundation.view.EventAssociation(null, null, null, com.de22.test.multiuser.model.Data.class, com.de22.test.multiuser.model.Data.NUMBER_2)}, null,true,com.de22.test.multiuser.model.Data.NUMBER_2)}));
|
|
|
|
|
number2Text.setAutoSynchronizeValue(true);
|
|
|
|
|
number2Text.setAutoValidate(true);
|
|
|
|
|
}//initializeNumber2Text()//
|
|
|
|
|
public void initializeMain(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
main = new com.foundation.tcv.swt.server.Panel(parent, MAIN_COMPONENT, 0);
|
|
|
|
|
|
|
|
|
|
initializeUnnamedComponent0(main);
|
|
|
|
|
initializeNumber1Text(main);
|
|
|
|
|
initializeUnnamedComponent1(main);
|
|
|
|
|
initializeNumber2Text(main);
|
|
|
|
|
com.foundation.tcv.swt.server.GridLayout layout = new com.foundation.tcv.swt.server.GridLayout(main);
|
|
|
|
|
|
|
|
|
|
layout.setNumColumns(1);
|
|
|
|
|
layout.setMarginHeight(3);
|
|
|
|
|
layout.setMarginWidth(3);
|
|
|
|
|
main.setLayout(layout);
|
|
|
|
|
main.setTabOrder(new com.common.util.LiteList(new Object[] {number1Text, number2Text}));
|
|
|
|
|
}//initializeMain()//
|
|
|
|
|
public void initializeApplyButton(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
applyButton = new com.foundation.tcv.swt.server.Button(parent, APPLY_BUTTON_COMPONENT, 0);
|
|
|
|
|
|
|
|
|
|
applyButton.setText("Apply");
|
|
|
|
|
applyButton.setSelectionMethod(new com.foundation.view.MethodAssociation(this, APPLY_BUTTON_SELECTION_METHOD_ASSOCIATION, applyButton, "controllerHolder", null, null));
|
|
|
|
|
}//initializeApplyButton()//
|
|
|
|
|
public void initializeCancelButton(com.foundation.tcv.swt.server.Container parent) {
|
|
|
|
|
cancelButton = new com.foundation.tcv.swt.server.Button(parent, CANCEL_BUTTON_COMPONENT, 0);
|
|
|
|
|
|
|
|
|
|
cancelButton.setText("Cancel");
|
|
|
|
|
cancelButton.setSelectionMethod(new com.foundation.view.MethodAssociation(this, CANCEL_BUTTON_SELECTION_METHOD_ASSOCIATION, cancelButton, "controllerHolder", null, null));
|
|
|
|
|
}//initializeCancelButton()//
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see com.foundation.view.IView#internalViewInitialize()
|
|
|
|
|
*/
|
|
|
|
|
public void internalViewInitialize() {
|
|
|
|
|
this.setClosedMethod(new com.foundation.view.MethodAssociation(this, THIS_CLOSED_METHOD_ASSOCIATION, this, "controllerHolder", null, null));
|
|
|
|
|
initializeControllerHolder(this);
|
|
|
|
|
initializeDataHolder(this);
|
|
|
|
|
initializeMain(this);
|
|
|
|
|
initializeApplyButton(this);
|
|
|
|
|
initializeCancelButton(this);
|
|
|
|
|
com.foundation.tcv.swt.server.GridLayout layout = new com.foundation.tcv.swt.server.GridLayout(this);
|
|
|
|
|
|
|
|
|
|
layout.setNumColumns(2);
|
|
|
|
|
layout.setMarginHeight(3);
|
|
|
|
|
layout.setMarginWidth(3);
|
|
|
|
|
this.setLayout(layout);
|
|
|
|
|
this.setTabOrder(new com.common.util.LiteList(new Object[] {main}));
|
|
|
|
|
this.setDefaultChangeText("Another user has changed\n the underlying data.");
|
|
|
|
|
this.setDefaultChangeImage(new com.foundation.view.resource.ResourceReference("res://Application/General/WarningImage"));
|
|
|
|
|
this.setDefaultUpdateText("The value has changed in the model.");
|
|
|
|
|
this.setDefaultUpdateImage(new com.foundation.view.resource.ResourceReference("res://Application/General/InformationImage"));
|
|
|
|
|
this.setDefaultUpdateTimeout(new Integer(8000));
|
|
|
|
|
this.setDefaultContainerTitle("Main");
|
|
|
|
|
this.setDefaultContainerImage(new com.foundation.view.resource.ResourceReference("res://Application/General/WarningImage"));
|
|
|
|
|
layoutComponents();
|
|
|
|
|
super.internalViewInitialize();
|
|
|
|
|
setupLinkages();
|
|
|
|
|
}//internalViewInitialize()//
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see com.foundation.view.IAssociationHandler#invokeGetMethod(int, Object)
|
|
|
|
|
*/
|
|
|
|
|
public Object invokeGetMethod(int associationNumber, Object value) {
|
|
|
|
|
Object retVal = null;
|
|
|
|
|
|
|
|
|
|
switch(associationNumber) {
|
|
|
|
|
default:
|
|
|
|
|
com.common.debug.Debug.log("Attribute association broken.");
|
|
|
|
|
break;
|
|
|
|
|
}//switch//
|
|
|
|
|
|
|
|
|
|
return retVal;
|
|
|
|
|
}//invokeGetMethod()//
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see com.foundation.view.IAssociationHandler#invokeSetMethod(int, Object, Object)
|
|
|
|
|
*/
|
|
|
|
|
public void invokeSetMethod(int associationNumber, Object value, Object parameter) {
|
|
|
|
|
switch(associationNumber) {
|
|
|
|
|
default:
|
|
|
|
|
com.common.debug.Debug.log("Attribute association broken.");
|
|
|
|
|
break;
|
|
|
|
|
}//switch//
|
|
|
|
|
}//invokeSetMethod()//
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see com.foundation.view.IAssociationHandler#invokeMethod(int, Object, Object[])
|
|
|
|
|
*/
|
|
|
|
|
public Object invokeMethod(int associationNumber, Object value, Object[] parameters) {
|
|
|
|
|
Object retVal = null;
|
|
|
|
|
|
|
|
|
|
switch(associationNumber) {
|
|
|
|
|
case THIS_CLOSED_METHOD_ASSOCIATION:
|
|
|
|
|
((com.de22.test.multiuser.remote.view.controller.MainViewController) value).doClose();
|
|
|
|
|
break;
|
|
|
|
|
case APPLY_BUTTON_SELECTION_METHOD_ASSOCIATION:
|
|
|
|
|
((com.de22.test.multiuser.remote.view.controller.MainViewController) value).doApply();
|
|
|
|
|
break;
|
|
|
|
|
case CANCEL_BUTTON_SELECTION_METHOD_ASSOCIATION:
|
|
|
|
|
((com.de22.test.multiuser.remote.view.controller.MainViewController) value).doCancel();
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
com.common.debug.Debug.log("Method association broken.");
|
|
|
|
|
break;
|
|
|
|
|
}//switch//
|
|
|
|
|
|
|
|
|
|
return retVal;
|
|
|
|
|
}//invokeMethod()//
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
|
* @see com.foundation.view.IAssociationHandler#invokeMethod(int, Object, Object[], byte)
|
|
|
|
|
*/
|
|
|
|
|
public Object invokeMethod(int associationNumber, Object value, Object[] parameters, byte flags) {
|
|
|
|
|
Object result = null;
|
|
|
|
|
|
|
|
|
|
if(flags == INVOKE_GETTER_METHOD_FLAG) {
|
|
|
|
|
switch(associationNumber) {
|
|
|
|
|
case DATA_HOLDER_ASSOCIATION_PARENT_ASSOCIATION_0:
|
|
|
|
|
result = ((com.de22.test.multiuser.remote.view.controller.MainViewController) value).getData();
|
|
|
|
|
break;
|
|
|
|
|
case NUMBER1_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0:
|
|
|
|
|
result = ((com.de22.test.multiuser.model.Data) value).getNumber1();
|
|
|
|
|
break;
|
|
|
|
|
case NUMBER2_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0:
|
|
|
|
|
result = ((com.de22.test.multiuser.model.Data) value).getNumber2();
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
com.common.debug.Debug.log("Association (getter) broken.");
|
|
|
|
|
break;
|
|
|
|
|
}//switch//
|
|
|
|
|
|
|
|
|
|
}//if//
|
|
|
|
|
else if(flags == INVOKE_ORIGINAL_VALUE_GETTER_METHOD_FLAG) {
|
|
|
|
|
switch(associationNumber) {
|
|
|
|
|
case DATA_HOLDER_ASSOCIATION_PARENT_ASSOCIATION_0:
|
|
|
|
|
result = ((com.de22.test.multiuser.remote.view.controller.MainViewController) value).getOldAttributeValue(com.de22.test.multiuser.remote.view.controller.MainViewController.DATA);
|
|
|
|
|
break;
|
|
|
|
|
case NUMBER1_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0:
|
|
|
|
|
result = ((com.de22.test.multiuser.model.Data) value).getOldAttributeValue(com.de22.test.multiuser.model.Data.NUMBER_1);
|
|
|
|
|
break;
|
|
|
|
|
case NUMBER2_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0:
|
|
|
|
|
result = ((com.de22.test.multiuser.model.Data) value).getOldAttributeValue(com.de22.test.multiuser.model.Data.NUMBER_2);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
com.common.debug.Debug.log("Association (original value getter) broken.");
|
|
|
|
|
break;
|
|
|
|
|
}//switch//
|
|
|
|
|
|
|
|
|
|
}//if//
|
|
|
|
|
else {
|
|
|
|
|
switch(associationNumber) {
|
|
|
|
|
case NUMBER1_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0:
|
|
|
|
|
((com.de22.test.multiuser.model.Data) value).setNumber1((java.lang.Integer) parameters[0]);
|
|
|
|
|
break;
|
|
|
|
|
case NUMBER2_TEXT_FORMAT_FORMAT_ASSOCIATION_VALUE_ASSOCIATION_0:
|
|
|
|
|
((com.de22.test.multiuser.model.Data) value).setNumber2((java.lang.Integer) parameters[0]);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
com.common.debug.Debug.log("Association (setter) broken.");
|
|
|
|
|
break;
|
|
|
|
|
}//switch//
|
|
|
|
|
|
|
|
|
|
}//else//
|
|
|
|
|
return result;
|
|
|
|
|
}//invokeMethod()//
|
|
|
|
|
/**
|
|
|
|
|
* Lays out the components.
|
|
|
|
|
*/
|
|
|
|
|
public void layoutComponents() {
|
|
|
|
|
{ //main//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.verticalAlignment = com.foundation.tcv.swt.GridLayoutData.FILL;
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.FILL;
|
|
|
|
|
layoutData.horizontalSpan = 2;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
layoutData.grabExcessVerticalSpace = true;
|
|
|
|
|
main.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
{ //null//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.FILL;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
unnamedComponent0.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
{ //number1Text//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.FILL;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
number1Text.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
{ //null//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.FILL;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
unnamedComponent1.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
{ //number2Text//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.FILL;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
number2Text.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
{ //applyButton//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.CENTER;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
applyButton.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
{ //cancelButton//
|
|
|
|
|
com.foundation.tcv.swt.GridLayoutData layoutData = new com.foundation.tcv.swt.GridLayoutData();
|
|
|
|
|
|
|
|
|
|
layoutData.horizontalAlignment = com.foundation.tcv.swt.GridLayoutData.CENTER;
|
|
|
|
|
layoutData.grabExcessHorizontalSpace = true;
|
|
|
|
|
cancelButton.setLayoutData(layoutData);
|
|
|
|
|
}//block//
|
|
|
|
|
}//layoutComponents()//
|
|
|
|
|
/**
|
|
|
|
|
* Initializes the direct linkages between the components.
|
|
|
|
|
*/
|
|
|
|
|
public void setupLinkages() {
|
|
|
|
|
}//setupLinkages()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.ValueHolder getVpControllerHolder() {
|
|
|
|
|
return controllerHolder;
|
|
|
|
|
}//getVpControllerHolder()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.ValueHolder getVpDataHolder() {
|
|
|
|
|
return dataHolder;
|
|
|
|
|
}//getVpDataHolder()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.Panel getVpMain() {
|
|
|
|
|
return main;
|
|
|
|
|
}//getVpMain()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.Label getVpUnnamedComponent0() {
|
|
|
|
|
return unnamedComponent0;
|
|
|
|
|
}//getVpUnnamedComponent0()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.TextField getVpNumber1Text() {
|
|
|
|
|
return number1Text;
|
|
|
|
|
}//getVpNumber1Text()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.Label getVpUnnamedComponent1() {
|
|
|
|
|
return unnamedComponent1;
|
|
|
|
|
}//getVpUnnamedComponent1()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.TextField getVpNumber2Text() {
|
|
|
|
|
return number2Text;
|
|
|
|
|
}//getVpNumber2Text()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.Button getVpApplyButton() {
|
|
|
|
|
return applyButton;
|
|
|
|
|
}//getVpApplyButton()//
|
|
|
|
|
/**
|
|
|
|
|
* Gets the view component.
|
|
|
|
|
* <p>Warning: This accessor to allow for the very rare and highly discouraged derived view class.</p>
|
|
|
|
|
* @return The view component.
|
|
|
|
|
*/
|
|
|
|
|
protected com.foundation.tcv.swt.server.Button getVpCancelButton() {
|
|
|
|
|
return cancelButton;
|
|
|
|
|
}//getVpCancelButton()//
|
|
|
|
|
}//MainView//
|