Author: alexsmirnov
Date: 2009-06-12 19:58:42 -0400 (Fri, 12 Jun 2009)
New Revision: 14610
Added:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/JsfComponent.java
Modified:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java
Log:
Continue CDK model development.
Modified:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java
===================================================================
---
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java 2009-06-12
23:51:00 UTC (rev 14609)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java 2009-06-12
23:58:42 UTC (rev 14610)
@@ -7,7 +7,7 @@
* @author asmirnov(a)exadel.com
*
*/
-public class ComponentBean {
+public class ComponentBean implements JsfComponent {
/**
* <p class="changed_added_4_0">Component type</p>
@@ -68,5 +68,20 @@
* <p class="changed_added_4_0">Facets recognised by the
component</p>
*/
private List<FacetBean> facets;
+
+ /* (non-Javadoc)
+ * @see org.richfaces.cdk.model.JsfComponent#getType()
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <p class="changed_added_4_0"></p>
+ * @param type the type to set
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
}
Added:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/JsfComponent.java
===================================================================
--- branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/JsfComponent.java
(rev 0)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/JsfComponent.java 2009-06-12
23:58:42 UTC (rev 14610)
@@ -0,0 +1,14 @@
+package org.richfaces.cdk.model;
+
+public interface JsfComponent {
+
+ /**
+ * <p class="changed_added_4_0">Marker interface for all JSF objects:
+ * {@code Validator}, {@code Converter}, {@code Behavior}, {@code
+ * FacesListener}</p>
+ *
+ * @return the type of JSF object.
+ */
+ public String getType();
+
+}
\ No newline at end of file
Property changes on:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/JsfComponent.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java
===================================================================
---
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java 2009-06-12
23:51:00 UTC (rev 14609)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java 2009-06-12
23:58:42 UTC (rev 14610)
@@ -58,7 +58,8 @@
/**
* <p class="changed_added_4_0">Component that the tag creates. This in
bidirectional one to one relation.</p>
+ * TODO - tag should also works with {@code Validator}, {@code Converter}, {@code
Behavior}, {@code FacesListener}
*/
- private ComponentBean component;
+ private JsfComponent component;
}
Show replies by date