You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/05/08 03:52:02 UTC

svn commit: r654383 - in /myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox: AbstractHtmlCheckbox.java HtmlCheckbox.java HtmlCheckboxTag.java

Author: lu4242
Date: Wed May  7 18:52:02 2008
New Revision: 654383

URL: http://svn.apache.org/viewvc?rev=654383&view=rev
Log:
checkbox

Added:
    myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java   (with props)
Removed:
    myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/HtmlCheckbox.java
    myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/HtmlCheckboxTag.java

Added: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java?rev=654383&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java (added)
+++ myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java Wed May  7 18:52:02 2008
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.custom.checkbox;
+
+import javax.faces.component.UIComponentBase;
+
+import org.apache.myfaces.component.UserRoleAware;
+
+/**
+ * @JSFComponent
+ *   name = "t:checkbox"
+ *   class = "org.apache.myfaces.custom.checkbox.HtmlCheckbox"
+ *   superClass = "org.apache.myfaces.custom.checkbox.AbstractHtmlCheckbox" 
+ *   tagClass = "org.apache.myfaces.custom.checkbox.HtmlCheckboxTag"
+ * 
+ * @author Manfred Geiler (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+abstract class AbstractHtmlCheckbox
+    extends UIComponentBase implements UserRoleAware
+{
+
+    public static final String FOR_ATTR = "for".intern();
+    public static final String INDEX_ATTR = "index".intern();
+
+    public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlCheckbox";
+    public static final String COMPONENT_FAMILY = "org.apache.myfaces.Checkbox";
+    private static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Checkbox";
+
+    /**
+     * @JSFProperty
+     */
+    public abstract String getFor();
+    
+    /**
+     * @JSFProperty
+     *   defaultValue = "Integer.MIN_VALUE"
+     */
+    public abstract int getIndex();
+
+}

Propchange: myfaces/myfaces-build-tools/branches/builder_plugin/bigtest/tomahawk_trunk/core/src/main/java/org/apache/myfaces/custom/checkbox/AbstractHtmlCheckbox.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL