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 [3/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/input/inputColor/InputColorDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputColor/InputColorDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputColor/InputColorDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputColor/InputColorDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,60 @@
+/*
+ * 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.input.inputColor;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class InputColorDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982061956883498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Compact,
+ Detailed,
+ Simple
+ }
+
+ /**
+ * Constructor.
+ */
+ public InputColorDemo() {
+ super(ComponentDemoId.inputColor, "Input Color");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Compact, this,
+ "/components/input/inputColor/inputColorCompact.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/input/inputColor/inputColorDetailed.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/input/inputColor/inputColorSimple.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/input/inputColor/inputColor.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/input/inputColor/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputColor/InputColorDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputColor/InputColorDemo.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/input/inputColor/InputColorDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputDate/InputDateDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputDate/InputDateDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputDate/InputDateDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputDate/InputDateDemo.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.input.inputDate;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class InputDateDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982071956883498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Detailed,
+ Simple
+ }
+
+ /**
+ * Constructor.
+ */
+ public InputDateDemo() {
+ super(ComponentDemoId.inputDate, "Input Date");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, "Simple", this,
+ "/components/input/inputDate/inputDateSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, "Detailed", this,
+ "/components/input/inputDate/inputDateDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/input/inputDate/inputDate.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/input/inputDate/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputDate/InputDateDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputDate/InputDateDemo.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/input/inputDate/InputDateDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputFile/InputFileDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputFile/InputFileDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputFile/InputFileDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputFile/InputFileDemo.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.input.inputFile;
+
+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 InputFileDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982061956883492710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Detailed,
+ Simple
+ }
+
+ /**
+ * Constructor.
+ */
+ public InputFileDemo() {
+ super(ComponentDemoId.inputFile, "Input File");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/input/inputFile/inputFileSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/input/inputFile/inputFileDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/input/inputFile/inputFile.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/input/inputFile/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputFile/InputFileDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputFile/InputFileDemo.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/input/inputFile/InputFileDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,120 @@
+/*
+ * 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.input.inputListOfValues;
+
+import org.apache.myfaces.trinidad.component.UIXTable;
+import org.apache.myfaces.trinidad.context.RequestContext;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.ValueBinding;
+import java.util.Iterator;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.NoSuchElementException;
+
+/**
+ *
+ */
+public class InputListOfValuesBean {
+ private static PeriodicDialogBean periodicDialogBean = new PeriodicDialogBean();
+ private List<InputListItem> list = new ArrayList<InputListItem>();
+
+ public InputListOfValuesBean() {
+ list.add(new InputListItem("Matt"));
+ list.add(new InputListItem("John"));
+ list.add(new InputListItem("Ira"));
+ list.add(new InputListItem("Lucy"));
+ list.add(new InputListItem("Tom"));
+ list.add(new InputListItem("Jack"));
+ list.add(new InputListItem("Victoria"));
+ list.add(new InputListItem("Angelina"));
+ list.add(new InputListItem("Mark"));
+ list.add(new InputListItem("Kate"));
+ }
+
+ public List<InputListItem> getList() {
+ return list;
+ }
+
+ public void setList(List<InputListItem> list) {
+ this.list = list;
+ }
+
+ public PeriodicDialogBean getPeriodicDialogBean() {
+ return periodicDialogBean;
+ }
+
+
+ public static class InputListItem {
+ private String _name;
+
+ public InputListItem(String _name) {
+ this._name = _name;
+ }
+
+ public String getName() {
+ return _name;
+ }
+
+ public void setName(String name){
+ _name = name;
+ }
+
+ }
+
+
+ public static class PeriodicDialogBean {
+ private UIXTable _table = null;
+
+ public UIXTable getTable() {
+ return _table;
+ }
+
+ public void setTable(UIXTable table) {
+ _table = table;
+ }
+
+ public String cancel() {
+ RequestContext.getCurrentInstance().returnFromDialog(null, null);
+ return null;
+ }
+
+ @SuppressWarnings("unchecked")
+ public String select() {
+ try{
+ FacesContext context = FacesContext.getCurrentInstance();
+ Iterator<Object> iterator = _table.getSelectedRowKeys().iterator();
+ Object rowKey = iterator.next();
+ Object oldRowKey = _table.getRowKey();
+ _table.setRowKey(rowKey);
+ ValueBinding binding = context.getApplication().
+ createValueBinding("#{row.name}");
+ Object value = binding.getValue(context);
+ RequestContext.getCurrentInstance().returnFromDialog(value, null);
+ _table.setRowKey(oldRowKey);
+ }
+ catch (NoSuchElementException e){}
+
+ return null;
+ }
+
+
+ }
+}
+
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.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/input/inputListOfValues/InputListOfValuesBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,64 @@
+/*
+ * 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.input.inputListOfValues;
+
+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 InputListOfValuesDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982061956883498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Detailed,
+ Simple
+ }
+
+ /**
+ * Constructor.
+ */
+ public InputListOfValuesDemo() {
+ super(ComponentDemoId.inputListOfValues, "Input List Of Values");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/input/inputListOfValues/inputListOfValuesSimple.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java"));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/input/inputListOfValues/inputListOfValuesDetailed.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java"));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/input/inputListOfValues/inputListOfValues.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/input/inputListOfValues/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesBean.java";
+ }
+
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputListOfValues/InputListOfValuesDemo.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/input/inputListOfValues/InputListOfValuesDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputNumberSpinbox/InputNumberSpinboxDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputNumberSpinbox/InputNumberSpinboxDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputNumberSpinbox/InputNumberSpinboxDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputNumberSpinbox/InputNumberSpinboxDemo.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.input.inputNumberSpinbox;
+
+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 InputNumberSpinboxDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982061956883498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Simple,
+ Detailed
+ }
+
+ /**
+ * Constructor.
+ */
+ public InputNumberSpinboxDemo() {
+ super(ComponentDemoId.inputNumberSpinbox, "Input Number Spinbox", VARIANTS.Simple, "Simple");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, "Detailed", this,
+ "/components/input/inputNumberSpinbox/inputNumberSpinboxDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/input/inputNumberSpinbox/inputNumberSpinboxSimple.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/input/inputNumberSpinbox/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputNumberSpinbox/InputNumberSpinboxDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputNumberSpinbox/InputNumberSpinboxDemo.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/input/inputNumberSpinbox/InputNumberSpinboxDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputText/InputTextDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputText/InputTextDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputText/InputTextDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputText/InputTextDemo.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.input.inputText;
+
+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 InputTextDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982061956883498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Detailed,
+ Simple
+ }
+
+ /**
+ * Constructor.
+ */
+ public InputTextDemo() {
+ super(ComponentDemoId.inputText, "Input Text");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Simple, this,
+ "/components/input/inputText/inputTextSimple.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Detailed, this,
+ "/components/input/inputText/inputTextDetailed.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/input/inputText/inputText.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/input/inputText/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputText/InputTextDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/input/inputText/InputTextDemo.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/input/inputText/InputTextDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelBorderLayout/BorderLayoutDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelBorderLayout/BorderLayoutDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelBorderLayout/BorderLayoutDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelBorderLayout/BorderLayoutDemo.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.layout.panelBorderLayout;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class BorderLayoutDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = 1L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Expanded,
+ Positioned
+ }
+
+ /**
+ * Constructor.
+ */
+ public BorderLayoutDemo() {
+ super(ComponentDemoId.panelBorderLayout, "Border Layout", VARIANTS.Expanded);
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Positioned, this,
+ "/components/layout/borderLayout/panelBorderLayoutPositioned.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/layout/borderLayout/panelBorderLayout.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/layout/borderLayout/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelBorderLayout/BorderLayoutDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelBorderLayout/BorderLayoutDemo.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/layout/panelBorderLayout/BorderLayoutDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelFormLayout/FormLayoutDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelFormLayout/FormLayoutDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelFormLayout/FormLayoutDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelFormLayout/FormLayoutDemo.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.layout.panelFormLayout;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class FormLayoutDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -72121986754092646L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ LabelLeft,
+ LabelTop
+ }
+
+ /**
+ * Constructor.
+ */
+ public FormLayoutDemo() {
+ super(ComponentDemoId.panelFormLayout, "Form Layout");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.LabelLeft, "Label left", this,
+ "/components/layout/formLayout/panelFormLayoutLabelLeft.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.LabelTop, "Label top", this,
+ "/components/layout/formLayout/panelFormLayoutLabelTop.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/layout/formLayout/panelFormLayout.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/layout/formLayout/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelFormLayout/FormLayoutDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelFormLayout/FormLayoutDemo.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/layout/panelFormLayout/FormLayoutDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDemo.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,59 @@
+/*
+ * 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.layout.panelGroupLayout;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class GroupLayoutDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = 2660360384187454374L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Horizontal,
+ Vertical,
+ Dynamic
+ }
+
+ /**
+ * Constructor.
+ */
+ public GroupLayoutDemo() {
+ super(ComponentDemoId.panelGroupLayout, "Group Layout");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Horizontal, this,
+ "/components/layout/groupLayout/panelGroupLayoutHorizontal.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Dynamic,this,
+ "/components/layout/groupLayout/panelGroupLayoutDynamic.xhtml", getSummaryResourcePath(),
+ "/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.java"));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/layout/groupLayout/panelGroupLayout.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/layout/groupLayout/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDemo.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/layout/panelGroupLayout/GroupLayoutDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.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.layout.panelGroupLayout;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ *
+ */
+public class GroupLayoutDynamicBean {
+
+ private List<String> layoutItems;
+
+ /**
+ * Constructor.
+ */
+ public GroupLayoutDynamicBean() {
+ layoutItems = new ArrayList<String>();
+
+ layoutItems.add("Dynamic Item 1");
+ layoutItems.add("Dynamic Item 2");
+ layoutItems.add("Dynamic Item 3");
+ layoutItems.add("Dynamic Item 4");
+ layoutItems.add("Dynamic Item 5");
+ }
+
+ /**
+ * @return the layoutItems
+ */
+ public List<String> getLayoutItems() {
+ return layoutItems;
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelGroupLayout/GroupLayoutDynamicBean.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/layout/panelGroupLayout/GroupLayoutDynamicBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelHorizontalLayout/HorizontalLayoutDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelHorizontalLayout/HorizontalLayoutDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelHorizontalLayout/HorizontalLayoutDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelHorizontalLayout/HorizontalLayoutDemo.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.layout.panelHorizontalLayout;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class HorizontalLayoutDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982071956823498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Left,
+ Middle,
+ Right,
+ Top
+ }
+
+ /**
+ * Constructor.
+ */
+ public HorizontalLayoutDemo() {
+ super(ComponentDemoId.panelHorizontalLayout, "Horizontal Layout");
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Left, this,
+ "/components/layout/horizontalLayout/panelHorizontalLayoutLeft.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Middle, this,
+ "/components/layout/horizontalLayout/panelHorizontalLayoutMiddle.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Right, this,
+ "/components/layout/horizontalLayout/panelHorizontalLayoutRight.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Top, this,
+ "/components/layout/horizontalLayout/panelHorizontalLayoutTop.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/layout/horizontalLayout/panelHorizontalLayout.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/layout/horizontalLayout/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelHorizontalLayout/HorizontalLayoutDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/panelHorizontalLayout/HorizontalLayoutDemo.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/layout/panelHorizontalLayout/HorizontalLayoutDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/separator/SeparatorDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/separator/SeparatorDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/separator/SeparatorDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/separator/SeparatorDemo.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.layout.separator;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+
+/**
+ *
+ */
+public class SeparatorDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982071956883498710L;
+
+ /**
+ * Constructor.
+ */
+ public SeparatorDemo() {
+ super(ComponentDemoId.separator, "Separator");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/layout/separator/separator.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/layout/separator/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/separator/SeparatorDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/separator/SeparatorDemo.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/layout/separator/SeparatorDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/spacer/SpacerDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/spacer/SpacerDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/spacer/SpacerDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/spacer/SpacerDemo.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.layout.spacer;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+
+/**
+ *
+ */
+public class SpacerDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982071956886498710L;
+
+ /**
+ * Constructor.
+ */
+ public SpacerDemo() {
+ super(ComponentDemoId.spacer, "Spacer");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/layout/spacer/spacer.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/layout/spacer/summary.xhtml";
+ }
+}
\ No newline at end of file
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/spacer/SpacerDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/layout/spacer/SpacerDemo.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/layout/spacer/SpacerDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/breadCrumbs/BreadCrumbsDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/breadCrumbs/BreadCrumbsDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/breadCrumbs/BreadCrumbsDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/breadCrumbs/BreadCrumbsDemo.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.navigation.breadCrumbs;
+
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+import org.apache.myfaces.trinidaddemo.support.IComponentDemoVariantId;
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.impl.ComponentVariantDemoImpl;
+
+/**
+ *
+ */
+public class BreadCrumbsDemo extends AbstractComponentDemo{
+ private static final long serialVersionUID = -1982061956383498710L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Horizontal,
+ Vertical
+ }
+
+ /**
+ * Constructor.
+ */
+ public BreadCrumbsDemo() {
+ super(ComponentDemoId.breadCrumbs, "Bread Crumbs", VARIANTS.Horizontal);
+
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Vertical, this,
+ "/components/navigation/breadCrumbs/breadCrumbsVertical.xhtml",
+ "/components/navigation/breadCrumbs/summary.xhtml"));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/navigation/breadCrumbs/breadCrumbsHorizontal.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/navigation/breadCrumbs/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/breadCrumbs/BreadCrumbsDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/breadCrumbs/BreadCrumbsDemo.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/navigation/breadCrumbs/BreadCrumbsDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/commandNavigationItem/CommandNavigationItemDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/commandNavigationItem/CommandNavigationItemDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/commandNavigationItem/CommandNavigationItemDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/commandNavigationItem/CommandNavigationItemDemo.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.navigation.commandNavigationItem;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+
+/**
+ *
+ */
+public class CommandNavigationItemDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982061956383498310L;
+
+ /**
+ * Constructor.
+ */
+ public CommandNavigationItemDemo() {
+ super(ComponentDemoId.commandNavigationItem, "Command Navigation Item");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/navigation/commandNavigationItem/commandNavigationItem.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/navigation/commandNavigationItem/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/commandNavigationItem/CommandNavigationItemDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/commandNavigationItem/CommandNavigationItemDemo.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/navigation/commandNavigationItem/CommandNavigationItemDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationPane/NavigationPaneDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationPane/NavigationPaneDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationPane/NavigationPaneDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationPane/NavigationPaneDemo.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.navigation.navigationPane;
+
+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 NavigationPaneDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982060956383498310L;
+
+ private enum VARIANTS implements IComponentDemoVariantId {
+ Bar,
+ Buttons,
+ Choice,
+ List,
+ Tabs
+ }
+
+ /**
+ * Constructor.
+ */
+ public NavigationPaneDemo() {
+ super(ComponentDemoId.navigationPane, "Navigation Pane");
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Buttons, this,
+ "/components/navigation/navigationPane/navigationPaneButtons.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Choice, this,
+ "/components/navigation/navigationPane/navigationPaneChoice.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.List, this,
+ "/components/navigation/navigationPane/navigationPaneList.xhtml", getSummaryResourcePath()));
+ addComponentDemoVariant(new ComponentVariantDemoImpl(VARIANTS.Tabs, this,
+ "/components/navigation/navigationPane/navigationPaneTabs.xhtml", getSummaryResourcePath()));
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/navigation/navigationPane/navigationPaneBar.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/navigation/navigationPane/summary.xhtml";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationPane/NavigationPaneDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationPane/NavigationPaneDemo.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/navigation/navigationPane/NavigationPaneDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,150 @@
+/*
+ * 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.navigation.navigationTree;
+
+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.io.Serializable;
+import java.beans.IntrospectionException;
+
+/**
+ *
+ */
+public class NavigationTreeBean implements java.io.Serializable {
+ private transient TreeModel _model = null;
+
+ public NavigationTreeBean() {
+ }
+
+ public TreeModel getModel() throws IntrospectionException {
+ if (_model == null) {
+ _model = new ChildPropertyTreeModel(new TreeDataDemo().getRoot(), "children");
+ }
+ return _model;
+ }
+
+ public String getActionString() {
+ return TreeNodeBean.getAction();
+ }
+
+ public static class TreeNodeBean implements Serializable {
+ private String _name = null;
+ private String _gender = null;
+ private static String _actionString = 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 doAction() {
+ _actionString = "You clicked <b>" + _name + "</b>";
+ }
+
+ public static String getAction() {
+ return _actionString;
+ }
+
+ 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) {
+ TreeNodeBean data = new TreeNodeBean(name, gender);
+ return data;
+ }
+
+ 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);
+ }
+
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.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/navigation/navigationTree/NavigationTreeBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeDemo.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.navigation.navigationTree;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+
+/**
+ *
+ */
+public class NavigationTreeDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982060956383408310L;
+
+ /**
+ * Constructor.
+ */
+ public NavigationTreeDemo() {
+ super(ComponentDemoId.navigationTree, "Navigation Tree");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/navigation/navigationTree/navigationTree.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/navigation/navigationTree/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeBean.java";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/navigationTree/NavigationTreeDemo.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/navigation/navigationTree/NavigationTreeDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.java Wed Jan 27 20:37:29 2010
@@ -0,0 +1,171 @@
+/*
+ * 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.navigation.processChoiceBar;
+
+import org.apache.myfaces.trinidad.model.ViewIdPropertyMenuModel;
+import org.apache.myfaces.trinidad.model.ProcessUtils;
+import org.apache.myfaces.trinidad.model.ChildPropertyTreeModel;
+
+import java.beans.IntrospectionException;
+import java.util.List;
+import java.util.ArrayList;
+
+/**
+ *
+ */
+public class ProcessChoiceBarBean extends ViewIdPropertyMenuModel {
+
+ private String _maxPathKey;
+ private List<SurveyPage> _processChoiceBarPageList = new ArrayList<SurveyPage>();
+
+ public ProcessChoiceBarBean() {
+ super();
+ this.setViewIdProperty("viewId");
+ this.setProcessChoiceBarPageList();
+
+ }
+
+ public ProcessChoiceBarBean(Object instance, String viewIdProperty) throws IntrospectionException {
+ super(instance, "viewId");
+ setProcessChoiceBarPageList();
+ this.setWrappedData(_processChoiceBarPageList);
+ }
+
+
+ public ProcessChoiceBarBean(Object instance, String viewIdProperty, String maxPathKey) throws IntrospectionException {
+ super(instance, "viewId");
+ setProcessChoiceBarPageList();
+ this.setWrappedData(_processChoiceBarPageList);
+ setMaxPathKey(maxPathKey);
+ }
+
+ private void setProcessChoiceBarPageList() {
+ SurveyPage processChoiceBar1 = new SurveyPage("/components/navigation/processChoiceBar/processChoiceBar.xhtml", "First Step");
+ processChoiceBar1.setOutcome("processChoiceBar1");
+ _processChoiceBarPageList.add(processChoiceBar1);
+
+ SurveyPage processChoiceBar2 = new SurveyPage("/components/navigation/processChoiceBar/processChoiceBar2.xhtml", "Second Step");
+ processChoiceBar2.setOutcome("processChoiceBar2");
+ _processChoiceBarPageList.add(processChoiceBar2);
+
+ SurveyPage processChoiceBar3 = new SurveyPage("/components/navigation/processChoiceBar/processChoiceBar3.xhtml", "Third Step");
+ processChoiceBar3.setOutcome("processChoiceBar3");
+ _processChoiceBarPageList.add(processChoiceBar3);
+
+ ChildPropertyTreeModel childProperty = new ChildPropertyTreeModel();
+ childProperty.setWrappedData(_processChoiceBarPageList);
+ this.setWrappedData(childProperty);
+ }
+
+ public boolean isImmediate() {
+ String maxPathKey = getMaxPathKey();
+ if (maxPathKey == null)
+ return ProcessUtils.isImmediate(this, false);
+ else {
+ Object maxPath = ProcessUtils.getMaxVisitedRowKey(this, maxPathKey);
+ return ProcessUtils.isImmediate(this, maxPath, false);
+ }
+ }
+
+ public boolean isReadOnly() {
+ String maxPathKey = getMaxPathKey();
+ if (maxPathKey == null)
+ return ProcessUtils.isReadOnly(this, true);
+ else {
+ Object maxPath = ProcessUtils.getMaxVisitedRowKey(this, maxPathKey);
+ return ProcessUtils.isReadOnly(this, maxPath, true);
+ }
+ }
+
+ public boolean isVisited() {
+ String maxPathKey = getMaxPathKey();
+ if (maxPathKey == null) {
+ return ProcessUtils.isVisited(this, false);
+ } else {
+ Object maxPath = ProcessUtils.getMaxVisitedRowKey(this, maxPathKey);
+ return ProcessUtils.isVisited(this, maxPath, false);
+ }
+ }
+
+ public void clearMaxPath() {
+ String maxPathKey = getMaxPathKey();
+ if (maxPathKey != null)
+ ProcessUtils.clearMaxPath(maxPathKey);
+ }
+
+ public void setMaxPathKey(String maxPathKey) {
+ _maxPathKey = maxPathKey;
+ }
+
+ public String getMaxPathKey() {
+ return _maxPathKey;
+ }
+
+ public static class SurveyPage implements java.io.Serializable {
+ private String _viewId;
+ private String _outcome;
+ private String _label;
+ private boolean _disabled;
+
+ public SurveyPage() {
+ }
+
+ public SurveyPage(String viewId, String label) {
+ setViewId(viewId);
+ setLabel(label);
+ //setDisabled(false);
+ }
+
+ public void setViewId(String viewId) {
+ _viewId = viewId;
+ }
+
+ public String getViewId() {
+ return _viewId;
+ }
+
+ public void setOutcome(String outcome) {
+ _outcome = outcome;
+ }
+
+
+ public String getOutcome() {
+ return _outcome;
+ }
+
+ public void setLabel(String label) {
+ _label = label;
+ }
+
+
+ public String getLabel() {
+ return _label;
+ }
+
+
+ public void setDisabled(boolean disabled) {
+ _disabled = disabled;
+ }
+
+ public boolean isDisabled() {
+ return _disabled;
+ }
+ }
+
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.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/navigation/processChoiceBar/ProcessChoiceBarBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarDemo.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarDemo.java?rev=903822&view=auto
==============================================================================
--- myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarDemo.java (added)
+++ myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarDemo.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.navigation.processChoiceBar;
+
+import org.apache.myfaces.trinidaddemo.support.impl.AbstractComponentDemo;
+import org.apache.myfaces.trinidaddemo.support.ComponentDemoId;
+
+/**
+ *
+ */
+public class ProcessChoiceBarDemo extends AbstractComponentDemo {
+
+ private static final long serialVersionUID = -1982060956387498310L;
+
+ /**
+ * Constructor.
+ */
+ public ProcessChoiceBarDemo() {
+ super(ComponentDemoId.processChoiceBar, "Process Choice Bar");
+ }
+
+ public String getJsfResourcePath() {
+ return "/components/navigation/processChoiceBar/processChoiceBar.xhtml";
+ }
+
+ public String getSummaryResourcePath() {
+ return "/components/navigation/processChoiceBar/summary.xhtml";
+ }
+
+ public String getBackingBeanResourcePath() {
+ return "/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarBean.java";
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarDemo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/components/navigation/processChoiceBar/ProcessChoiceBarDemo.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/navigation/processChoiceBar/ProcessChoiceBarDemo.java
------------------------------------------------------------------------------
svn:mime-type = text/plain