You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ck...@apache.org on 2010/01/27 21:37:48 UTC
svn commit: r903822 [6/17] - in /myfaces/trinidad/trunk/trinidad-examples:
./ trinidad-components-showcase/ trinidad-components-showcase/src/
trinidad-components-showcase/src/main/
trinidad-components-showcase/src/main/java/ trinidad-components-showcas...
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,63 @@
+/*
+ * 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.trinidaddemo.components.select.selectManyCheckbox;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectManyCheckboxDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061956814398310L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Simple,
+ Detailed,
+ Vertical,
+ Horizontal
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectManyCheckboxDemo() {
+ super(ComponentDemoId.selectManyCheckbox, "Select Many Checkbox");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/select/selectManyCheckbox/selectManyCheckboxSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/select/selectManyCheckbox/selectManyCheckboxDetailed.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Horizontal, this,
+ "/components/select/selectManyCheckbox/selectManyCheckboxHorizontal.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Vertical, this,
+ "/components/select/selectManyCheckbox/selectManyCheckboxVertical.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectManyCheckbox/selectManyCheckbox.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectManyCheckbox/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyCheckbox/SelectManyCheckboxDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,58 @@
+/*
+ * 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.trinidaddemo.components.select.selectManyListbox;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectManyListboxDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1980061956814398310L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Simple,
+ Detailed
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectManyListboxDemo() {
+ super(ComponentDemoId.selectManyListbox, "Select Many Listbox");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/select/selectManyListbox/selectManyListboxSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/select/selectManyListbox/selectManyListboxDetailed.xhtml", getSummaryResourcePath()));
+
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectManyListbox/selectManyListbox.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectManyListbox/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyListbox/SelectManyListboxDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,54 @@
+/*
+ * 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.trinidaddemo.components.select.selectManyShuttle;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectManyShuttleDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061956014398310L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ ShowDescription
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectManyShuttleDemo() {
+ super(ComponentDemoId.selectManyShuttle, "Select Many Shuttle");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.ShowDescription, "Show description", this,
+ "/components/select/selectManyShuttle/selectManyShuttleShowDescription.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectManyShuttle/selectManyShuttle.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectManyShuttle/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectManyShuttle/SelectManyShuttleDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java Wed Jan 27 20:37:29 2010
@@ -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.trinidaddemo.components.select.selectOneChoice;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectOneChoiceDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061956014398510L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Simple,
+ Detailed
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectOneChoiceDemo() {
+ super(ComponentDemoId.selectOneChoice, "Select One Choice");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/select/selectOneChoice/selectOneChoiceSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/select/selectOneChoice/selectOneChoiceDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectOneChoice/selectOneChoice.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectOneChoice/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneChoice/SelectOneChoiceDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java Wed Jan 27 20:37:29 2010
@@ -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.trinidaddemo.components.select.selectOneListbox;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectOneListboxDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061956014398580L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Simple,
+ Detailed
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectOneListboxDemo() {
+ super(ComponentDemoId.selectOneListbox, "Select One Listbox");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/select/selectOneListbox/selectOneListboxSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/select/selectOneListbox/selectOneListboxDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectOneListbox/selectOneListbox.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectOneListbox/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneListbox/SelectOneListboxDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,63 @@
+/*
+ * 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.trinidaddemo.components.select.selectOneRadio;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectOneRadioDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061956014398585L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Simple,
+ Detailed,
+ Horizontal,
+ Vertical
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectOneRadioDemo() {
+ super(ComponentDemoId.selectOneRadio, "Select One Radio");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/select/selectOneRadio/selectOneRadioSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/select/selectOneRadio/selectOneRadioDetailed.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Horizontal, this,
+ "/components/select/selectOneRadio/selectOneRadioHorizontal.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Vertical, this,
+ "/components/select/selectOneRadio/selectOneRadioVertical.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectOneRadio/selectOneRadio.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectOneRadio/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOneRadio/SelectOneRadioDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,55 @@
+/*
+ * 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.trinidaddemo.components.select.selectOrderShuttle;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class SelectOrderShuttleDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061956813498310L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Default,
+ ShowDescription
+ }
+
+ /**
+ * Constructor.
+ */
+ public SelectOrderShuttleDemo() {
+ super(ComponentDemoId.selectOrderShuttle, "Select Order Shuttle", VARIANTS.Default, "Default");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.ShowDescription, "Show Description", this,
+ "/components/select/selectOrderShuttle/selectOrderShuttleShowDescription.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectOrderShuttle/selectOrderShuttle.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectOrderShuttle/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectOrderShuttle/SelectOrderShuttleDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,71 @@
+/*
+ * 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.trinidaddemo.components.select.selectRangeChoiceBar;
+
+import org.apache.myfaces.trinidad.event.RangeChangeEvent;
+import java.util.ArrayList;
+
+/**
+ *
+ */
+public class SelectRangeChoiceBarBean implements java.io.Serializable {
+ private ArrayList<String> stringList;
+ private String stringSublist;
+ private static int beginIndex = 0;
+ private static int endIndex = 5;
+
+ public SelectRangeChoiceBarBean() {
+ stringSublist = new String();
+ stringList = new ArrayList<String>();
+ stringList.add("Anaconda");
+ stringList.add("Antelope");
+ stringList.add("Baboon");
+ stringList.add("Butterfly");
+ stringList.add("Catfish");
+ stringList.add("Deer mouse");
+ stringList.add("Elephant");
+ stringList.add("Frog");
+ stringList.add("Grasshopper");
+ stringList.add("Hyena");
+ stringList.add("Jellyfish");
+ stringList.add("Mockingbird");
+ stringList.add("Zebra");
+ }
+
+ public String getStringSublist() {
+ stringSublist = stringList.get(beginIndex);
+ for (int i = beginIndex+1; i < endIndex; i++)
+ stringSublist = stringSublist + ", " + stringList.get(i);
+ beginIndex = 0;
+ endIndex = 5;
+ return stringSublist;
+ }
+
+ public void rangeChange(RangeChangeEvent rce) {
+ beginIndex = rce.getNewStart();
+ if (rce.getNewEnd() >= 13) endIndex = 13;
+ else endIndex = rce.getNewEnd();
+ }
+
+ public ArrayList<String> getStringList() {
+ return stringList;
+ }
+
+}
+
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,49 @@
+/*
+ * 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.trinidaddemo.components.select.selectRangeChoiceBar;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+
+/**
+ *
+ */
+public class SelectRangeChoiceBarDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1983061956813498310L;
+
+ /**
+ * Constructor.
+ */
+ public SelectRangeChoiceBarDemo(){
+ super(ComponentDemoId.selectRangeChoiceBar, "Select Range Choice Bar");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/select/selectRangeChoiceBar/selectRangeChoiceBar.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/select/selectRangeChoiceBar/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarBean.java";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/select/selectRangeChoiceBar/SelectRangeChoiceBarDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,45 @@
+/*
+ * 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.trinidaddemo.components.showDetail.showDetail;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+
+/**
+ *
+ */
+public class ShowDetailDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061456014398510L;
+
+ /**
+ * Constructor.
+ */
+ public ShowDetailDemo() {
+ super(ComponentDemoId.showDetail, "Show Detail");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/showDetail/showDetail/showDetail.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/showDetail/showDetail/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetail/ShowDetailDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,63 @@
+/*
+ * 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.trinidaddemo.components.showDetail.showDetailHeader;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class ShowDetailHeaderDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989461456014395510L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ ConfirmationMessage,
+ InfoMessage,
+ ErrorMessage,
+ WarningMessage
+ }
+
+ /**
+ * Constructor.
+ */
+ public ShowDetailHeaderDemo(){
+ super(ComponentDemoId.showDetailHeader, "Show Detail Header");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.InfoMessage, "Info Message", this,
+ "/components/showDetail/showDetailHeader/showDetailHeaderInfoMessage.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.ConfirmationMessage, "Confirmation Message", this,
+ "/components/showDetail/showDetailHeader/showDetailHeaderConfirmationMessage.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.ErrorMessage, "Error message", this,
+ "/components/showDetail/showDetailHeader/showDetailHeaderErrorMessage.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.WarningMessage, "Warning message", this,
+ "/components/showDetail/showDetailHeader/showDetailHeaderWarningMessage.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/showDetail/showDetailHeader/showDetailHeader.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/showDetail/showDetailHeader/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailHeader/ShowDetailHeaderDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,50 @@
+/*
+ * 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.trinidaddemo.components.showDetail.showDetailItem;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class ShowDetailItemDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1989061356014398510L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Default
+ };
+
+ /**
+ * Constructor.
+ */
+ public ShowDetailItemDemo() {
+ super(ComponentDemoId.showDetailItem, "Show Detail Item", VARIANTS.Default, "Default");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/showDetail/showDetailItem/showDetailItem.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/showDetail/showDetailItem/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/showDetail/showDetailItem/ShowDetailItemDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,70 @@
+/*
+ * 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.trinidaddemo.components.table.column;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class ColumnDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982064956683398710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Center,
+ End,
+ Left,
+ Right
+ }
+
+ /**
+ * Constructor.
+ */
+ public ColumnDemo() {
+ super(ComponentDemoId.column, "Column");
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Center, this,
+ "/components/table/column/columnCenter.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java"));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.End, this,
+ "/components/table/column/columnEnd.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java"));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Left, this,
+ "/components/table/column/columnLeft.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java"));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Right, this,
+ "/components/table/column/columnRight.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java"));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/table/column/column.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/table/column/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/ColumnDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,77 @@
+/*
+ * 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.trinidaddemo.components.table.column;
+
+import java.util.ArrayList;
+
+/**
+ *
+ */
+public class Monarch {
+ private ArrayList<String> name;
+ private ArrayList<String> birth;
+ private ArrayList<String> death;
+
+ public Monarch(){
+ name = new ArrayList<String>();
+ name.add("Charles II");
+ name.add("James II");
+ name.add("William III");
+ name.add("Mary II");
+ name.add("Anne");
+
+ birth = new ArrayList<String>();
+ birth.add("29 May 1630");
+ birth.add("14 October 1633");
+ birth.add("4 November 1650");
+ birth.add("30 April 1662");
+ birth.add("6 February 1665");
+
+ death = new ArrayList<String>();
+ death.add("6 February 1685");
+ death.add("16 September 1701");
+ death.add("8 March 1702");
+ death.add("28 December 1694");
+ death.add("1 August 1714");
+ }
+
+ public String getName(int index) {
+ return name.get(index);
+ }
+
+ public String getBirth(int index) {
+ return birth.get(index);
+ }
+
+ public String getDeath(int index) {
+ return death.get(index);
+ }
+
+ public void setName(ArrayList<String> name) {
+ this.name = name;
+ }
+
+ public void setBirth(ArrayList<String> birth) {
+ this.birth = birth;
+ }
+
+ public void setDeath(ArrayList<String> death) {
+ this.death = death;
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/Monarch.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,72 @@
+/*
+ * 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.trinidaddemo.components.table.column;
+
+/**
+ *
+ */
+public class TableColumnBean implements java.io.Serializable {
+ static private int count = 0;
+ static private Monarch monarchs;
+ private int rowNo;
+ private String monarchName;
+ private String monarchBirth;
+ private String monarchDeath;
+
+ public TableColumnBean() {
+ monarchs = new Monarch();
+ monarchName = monarchs.getName(count);
+ monarchBirth = monarchs.getBirth(count);
+ monarchDeath = monarchs.getDeath(count);
+ rowNo=(count++)+1;
+ }
+
+ public int getRowNo() {
+ return rowNo;
+ }
+
+ public String getMonarchName() {
+ return monarchName;
+ }
+
+ public String getMonarchBirth() {
+ return monarchBirth;
+ }
+
+ public String getMonarchDeath() {
+ return monarchDeath;
+ }
+
+ public static void setCount(int count) {
+ TableColumnBean.count = count;
+ }
+
+ public void setMonarchName(String monarchName) {
+ this.monarchName = monarchName;
+ }
+
+ public void setMonarchBirth(String monarchBirth) {
+ this.monarchBirth = monarchBirth;
+ }
+
+ public void setMonarchDeath(String monarchDeath) {
+ this.monarchDeath = monarchDeath;
+ }
+}
+
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,68 @@
+/*
+ * 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.trinidaddemo.components.table.table;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class TableDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982064950883398710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ NoGridLines,
+ SingleRowSelection,
+ MultipleRowSelection,
+ Pagination
+ }
+
+ /**
+ * Constructor.
+ */
+ public TableDemo() {
+ super(ComponentDemoId.table, "Table");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.SingleRowSelection, "Single Row Selection", this,
+ "/components/table/table/tableSingleRowSelection.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.MultipleRowSelection, "Multiple Row Selection", this,
+ "/components/table/table/tableMultipleRowSelection.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.NoGridLines, "No grid lines", this,
+ "/components/table/table/tableNoGridLines.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Pagination, this,
+ "/components/table/table/tablePaginated.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/table/table/table.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/table/table/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/table/column/TableColumnBean.java";
+ }
+
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/table/TableDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,137 @@
+/*
+ * 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.trinidaddemo.components.table.treeTable;
+
+import org.apache.myfaces.trinidad.model.TreeModel;
+import org.apache.myfaces.trinidad.model.ChildPropertyTreeModel;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.beans.IntrospectionException;
+import java.io.Serializable;
+
+/**
+ *
+ */
+public class TreeTableBean implements java.io.Serializable {
+ private transient TreeModel _model = null;
+
+ public TreeTableBean() {
+ }
+
+ public TreeModel getModel() throws IntrospectionException {
+ if (_model == null) {
+ _model = new ChildPropertyTreeModel(new TreeDataDemo().getRoot(), "children");
+ }
+ return _model;
+ }
+
+ public static class TreeNodeBean implements Serializable {
+ private String _name = null;
+ private String _gender = null;
+
+ private List<TreeNodeBean> _children;
+
+ public TreeNodeBean(String _name, String _gender) {
+ this._name = _name;
+ this._gender = _gender;
+ }
+
+ public String getName() {
+ return _name;
+ }
+
+ public void setName(String text) {
+ _name = text;
+ }
+
+ public void setChildren(List<TreeNodeBean> nodes) {
+ _children = new ArrayList<TreeNodeBean>(nodes);
+ }
+
+ public List<TreeNodeBean> getChildren() {
+ if (_children == null)
+ return null;
+
+ return Collections.unmodifiableList(_children);
+ }
+
+ public String getGender() {
+ return _gender;
+ }
+
+ public void setGender(String gender) {
+ this._gender = gender;
+ }
+ }
+
+ public static class TreeDataDemo {
+ private ArrayList<TreeNodeBean> root = new ArrayList<TreeNodeBean>();
+
+ private TreeNodeBean _createNode(String name, String gender) {
+ return new TreeNodeBean(name, gender);
+ }
+
+ public ArrayList<TreeNodeBean> getRoot() {
+ return root;
+ }
+
+ public TreeDataDemo() {
+ TreeNodeBean matt = _createNode("Matt", "male");
+ TreeNodeBean john = _createNode("John", "male");
+ TreeNodeBean ira = _createNode("Ira", "female");
+ TreeNodeBean tom = _createNode("Tom", "male");
+ TreeNodeBean jack = _createNode("Jack", "male");
+ TreeNodeBean victoria = _createNode("Victoria", "female");
+ TreeNodeBean angelina = _createNode("Angelina", "female");
+ TreeNodeBean mark = _createNode("Mark", "male");
+ TreeNodeBean kate = _createNode("Kate", "female");
+ TreeNodeBean lucy = _createNode("Lucy", "female");
+ TreeNodeBean amy = _createNode("Amy", "female");
+ TreeNodeBean victor = _createNode("Victor", "male");
+
+ root.add(matt);
+
+ ArrayList<TreeNodeBean> list_0 = new ArrayList<TreeNodeBean>();
+ list_0.add(john);
+ list_0.add(victoria);
+ list_0.add(kate);
+ list_0.add(lucy);
+ list_0.add(amy);
+ list_0.add(victor);
+ matt.setChildren(list_0);
+
+ ArrayList<TreeNodeBean> list_0_0 = new ArrayList<TreeNodeBean>();
+ list_0_0.add(ira);
+ list_0_0.add(jack);
+ john.setChildren(list_0_0);
+ ArrayList<TreeNodeBean> list_0_0_0 = new ArrayList<TreeNodeBean>();
+ list_0_0_0.add(tom);
+ ira.setChildren(list_0_0_0);
+
+ ArrayList<TreeNodeBean> list_0_1 = new ArrayList<TreeNodeBean>();
+ list_0_1.add(angelina);
+ list_0_1.add(mark);
+ victoria.setChildren(list_0_1);
+ }
+
+ }
+
+}
\ No newline at end of file
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,70 @@
+/*
+ * 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.trinidaddemo.components.table.treeTable;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+
+/**
+ *
+ */
+public class TreeTableDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982064956883698710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ NoGridLines,
+ SingleRowSelection,
+ MultipleRowSelection,
+ Simple,
+ Detailed
+ }
+
+ /**
+ * Constructor.
+ */
+ public TreeTableDemo() {
+ super(ComponentDemoId.treeTable, "Tree Table");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.SingleRowSelection, "Single selection", this,
+ "/components/table/treeTable/treeTableSingleRowSelection.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.MultipleRowSelection, "Multiple selection", this,
+ "/components/table/treeTable/treeTableMultipleRowSelection.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.NoGridLines, "No grid lines", this,
+ "/components/table/treeTable/treeTableNoGridLines.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/table/treeTable/treeTableSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/table/treeTable/treeTableDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/table/treeTable/treeTable.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/table/treeTable/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableBean.java";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/table/treeTable/TreeTableDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,200 @@
+/*
+ * 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.trinidaddemo.feature;
+
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ *
+ */
+public class ContactListBean {
+ private List<Contact> list = new ArrayList<Contact>();
+ private Contact contact;
+ private TableBean tableBean = new TableBean();
+
+ public ContactListBean() {
+ list.add(new Contact("Tom", "Smith", "tom@yahoo.com", "1977.12.12"));
+ list.add(new Contact("Mark", "Smith", "marc@yahoo.com", "1977.11.11"));
+ list.add(new Contact("Jack", "Smith", "jack@yahoo.com", "1977.10.10"));
+ }
+
+ public ContactListBean(List<Contact> list) {
+ this.list = list;
+ }
+
+ public Contact getContact() {
+ return contact;
+ }
+
+ public void setContact(Contact contact) {
+ this.contact = contact;
+ }
+
+ public TableBean getTableBean() {
+ return tableBean;
+ }
+
+ public void setTableBean(TableBean tableBean) {
+ this.tableBean = tableBean;
+ }
+
+ public void newContact() {
+ contact = new Contact();
+ }
+
+ public void editContact() {
+ tableBean.performReport();
+ List<Object> reportItems = tableBean.getReportItems();
+ if (reportItems.size() > 0) {
+ contact = (Contact) reportItems.get(0);
+ } else {
+ contact = null;
+ }
+ }
+
+ public void deleteContact() {
+ tableBean.performReport();
+ List<Object> reportItems = tableBean.getReportItems();
+ for (Object reportItem : reportItems) {
+ if (list.contains((Contact)reportItem)) {
+ list.remove(reportItem);
+ }
+ }
+ }
+
+ public String save() {
+ if (!list.contains(contact)) {
+ list.add(contact);
+ }
+ contact = null;
+ return null;
+ }
+
+ public String cancel() {
+ contact = null;
+ return null;
+ }
+
+
+ public List<Contact> getList() {
+ return list;
+ }
+
+ public void setList(List<Contact> list) {
+ this.list = list;
+ }
+
+ public static class Contact {
+ private String firstName;
+ private String eMailAddress;
+ private String birthDay;
+ private String lastName;
+ private String city;
+ private String zip;
+ private String street;
+ private String country;
+
+ public Contact() {
+ }
+
+ public Contact(String firstName, String lastName, String eMailAddress, String birthDay) {
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.eMailAddress = eMailAddress;
+ this.birthDay = birthDay;
+ }
+
+ public Contact(String firstName, String country, String street, String zip,
+ String city, String lastName, String birthDay, String eMailAddress) {
+ this.firstName = firstName;
+ this.country = country;
+ this.street = street;
+ this.zip = zip;
+ this.city = city;
+ this.lastName = lastName;
+ this.birthDay = birthDay;
+ this.eMailAddress = eMailAddress;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ public String getZip() {
+ return zip;
+ }
+
+ public void setZip(String zip) {
+ this.zip = zip;
+ }
+
+ public String getStreet() {
+ return street;
+ }
+
+ public void setStreet(String street) {
+ this.street = street;
+ }
+
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(String country) {
+ this.country = country;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getEMailAddress() {
+ return eMailAddress;
+ }
+
+ public void setEMailAddress(String eMailAddress) {
+ this.eMailAddress = eMailAddress;
+ }
+
+ public String getBirthDay() {
+ return birthDay;
+ }
+
+ public void setBirthDay(String birthDay) {
+ this.birthDay = birthDay;
+ }
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/ContactListBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,81 @@
+/*
+ * 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.trinidaddemo.feature;
+
+/**
+ *
+ */
+public class Email {
+ private String from;
+ private String to;
+ private String subject;
+ private String date;
+ private String content;
+
+ public Email(String from, String to, String subject, String date, String content) {
+ this.from = from;
+ this.to = to;
+ this.subject = subject;
+ this.date = date;
+ this.content = content;
+ }
+
+ public Email() {
+ }
+
+ public String getFrom() {
+ return from;
+ }
+
+ public void setFrom(String from) {
+ this.from = from;
+ }
+
+ public String getTo() {
+ return to;
+ }
+
+ public void setTo(String to) {
+ this.to = to;
+ }
+
+ public String getSubject() {
+ return subject;
+ }
+
+ public void setSubject(String subject) {
+ this.subject = subject;
+ }
+
+ public String getDate() {
+ return date;
+ }
+
+ public void setDate(String date) {
+ this.date = date;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/Email.java
------------------------------------------------------------------------------
svn:mime-type = text/plain