Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport/src/org/eclipse/jst/jsf/apache/trinidad/tagsupport/converter/operations/SelectBooleanOperation.java')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport/src/org/eclipse/jst/jsf/apache/trinidad/tagsupport/converter/operations/SelectBooleanOperation.java69
1 files changed, 0 insertions, 69 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport/src/org/eclipse/jst/jsf/apache/trinidad/tagsupport/converter/operations/SelectBooleanOperation.java b/jsf/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport/src/org/eclipse/jst/jsf/apache/trinidad/tagsupport/converter/operations/SelectBooleanOperation.java
deleted file mode 100644
index 55ee08ee8..000000000
--- a/jsf/plugins/org.eclipse.jst.jsf.apache.trinidad.tagsupport/src/org/eclipse/jst/jsf/apache/trinidad/tagsupport/converter/operations/SelectBooleanOperation.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- * Copyright (c) 2008 Oracle Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle Corporation - initial API and implementation
- */
-package org.eclipse.jst.jsf.apache.trinidad.tagsupport.converter.operations;
-
-import org.w3c.dom.Element;
-
-/**
- * ITransformOperation implementation specifically for any "selectBoolean..."
- * JSF Elements.
- *
- * <br><b>Note:</b> requires ITransformOperation.setTagConverterContext(...) to
- * have been called to provide a valid ITagConverterContext instance prior to
- * a call to the transform(...) method.
- *
- * @author Ian Trimble - Oracle
- */
-public class SelectBooleanOperation extends AbstractLabelAndHelpOperation {
-
- private String inputType;
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.jsf.apache.trinidad.tagsupport.converter.operations.AbstractLabelAndHelpOperation#transform(org.w3c.dom.Element, org.w3c.dom.Element)
- */
- @Override
- public Element transform(Element srcElement, Element curElement) {
- if (getParameters().length < 1) {
- getLog().error("Warning.TransformOperationFactory.TooFewParameters", getTransformOperationID()); //$NON-NLS-1$
- return null;
- } else {
- inputType = getParameters()[0];
- }
- return super.transform(srcElement, curElement);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jst.jsf.apache.trinidad.tagsupport.converter.operations.AbstractLabelAndHelpOperation#appendControl(org.w3c.dom.Element, org.w3c.dom.Element)
- */
- @Override
- protected void appendControl(Element srcElement, Element parentElement) {
- Element spanElement = appendChildElement("span", parentElement); //$NON-NLS-1$
- Element inputElement = appendChildElement("input", spanElement); //$NON-NLS-1$
- appendAttribute(inputElement, "type", inputType); //$NON-NLS-1$
- Element labelElement = appendChildElement("label", spanElement); //$NON-NLS-1$
- String textAndAccessKey = srcElement.getAttribute("textAndAccessKey"); //$NON-NLS-1$
- if (textAndAccessKey != null && textAndAccessKey.length() > 0) {
- appendChildText(textAndAccessKey, labelElement);
- } else {
- String text = srcElement.getAttribute("text"); //$NON-NLS-1$
- if (text != null) {
- appendChildText(text, labelElement);
- }
- }
- //append common attributes
- appendAttribute(inputElement, "class", STYLECLASS_CONTROLELEMENT); //$NON-NLS-1$
- String contentStyle = calculateStyle(null, srcElement, "contentStyle"); //$NON-NLS-1$
- if (contentStyle != null) {
- appendAttribute(inputElement, "style", contentStyle); //$NON-NLS-1$
- }
- }
-
-}

Back to the top