Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/combo/initControl.jet')
-rw-r--r--examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/combo/initControl.jet19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/combo/initControl.jet b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/combo/initControl.jet
new file mode 100644
index 0000000..3299830
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/combo/initControl.jet
@@ -0,0 +1,19 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<%-- combo --%>
+<c:if test="$control/@enabled">
+ <c:get select="$control/@name"/>.setEnabled(<c:get select="$control/@enabled"/>);
+</c:if>
+<c:if test="$control/@visibleItemCount">
+ <c:get select="$control/@message"/>.setVisibleItemCount(<c:get select="$control/@visibleItemCount"/>);
+</c:if>
+<c:if test="$control/@textLimit">
+ <c:get select="$control/@name"/>.setTextLimit(<c:get select="$control/@textLimit"/>);
+</c:if>
+<c:iterate select="$control/item" var="item">
+ <c:get select="$control/@name"/>.add("<c:get select="$item"/>");
+</c:iterate>
+<c:if test="$control/@text">
+ <c:get select="$control/@name"/>.setText("<c:get select="$control/@text"/>");
+</c:if>

Back to the top