/* * 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//