Initial commit from SVN.
This commit is contained in:
10
Foundation TCV View Builder/.classpath
Normal file
10
Foundation TCV View Builder/.classpath
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="/Foundation SWT View Builder"/>
|
||||
<classpathentry kind="src" path="/Foundation View Builder"/>
|
||||
<classpathentry kind="src" path="/Common"/>
|
||||
<classpathentry kind="src" path="/Foundation"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
26
Foundation TCV View Builder/.project
Normal file
26
Foundation TCV View Builder/.project
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Foundation TCV View Builder</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
<project>Common</project>
|
||||
<project>Foundation</project>
|
||||
<project>Foundation SWT View Builder</project>
|
||||
<project>Foundation TCV</project>
|
||||
<project>Foundation TCV SWT</project>
|
||||
<project>Foundation TCV SWT Server</project>
|
||||
<project>Foundation TCV Server</project>
|
||||
<project>Foundation View Builder</project>
|
||||
<project>SWT</project>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2008 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.builder;
|
||||
|
||||
public class ButtonBuilder extends com.foundation.view.swt.builder.ButtonBuilder {
|
||||
/**
|
||||
* ButtonBuilder constructor.
|
||||
*/
|
||||
public ButtonBuilder() {
|
||||
super();
|
||||
}//ButtonBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Button";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ButtonBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder;
|
||||
|
||||
public class CardLayoutBuilder extends com.foundation.view.swt.builder.CardLayoutBuilder {
|
||||
/**
|
||||
* CardLayoutBuilder constructor.
|
||||
*/
|
||||
public CardLayoutBuilder() {
|
||||
super();
|
||||
}//CardLayoutBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.CardLayout";
|
||||
}//getComponentClassName()//
|
||||
}//CardLayoutBuilder//
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.foundation.tcv.swt.builder;
|
||||
|
||||
public class CenterLayoutBuilder extends com.foundation.view.swt.builder.CenterLayoutBuilder {
|
||||
/**
|
||||
* CenterLayoutBuilder constructor.
|
||||
*/
|
||||
public CenterLayoutBuilder() {
|
||||
}//CenterLayoutBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.CenterLayout";
|
||||
}//getComponentClassName()//
|
||||
}//CenterLayoutBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2008 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.builder;
|
||||
|
||||
public class ComboBuilder extends com.foundation.view.swt.builder.ComboBuilder {
|
||||
/**
|
||||
* ComboBoxBuilder constructor.
|
||||
*/
|
||||
public ComboBuilder() {
|
||||
super();
|
||||
}//ComboBoxBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ComboBox";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ComboBoxBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class CoolBarBuilder extends com.foundation.view.swt.builder.CoolBarBuilder {
|
||||
/**
|
||||
* CoolBarBuilder constructor.
|
||||
*/
|
||||
public CoolBarBuilder() {
|
||||
super();
|
||||
}//CoolBarBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.CoolBar";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//CoolBarBuilder()//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class CoolItemBuilder extends com.foundation.view.swt.builder.CoolItemBuilder {
|
||||
/**
|
||||
* CoolItemBuilder constructor.
|
||||
*/
|
||||
public CoolItemBuilder() {
|
||||
super();
|
||||
}//CoolItemBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.CoolBar.CoolItem";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//CoolItemBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder;
|
||||
|
||||
public class DateTimeBuilder extends com.foundation.view.swt.builder.DateTimeBuilder {
|
||||
/**
|
||||
* ProgressBuilder constructor.
|
||||
*/
|
||||
public DateTimeBuilder() {
|
||||
super();
|
||||
}//ProgressBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.DateTime";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ProgressBuilder//
|
||||
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2008,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.builder;
|
||||
|
||||
public class DynamicMenuBuilder extends com.foundation.view.swt.builder.DynamicMenuBuilder {
|
||||
/**
|
||||
* DynamicMenuBuilder constructor.
|
||||
*/
|
||||
public DynamicMenuBuilder() {
|
||||
}//DynamicMenuBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.DynamicMenu";
|
||||
}//getComponentClassName()//
|
||||
}//DynamicMenuBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2007,2008 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.builder;
|
||||
|
||||
public class EnhancedListBuilder extends com.foundation.view.swt.builder.ListBuilder {
|
||||
/**
|
||||
* ListBoxBuilder constructor.
|
||||
*/
|
||||
public EnhancedListBuilder() {
|
||||
super();
|
||||
}//ListBoxBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.EnhancedList";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ListBoxBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class ExpandBarBuilder extends com.foundation.view.swt.builder.ExpandBarBuilder {
|
||||
/**
|
||||
* ExpandBarBuilder constructor.
|
||||
*/
|
||||
public ExpandBarBuilder() {
|
||||
super();
|
||||
}//ExpandBarBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ExpandBar";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ExpandBarBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class FillLayoutBuilder extends com.foundation.view.swt.builder.FillLayoutBuilder {
|
||||
/**
|
||||
* FillLayoutBuilder constructor.
|
||||
*/
|
||||
public FillLayoutBuilder() {
|
||||
super();
|
||||
}//FillLayoutBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.FillLayout";
|
||||
}//getComponentClassName()//
|
||||
}//FillLayoutBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 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.builder;
|
||||
|
||||
public class FillLayoutDataBuilder extends com.foundation.view.swt.builder.FillLayoutDataBuilder {
|
||||
/**
|
||||
* FillLayoutDataBuilder constructor.
|
||||
*/
|
||||
public FillLayoutDataBuilder() {
|
||||
super();
|
||||
}//FillLayoutDataBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.FillLayoutData";
|
||||
}//getComponentClassName()//
|
||||
}//FillLayoutDataBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2008 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.builder;
|
||||
|
||||
public class FontNameComboBuilder extends com.foundation.view.swt.builder.FontNameComboBuilder {
|
||||
/**
|
||||
* FontNameComboBuilder constructor.
|
||||
*/
|
||||
public FontNameComboBuilder() {
|
||||
super();
|
||||
}//FontNameComboBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.FontNameComboBox";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//FontNameComboBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2008 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.builder;
|
||||
|
||||
public class FontSizeComboBuilder extends com.foundation.view.swt.builder.FontSizeComboBuilder {
|
||||
/**
|
||||
* FontSizeComboBuilder constructor.
|
||||
*/
|
||||
public FontSizeComboBuilder() {
|
||||
super();
|
||||
}//FontSizeComboBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.FontSizeComboBox";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//FontSizeComboBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2003,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.builder;
|
||||
|
||||
public class FormLayoutBuilder extends com.foundation.view.swt.builder.FormLayoutBuilder {
|
||||
/**
|
||||
* FormLayoutBuilder constructor.
|
||||
*/
|
||||
public FormLayoutBuilder() {
|
||||
super();
|
||||
}//FormLayoutBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.FormLayout";
|
||||
}//getComponentClassName()//
|
||||
}//FormLayoutBuilder//
|
||||
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
import com.foundation.view.builder.BuildFailedException;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
import com.foundation.view.definition.Message;
|
||||
|
||||
public class FormLayoutDataBuilder extends com.foundation.view.swt.builder.FormLayoutDataBuilder {
|
||||
/**
|
||||
* FormLayoutDataBuilder constructor.
|
||||
*/
|
||||
public FormLayoutDataBuilder() {
|
||||
super();
|
||||
}//FormLayoutDataBuilder()//
|
||||
/**
|
||||
* Adds the attachment to the source.
|
||||
* @param viewBuilder
|
||||
* @param buffer
|
||||
* @param formLayoutData
|
||||
* @param attachment
|
||||
* @param side
|
||||
*/
|
||||
protected void appendAttachment(IViewSourceBuilder viewBuilder, StringBuffer buffer, IComponentData formLayoutData, IComponentData attachment, String side) {
|
||||
Integer percent = (Integer) attachment.getPropertyValue(PROPERTY_PERCENT);
|
||||
Integer offset = (Integer) attachment.getPropertyValue(PROPERTY_OFFSET);
|
||||
String alignment = (String) attachment.getPropertyValue(PROPERTY_ALIGNMENT);
|
||||
String componentName = (String) attachment.getPropertyValue(PROPERTY_COMPONENT);
|
||||
|
||||
buffer.append("\t\tlayoutData.");
|
||||
buffer.append(side);
|
||||
buffer.append(" = new ");
|
||||
buffer.append(getAttachmentClassName());
|
||||
buffer.append("();\r\n");
|
||||
|
||||
if(componentName != null) {
|
||||
IComponentData attachedComponent = formLayoutData.searchForComponent(componentName, "component", IComponentData.SEARCH_FLAG_STEP_DOWN);
|
||||
|
||||
if(attachedComponent == null) {
|
||||
viewBuilder.getFeedbackStack().add(new Message(true, "Could not find the component named: " + componentName + " while building the layout attachment for the component named: " + viewBuilder.getComponentName(formLayoutData.getParent()), attachment.getDocumentElement()));
|
||||
throw new BuildFailedException();
|
||||
}//if//
|
||||
|
||||
buffer.append("\t\tlayoutData.");
|
||||
buffer.append(side);
|
||||
buffer.append(".control = ");
|
||||
buffer.append(viewBuilder.getComponentAttributeName(attachedComponent));
|
||||
buffer.append(".getNumber();\r\n");
|
||||
}//if//
|
||||
|
||||
if(offset != null) {
|
||||
buffer.append("\t\tlayoutData.");
|
||||
buffer.append(side);
|
||||
buffer.append(".offset = ");
|
||||
buffer.append(offset);
|
||||
buffer.append(";\r\n");
|
||||
}//if//
|
||||
|
||||
if(percent != null) {
|
||||
buffer.append("\t\tlayoutData.");
|
||||
buffer.append(side);
|
||||
buffer.append(".numerator = ");
|
||||
buffer.append(percent);
|
||||
buffer.append(";\r\n");
|
||||
}//if//
|
||||
|
||||
if(alignment != null) {
|
||||
buffer.append("\t\tlayoutData.");
|
||||
buffer.append(side);
|
||||
buffer.append(".alignment = ");
|
||||
buffer.append("org.eclipse.swt.SWT");
|
||||
buffer.append('.');
|
||||
|
||||
if(ALIGNMENT_LEFT.equals(alignment)) {
|
||||
buffer.append("LEFT");
|
||||
}//if//
|
||||
else if(ALIGNMENT_TOP.equals(alignment)) {
|
||||
buffer.append("TOP");
|
||||
}//else if//
|
||||
else if(ALIGNMENT_RIGHT.equals(alignment)) {
|
||||
buffer.append("RIGHT");
|
||||
}//else if//
|
||||
else if(ALIGNMENT_BOTTOM.equals(alignment)) {
|
||||
buffer.append("BOTTOM");
|
||||
}//else if//
|
||||
else if(ALIGNMENT_CENTER.equals(alignment)) {
|
||||
buffer.append("CENTER");
|
||||
}//else if//
|
||||
else {
|
||||
buffer.append("DEFAULT");
|
||||
}//else//
|
||||
|
||||
buffer.append(";\r\n");
|
||||
}//if//
|
||||
}//appendAttachment()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.FormLayoutDataBuilder#getAttachmentClassName()
|
||||
*/
|
||||
public String getAttachmentClassName() {
|
||||
return "com.foundation.tcv.swt.FormAttachment";
|
||||
}//getAttachmentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.FormLayoutData";
|
||||
}//getComponentClassName()//
|
||||
}//FormLayoutDataBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
import com.foundation.view.*;
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
import com.foundation.controller.*;
|
||||
|
||||
public class FrameBuilder extends com.foundation.view.swt.builder.FrameBuilder {
|
||||
/**
|
||||
* FrameBuilder constructor.
|
||||
*/
|
||||
public FrameBuilder() {
|
||||
super();
|
||||
}//FrameBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Frame";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//FrameBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class GridLayoutBuilder extends com.foundation.view.swt.builder.GridLayoutBuilder {
|
||||
/**
|
||||
* GridLayoutBuilder constructor.
|
||||
*/
|
||||
public GridLayoutBuilder() {
|
||||
super();
|
||||
}//GridLayoutBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.GridLayout";
|
||||
}//getComponentClassName()//
|
||||
}//GridLayoutBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2004,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.builder;
|
||||
|
||||
public class GridLayoutDataBuilder extends com.foundation.view.swt.builder.GridLayoutDataBuilder {
|
||||
/**
|
||||
* GridLayoutDataBuilder constructor.
|
||||
*/
|
||||
public GridLayoutDataBuilder() {
|
||||
super();
|
||||
}//GridLayoutDataBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.GridLayoutData";
|
||||
}//getComponentClassName()//
|
||||
}//GridLayoutDataBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
import com.foundation.view.*;
|
||||
import com.foundation.controller.*;
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class GroupBuilder extends com.foundation.view.swt.builder.GroupBuilder {
|
||||
/**
|
||||
* GroupBuilder constructor.
|
||||
*/
|
||||
public GroupBuilder() {
|
||||
super();
|
||||
}//GroupBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Group";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//GroupBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class LabelBuilder extends com.foundation.view.swt.builder.LabelBuilder {
|
||||
/**
|
||||
* LabelBuilder constructor.
|
||||
*/
|
||||
public LabelBuilder() {
|
||||
super();
|
||||
}//LabelBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Label";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//LabelBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2005,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.builder;
|
||||
|
||||
public class LinkBuilder extends com.foundation.view.swt.builder.LinkBuilder {
|
||||
/**
|
||||
* LinkBuilder constructor.
|
||||
*/
|
||||
public LinkBuilder() {
|
||||
super();
|
||||
}//LinkBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Link";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//LinkBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2008 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.builder;
|
||||
|
||||
public class ListBuilder extends com.foundation.view.swt.builder.ListBuilder {
|
||||
/**
|
||||
* ListBoxBuilder constructor.
|
||||
*/
|
||||
public ListBuilder() {
|
||||
super();
|
||||
}//ListBoxBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ListBox";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ListBoxBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class MenuBuilder extends com.foundation.view.swt.builder.MenuBuilder {
|
||||
/**
|
||||
* MenuBuilder constructor.
|
||||
*/
|
||||
public MenuBuilder() {
|
||||
super();
|
||||
}//MenuBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Menu";
|
||||
}//getComponentClassName()//
|
||||
}//MenuBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
import com.foundation.view.*;
|
||||
import com.foundation.controller.*;
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class PanelBuilder extends com.foundation.view.swt.builder.PanelBuilder {
|
||||
/**
|
||||
* PanelBuilder constructor.
|
||||
*/
|
||||
public PanelBuilder() {
|
||||
super();
|
||||
}//PanelBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Panel";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//PanelBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2005,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class PanelViewerBuilder extends com.foundation.view.swt.builder.PanelViewerBuilder {
|
||||
/**
|
||||
* PanelViewerBuilder constructor.
|
||||
*/
|
||||
public PanelViewerBuilder() {
|
||||
super();
|
||||
}//PanelViewerBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.PanelViewer";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//PanelViewerBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
public class ProgressBuilder extends com.foundation.view.swt.builder.ProgressBuilder {
|
||||
/**
|
||||
* ProgressBuilder constructor.
|
||||
*/
|
||||
public ProgressBuilder() {
|
||||
super();
|
||||
}//ProgressBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Progress";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ProgressBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class RowLayoutBuilder extends com.foundation.view.swt.builder.RowLayoutBuilder {
|
||||
/**
|
||||
* RowLayoutBuilder constructor.
|
||||
*/
|
||||
public RowLayoutBuilder() {
|
||||
super();
|
||||
}//RowLayoutBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.RowLayout";
|
||||
}//getComponentClassName()//
|
||||
}//RowLayoutBuilder//
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright (c) 2004,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.builder;
|
||||
|
||||
public class RowLayoutDataBuilder extends com.foundation.view.swt.builder.RowLayoutDataBuilder {
|
||||
/**
|
||||
* RowLayoutDataBuilder constructor.
|
||||
*/
|
||||
public RowLayoutDataBuilder() {
|
||||
super();
|
||||
}//RowLayoutDataBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.RowLayoutData";
|
||||
}//getComponentClassName()//
|
||||
}//RowLayoutDataBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class SashBuilder extends com.foundation.view.swt.builder.SashBuilder {
|
||||
/**
|
||||
* SashBuilder constructor.
|
||||
*/
|
||||
public SashBuilder() {
|
||||
super();
|
||||
}//SashBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Sash";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//SashBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2005,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.builder;
|
||||
|
||||
public class SashFormBuilder extends com.foundation.view.swt.builder.SashFormBuilder {
|
||||
/**
|
||||
* SashFormBuilder constructor.
|
||||
*/
|
||||
public SashFormBuilder() {
|
||||
super();
|
||||
}//SashFormBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.SashForm";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//SashFormBuilder//
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 2005,2008 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.builder;
|
||||
|
||||
public class SimpleTableBuilder extends com.foundation.view.swt.builder.SimpleTableBuilder {
|
||||
/**
|
||||
* SimpleTableBuilder constructor.
|
||||
*/
|
||||
public SimpleTableBuilder() {
|
||||
super();
|
||||
}//SimpleTableBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTable";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getColumnClassName()
|
||||
*/
|
||||
protected String getColumnClassName() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTable.ColumnData";
|
||||
}//getColumnClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getSimpleTableCenterCode()
|
||||
*/
|
||||
protected String getSimpleTableCenterCode() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTable.ALIGNMENT_CENTER";
|
||||
}//getSimpleTableCenterCode()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getSimpleTableLeftCode()
|
||||
*/
|
||||
protected String getSimpleTableLeftCode() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTable.ALIGNMENT_LEFT";
|
||||
}//getSimpleTableLeftCode()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getSimpleTableRightCode()
|
||||
*/
|
||||
protected String getSimpleTableRightCode() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTable.ALIGNMENT_RIGHT";
|
||||
}//getSimpleTableRightCode()//
|
||||
}//SimpleTableBuilder//
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (c) 2005,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.builder;
|
||||
|
||||
public class SimpleTreeTableBuilder extends com.foundation.view.swt.builder.SimpleTreeTableBuilder {
|
||||
/**
|
||||
* SimpleTreeTableBuilder constructor.
|
||||
*/
|
||||
public SimpleTreeTableBuilder() {
|
||||
super();
|
||||
}//SimpleTreeTableBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTreeTable";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getColumnClassName()
|
||||
*/
|
||||
protected String getColumnClassName() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTreeTable.ColumnData";
|
||||
}//getColumnClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getSimpleTableCenterCode()
|
||||
*/
|
||||
protected String getSimpleTableCenterCode() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTreeTable.ALIGNMENT_CENTER";
|
||||
}//getSimpleTableCenterCode()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getSimpleTableLeftCode()
|
||||
*/
|
||||
protected String getSimpleTableLeftCode() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTreeTable.ALIGNMENT_LEFT";
|
||||
}//getSimpleTableLeftCode()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.SimpleTableBuilder#getSimpleTableRightCode()
|
||||
*/
|
||||
protected String getSimpleTableRightCode() {
|
||||
return "com.foundation.tcv.swt.server.SimpleTreeTable.ALIGNMENT_RIGHT";
|
||||
}//getSimpleTableRightCode()//
|
||||
}//SimpleTreeTableBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
public class SliderBuilder extends com.foundation.view.swt.builder.SliderBuilder {
|
||||
/**
|
||||
* SliderBuilder constructor.
|
||||
*/
|
||||
public SliderBuilder() {
|
||||
super();
|
||||
}//SliderBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Slider";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//SliderBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
public class SpinnerBuilder extends com.foundation.view.swt.builder.SpinnerBuilder {
|
||||
/**
|
||||
* SpinnerBuilder constructor.
|
||||
*/
|
||||
public SpinnerBuilder() {
|
||||
super();
|
||||
}//SpinnerBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Spinner";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//SpinnerBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2005,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.builder;
|
||||
|
||||
import com.foundation.view.*;
|
||||
import com.foundation.controller.*;
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class StackViewerBuilder extends com.foundation.view.swt.builder.StackViewerBuilder {
|
||||
/**
|
||||
* StackViewerBuilder constructor.
|
||||
*/
|
||||
public StackViewerBuilder() {
|
||||
super();
|
||||
}//StackViewerBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.StackViewer";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//StackViewerBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2005,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class TabPanelBuilder extends com.foundation.view.swt.builder.TabPanelBuilder {
|
||||
/**
|
||||
* TabPanelBuilder constructor.
|
||||
*/
|
||||
public TabPanelBuilder() {
|
||||
super();
|
||||
}//TabPanelBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.TabPanel";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//TabPanelBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2003,2008 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.builder;
|
||||
|
||||
public class TextBuilder extends com.foundation.view.swt.builder.TextBuilder {
|
||||
/**
|
||||
* TextFieldBuilder constructor.
|
||||
*/
|
||||
public TextBuilder() {
|
||||
super();
|
||||
}//TextFieldBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.TextField";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//TextFieldBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class ToolBarBuilder extends com.foundation.view.swt.builder.ToolBarBuilder {
|
||||
/**
|
||||
* ToolBarBuilder constructor.
|
||||
*/
|
||||
public ToolBarBuilder() {
|
||||
super();
|
||||
}//ToolBarBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ToolBar";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ToolBarBuilder()//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class ToolItemBuilder extends com.foundation.view.swt.builder.ToolItemBuilder {
|
||||
/**
|
||||
* ToolItemBuilder constructor.
|
||||
*/
|
||||
public ToolItemBuilder() {
|
||||
super();
|
||||
}//ToolItemBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ToolBar.ToolItem";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ToolItemBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder;
|
||||
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class ToolItemDropColorBuilder extends com.foundation.view.swt.builder.ToolItemDropColorBuilder {
|
||||
/**
|
||||
* ToolItemDropColorBuilder constructor.
|
||||
*/
|
||||
public ToolItemDropColorBuilder() {
|
||||
super();
|
||||
}//ToolItemDropColorBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ToolItemDropColor";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ToolItemDropColorBuilder//
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 2007,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.builder;
|
||||
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
|
||||
public class TrayItemBuilder extends com.foundation.view.swt.builder.TrayItemBuilder {
|
||||
/**
|
||||
* TrayItemBuilder constructor.
|
||||
*/
|
||||
public TrayItemBuilder() {
|
||||
super();
|
||||
}//TrayItemBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.TrayItem";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" non-modal constructor.\r\n");
|
||||
constructor.append(" * @param controller The view's view controller reference.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller) {\r\n");
|
||||
constructor.append("\tsuper(");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, "(com.foundation.tcv.server.controller.SessionViewController) controller.getRemoteViewContext()", componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//TrayItemBuilder//
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
public class ValueHolderBuilder extends com.foundation.view.swt.builder.ValueHolderBuilder {
|
||||
/**
|
||||
* ValueHolderBuilder constructor.
|
||||
*/
|
||||
public ValueHolderBuilder() {
|
||||
super();
|
||||
}//ValueHolderBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ValueHolder";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ValueHolderBuilder//
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright (c) 2007,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.builder;
|
||||
|
||||
import com.common.util.IHashMap;
|
||||
import com.common.util.LiteHashMap;
|
||||
import com.foundation.controller.RemoteViewController;
|
||||
import com.foundation.view.IView;
|
||||
import com.foundation.view.builder.IViewSourceBuilder;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
import com.foundation.view.swt.builder.ContainerBuilder;
|
||||
|
||||
public class ViewContainerBuilder extends ContainerBuilder {
|
||||
protected static final String PROPERTY_CONTROLLER_CLASS_NAME = "controller-class-name";
|
||||
|
||||
protected static final IHashMap styleMap = new LiteHashMap(ContainerBuilder.styleMap);
|
||||
protected static final IHashMap linkMap = new LiteHashMap(ContainerBuilder.linkMap);
|
||||
/**
|
||||
* ViewContainerBuilder constructor.
|
||||
*/
|
||||
public ViewContainerBuilder() {
|
||||
super();
|
||||
}//ViewContainerBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#appendInitializationHead(com.foundation.view.builder.IViewSourceBuilder, StringBuffer, ComponentData)
|
||||
*/
|
||||
public void appendInitializationHead(IViewSourceBuilder viewBuilder, StringBuffer buffer, IComponentData data) {
|
||||
String variableName = viewBuilder.getComponentAttributeName(data);
|
||||
|
||||
//Write out the constructor here only if this is not the primary component for the view.//
|
||||
if(!viewBuilder.getPrimaryComponent().equals(data)) {
|
||||
buffer.append("\t" + variableName + " = new " + getComponentClassName() + "(");
|
||||
appendComponentConstructorParameters(viewBuilder, buffer, data, "parent");
|
||||
buffer.append(");\r\n");
|
||||
buffer.append("\t\r\n");
|
||||
}//if//
|
||||
|
||||
appendInitializationBody(viewBuilder, buffer, data, variableName);
|
||||
}//appendInitializationHead()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#appendInitializationBody(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, com.foundation.view.definition.ComponentData, java.lang.String)
|
||||
*/
|
||||
public void appendInitializationBody(IViewSourceBuilder viewBuilder, StringBuffer buffer, IComponentData data, String variableName) {
|
||||
String controllerClassName = (String) data.getPropertyValue(PROPERTY_CONTROLLER_CLASS_NAME);
|
||||
|
||||
if(controllerClassName != null) {
|
||||
buffer.append("\t" + variableName + ".setControllerClassName(\"" + controllerClassName + "\");\r\n");
|
||||
}//if//
|
||||
|
||||
super.appendInitializationBody(viewBuilder, buffer, data, variableName);
|
||||
}//appendInitializationBody()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.ViewContainer";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.AbstractBuilder#getStyleMap()
|
||||
*/
|
||||
public IHashMap getStyleMap() {
|
||||
return styleMap;
|
||||
}//getStyleMap()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.AbstractBuilder#getLinkMap()
|
||||
*/
|
||||
public IHashMap getLinkMap() {
|
||||
return linkMap;
|
||||
}//getLinkMap()//
|
||||
}//ViewContainerBuilder//
|
||||
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class WindowBuilder extends com.foundation.view.swt.builder.WindowBuilder {
|
||||
/**
|
||||
* WindowBuilder constructor.
|
||||
*/
|
||||
public WindowBuilder() {
|
||||
super();
|
||||
}//WindowBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Window";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" non-modal constructor.\r\n");
|
||||
constructor.append(" * @param controller The view's view controller reference.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append("com.foundation.controller.RemoteViewController");
|
||||
constructor.append(" controller) {\r\n");
|
||||
constructor.append("\tsuper(");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, "(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()", componentName);
|
||||
constructor.append(", controller");
|
||||
constructor.append(");\r\n\r\n");
|
||||
//constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//WindowBuilder//
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.builder;
|
||||
|
||||
import com.foundation.view.*;
|
||||
import com.foundation.controller.*;
|
||||
import com.foundation.view.builder.*;
|
||||
import com.foundation.view.definition.IComponentData;
|
||||
|
||||
public class WizardBuilder extends com.foundation.view.swt.builder.WizardBuilder {
|
||||
/**
|
||||
* WizardBuilder constructor.
|
||||
*/
|
||||
public WizardBuilder() {
|
||||
super();
|
||||
}//WizardBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.Wizard";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#buildConstructors(com.foundation.view.builder.IViewSourceBuilder, java.lang.StringBuffer, java.lang.String, com.foundation.view.definition.ComponentData)
|
||||
*/
|
||||
public void buildConstructors(IViewSourceBuilder viewBuilder, StringBuffer constructor, String className, IComponentData data) {
|
||||
String componentName = viewBuilder.addComponentNameIdentifier(data.getDocumentElement(), viewBuilder.getComponentName(data));
|
||||
|
||||
constructor.append("/**\r\n");
|
||||
constructor.append(" * ");
|
||||
constructor.append(className);
|
||||
constructor.append(" constructor.\r\n");
|
||||
constructor.append(" * @param controller The view controller which will be assigned to the value holder(s) that don't depend on another value holder for their value.\r\n");
|
||||
constructor.append(" * @param parentComponent The non-null parent view component which this frame will be contained in.\r\n");
|
||||
constructor.append(" */\r\n");
|
||||
constructor.append("public ");
|
||||
constructor.append(className);
|
||||
constructor.append("(");
|
||||
constructor.append(RemoteViewController.class.getName());
|
||||
constructor.append(" controller, ");
|
||||
constructor.append(IView.class.getName());
|
||||
constructor.append(" parentComponent) {\r\n");
|
||||
constructor.append("\tsuper((");
|
||||
constructor.append("com.foundation.tcv.swt.server.Container");
|
||||
constructor.append(") parentComponent, ");
|
||||
appendComponentConstructorParameters(viewBuilder, constructor, data, null, componentName);
|
||||
constructor.append(");\r\n\r\n");
|
||||
constructor.append("\tsetController(controller);\r\n");
|
||||
constructor.append("}//" + className + "()//\r\n");
|
||||
}//buildConstructors()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//WizardBuilder//
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2006,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.builder.cell;
|
||||
|
||||
public class CellButtonBuilder extends com.foundation.view.swt.builder.cell.CellButtonBuilder {
|
||||
/**
|
||||
* CellButtonBuilder constructor.
|
||||
*/
|
||||
public CellButtonBuilder() {
|
||||
}//CellButtonBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellButton";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//CellButtonBuilder//
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder.cell;
|
||||
|
||||
public class CellComboBuilder extends com.foundation.view.swt.builder.cell.CellComboBuilder {
|
||||
/**
|
||||
* ComboBuilder constructor.
|
||||
*/
|
||||
public CellComboBuilder() {
|
||||
}//ComboBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellComboBox";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ComboBuilder//
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder.cell;
|
||||
|
||||
public class CellDateTimeBuilder extends com.foundation.view.swt.builder.cell.CellDateTimeBuilder {
|
||||
/**
|
||||
* DateTimeBuilder constructor.
|
||||
*/
|
||||
public CellDateTimeBuilder() {
|
||||
}//DateTimeBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellDateTime";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//DateTimeBuilder//
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder.cell;
|
||||
|
||||
public class CellPanelBuilder extends com.foundation.view.swt.builder.cell.CellPanelBuilder {
|
||||
/**
|
||||
* CellPanelBuilder constructor.
|
||||
*/
|
||||
public CellPanelBuilder() {
|
||||
}//CellPanelBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellPanel";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.cell.CellPanelBuilder#getContainerClassName()
|
||||
*/
|
||||
protected String getContainerClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellPanel";
|
||||
}//getContainerClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.cell.CellPanelBuilder#getContainedClassName()
|
||||
*/
|
||||
protected String getContainedClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellComponent";
|
||||
}//getContainerClassName()//
|
||||
}//CellPanelBuilder//
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder.cell;
|
||||
|
||||
public class CellProgressBuilder extends com.foundation.view.swt.builder.cell.CellProgressBuilder {
|
||||
/**
|
||||
* ProgressBuilder constructor.
|
||||
*/
|
||||
public CellProgressBuilder() {
|
||||
}//ProgressBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellProgress";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//ProgressBuilder//
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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.tcv.swt.builder.cell;
|
||||
|
||||
public class CellTextBuilder extends com.foundation.view.swt.builder.cell.CellTextBuilder {
|
||||
/**
|
||||
* TextBuilder constructor.
|
||||
*/
|
||||
public CellTextBuilder() {
|
||||
}//TextBuilder()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.swt.builder.IBuilder#getComponentClassName()
|
||||
*/
|
||||
public String getComponentClassName() {
|
||||
return "com.foundation.tcv.swt.server.cell.CellTextField";
|
||||
}//getComponentClassName()//
|
||||
/* (non-Javadoc)
|
||||
* @see com.foundation.view.builder.IBuilder#getPrimaryInitializationMethodName()
|
||||
*/
|
||||
public String getPrimaryInitializationMethodName() {
|
||||
return "internalViewInitialize";
|
||||
}//getPrimaryInitializationMethodName()//
|
||||
}//TextBuilder//
|
||||
Reference in New Issue
Block a user