Author: dsvyatobatsko
Date: 2008-09-08 07:51:03 -0400 (Mon, 08 Sep 2008)
New Revision: 10346
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/IndexBean.java
Log:
brought to up-to-date
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/IndexBean.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/IndexBean.java 2008-09-08
11:08:43 UTC (rev 10345)
+++
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/IndexBean.java 2008-09-08
11:51:03 UTC (rev 10346)
@@ -7,94 +7,105 @@
import java.util.Map;
public class IndexBean {
-
- private List<ComponentItem> list = new ArrayList<ComponentItem>();
-
- public class ComponentItem {
- String name;
- String link;
-
-
- public ComponentItem(String name, String link) {
- this.name = name;
- this.link = link;
- }
- /**
- * @return the name
- */
- public String getName() {
- return name;
- }
+ private List<ComponentItem> list = new ArrayList<ComponentItem>();
- /**
- * @return the link
- */
- public String getLink() {
- return link;
- }
-
- };
-
- private void sortList () {
- String [] names = new String [list.size()];
- Map<String, ComponentItem> map = new HashMap<String, ComponentItem>();
- for (int i=0; i < list.size(); i++) {
- names [i] = list.get(i).name;
- map.put(list.get(i).name, list.get(i));
- }
- Arrays.sort(names);
- list = new ArrayList<ComponentItem>();
- for (String name : names) {
- list.add(map.get(name));
- }
- }
-
- public IndexBean() {
- list.add(new ComponentItem("<a4j:commandButton>",
"ajaxCommandButton/ajaxButtonTest.xhtml"));
- list.add(new ComponentItem("<a4j:commandLink>",
"ajaxCommandLink/ajaxLinkTest.xhtml"));
- list.add(new ComponentItem("<a4j:htmlCommandLink>",
"ajaxHTMLCommandLink/ajaxHTMLLinkTest.xhtml"));
- list.add(new ComponentItem("<a4j:poll>",
"ajaxPoll/ajaxPollTest.xhtml"));
- list.add(new ComponentItem("<a4j:region>",
"ajaxRegion/ajaxRegionTest.xhtml"));
- list.add(new ComponentItem("<rich:calendar>",
"calendar/calendarTest.xhtml"));
- list.add(new ComponentItem("<rich:combobox>",
"comboBox/comboBoxTest.xhtml"));
- list.add(new ComponentItem("<rich:contextMenu>",
"contextMenu/contextMenu.xhtml"));
- list.add(new ComponentItem("<rich:dataTable>",
"dataTable/dataTableTest.xhtml"));
- list.add(new ComponentItem("<rich:dropDownMenu>",
"dropDownMenu/dropDownMenuTest.xhtml"));
- list.add(new ComponentItem("<rich:inplaceSelect>",
"inplaceSelect/inplaceSelectTest.xhtml"));
- list.add(new ComponentItem("<rich:inputNumberSpinner>",
"inputNumberSpinner/inputNumberSpinnerTest.xhtml"));
- list.add(new ComponentItem("<a4j:keepAlive>",
"keepAlive/keepAliveTest.xhtml"));
- list.add(new ComponentItem("<a4j:loadScript>",
"loadScript/loadScriptTest.xhtml"));
- list.add(new ComponentItem("<a4j:loadStyle>",
"loadStyle/loadStyleTest.xhtml"));
- list.add(new ComponentItem("<rich:orderingList>",
"orderingList/orderingListTest.xhtml"));
- list.add(new ComponentItem("<rich:panelBar>",
"panelBar/panelBarTest.xhtml"));
- list.add(new ComponentItem("<rich:panelMenu>",
"panelMenu/panelMenuTest.xhtml"));
- list.add(new ComponentItem("<rich:pickList>",
"pickList/pickListTest.xhtml"));
- list.add(new ComponentItem("<rich:progressBar>",
"progressBar/progressBarTest.xhtml"));
- list.add(new ComponentItem("<rich:simpleTogglePanel>",
"simpleTogglePanel/simpleTogglePanel.xhtml"));
- list.add(new ComponentItem("<rich:tabPanel>",
"tabPanel/tabPanelTest.xhtml"));
- list.add(new ComponentItem("<rich:togglePanel>",
"togglePanel/togglePanelTest.xhtml"));
- list.add(new ComponentItem("<a4j:actionParam>",
"actionParam/actionParam.xhtml"));
- list.add(new ComponentItem("<a4j:form>",
"ajaxForm/ajaxFormTest.xhtml"));
- list.add(new ComponentItem("<a4j:ajaxListener>",
"ajaxListener/ajaxListenerTest.xhtml"));
- list.add(new ComponentItem("<a4j:outputPanel>",
"ajaxOutputPanel/ajaxOutputPanelTest.xhtml"));
- list.add(new ComponentItem("<a4j:support>",
"ajaxOutputPanel/ajaxOutputPanelTest.xhtml"));
- list.add(new ComponentItem("<a4j:jsFunction>",
"jsFunction/jsFunctionTest.xhtml"));
- list.add(new ComponentItem("<rich:spacer>",
"spacer/spacerTest.xhtml"));
- list.add(new ComponentItem("<a4j:loadBundle>",
"loadBundle/loadBundle.xhtml"));
- list.add(new ComponentItem("<rich:toolTip>",
"toolTip/toolTip.xhtml"));
- list.add(new ComponentItem("<rich:listShuttle>",
"listShuttle/listShuttleTest.xhtml"));
-
- sortList();
-
- }
-
- /**
- * @return the list
- */
- public List<ComponentItem> getList() {
- return list;
- }
+ public class ComponentItem {
+ String name;
+ String link;
+ public ComponentItem(String name, String link) {
+ this.name = name;
+ this.link = link;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @return the link
+ */
+ public String getLink() {
+ return link;
+ }
+
+ };
+
+ private void sortList() {
+ String[] names = new String[list.size()];
+ Map<String, ComponentItem> map = new HashMap<String,
ComponentItem>();
+ for (int i = 0; i < list.size(); i++) {
+ names[i] = list.get(i).name;
+ map.put(list.get(i).name, list.get(i));
+ }
+ Arrays.sort(names);
+ list = new ArrayList<ComponentItem>();
+ for (String name : names) {
+ list.add(map.get(name));
+ }
+ }
+
+ public IndexBean() {
+ list.add(new ComponentItem("<a4j:commandButton>",
"ajaxCommandButton/ajaxButtonTest.xhtml"));
+ list.add(new ComponentItem("<a4j:commandLink>",
"ajaxCommandLink/ajaxLinkTest.xhtml"));
+ list.add(new ComponentItem("<a4j:htmlCommandLink>",
"ajaxHTMLCommandLink/ajaxHTMLLinkTest.xhtml"));
+ list.add(new ComponentItem("<a4j:poll>",
"ajaxPoll/ajaxPollTest.xhtml"));
+ list.add(new ComponentItem("<a4j:region>",
"ajaxRegion/ajaxRegionTest.xhtml"));
+ list.add(new ComponentItem("<rich:calendar>",
"calendar/calendarTest.xhtml"));
+ list.add(new ComponentItem("<rich:combobox>",
"comboBox/comboBoxTest.xhtml"));
+ list.add(new ComponentItem("<rich:contextMenu>",
"contextMenu/contextMenu.xhtml"));
+ list.add(new ComponentItem("<rich:dataTable>",
"dataTable/dataTableTest.xhtml"));
+ list.add(new ComponentItem("<rich:dropDownMenu>",
"dropDownMenu/dropDownMenuTest.xhtml"));
+ list.add(new ComponentItem("<rich:inplaceSelect>",
"inplaceSelect/inplaceSelectTest.xhtml"));
+ list.add(new ComponentItem("<rich:inputNumberSpinner>",
"inputNumberSpinner/inputNumberSpinnerTest.xhtml"));
+ list.add(new ComponentItem("<a4j:keepAlive>",
"keepAlive/keepAliveTest.xhtml"));
+ list.add(new ComponentItem("<a4j:loadScript>",
"loadScript/loadScriptTest.xhtml"));
+ list.add(new ComponentItem("<a4j:loadStyle>",
"loadStyle/loadStyleTest.xhtml"));
+ list.add(new ComponentItem("<rich:orderingList>",
"orderingList/orderingListTest.xhtml"));
+ list.add(new ComponentItem("<rich:panelBar>",
"panelBar/panelBarTest.xhtml"));
+ list.add(new ComponentItem("<rich:panelMenu>",
"panelMenu/panelMenuTest.xhtml"));
+ list.add(new ComponentItem("<rich:pickList>",
"pickList/pickListTest.xhtml"));
+ list.add(new ComponentItem("<rich:progressBar>",
"progressBar/progressBarTest.xhtml"));
+ list.add(new ComponentItem("<rich:simpleTogglePanel>",
"simpleTogglePanel/simpleTogglePanel.xhtml"));
+ list.add(new ComponentItem("<rich:tabPanel>",
"tabPanel/tabPanelTest.xhtml"));
+ list.add(new ComponentItem("<rich:togglePanel>",
"togglePanel/togglePanelTest.xhtml"));
+ list.add(new ComponentItem("<a4j:actionParam>",
"actionParam/actionParam.xhtml"));
+ list.add(new ComponentItem("<a4j:form>",
"ajaxForm/ajaxFormTest.xhtml"));
+ list.add(new ComponentItem("<a4j:ajaxListener>",
"ajaxListener/ajaxListenerTest.xhtml"));
+ list.add(new ComponentItem("<a4j:outputPanel>",
"ajaxOutputPanel/ajaxOutputPanelTest.xhtml"));
+ list.add(new ComponentItem("<a4j:support>",
"ajaxSupport/ajaxSupport.xhtml"));
+ list.add(new ComponentItem("<a4j:jsFunction>",
"jsFunction/jsFunctionTest.xhtml"));
+ list.add(new ComponentItem("<rich:spacer>",
"spacer/spacerTest.xhtml"));
+ list.add(new ComponentItem("<a4j:loadBundle>",
"loadBundle/loadBundle.xhtml"));
+ list.add(new ComponentItem("<rich:toolTip>",
"toolTip/toolTip.xhtml"));
+ list.add(new ComponentItem("<rich:listShuttle>",
"listShuttle/listShuttleTest.xhtml"));
+ list.add(new ComponentItem("<a4j:include>",
"ajaxInclude/ajaxIncludeTest.xhtml"));
+ list.add(new ComponentItem("<a4j:log>",
"ajaxLog/ajaxLogTest.xhtml"));
+ list.add(new ComponentItem("<a4j:mediaOutput>",
"ajaxMediaOutput/ajaxMediaOutputTest.xhtml"));
+ list.add(new ComponentItem("<a4j:push>",
"ajaxPush/ajaxPushTest.xhtml"));
+ list.add(new ComponentItem("<a4j:repeat>",
"ajaxRepeat/ajaxRepeatTest.xhtml"));
+ list.add(new ComponentItem("<a4j:status>",
"ajaxStatus/ajaxStatusTest.xhtml"));
+ list.add(new ComponentItem("<rich:columns>",
"columns/columnsTest.xhtml"));
+ list.add(new ComponentItem("<rich:dataFilterSlider>",
"dataFilterSlider/dataFilterSliderTest.xhtml"));
+ list.add(new ComponentItem("<rich:inplaceInput>",
"inplaceInput/inplaceInputTest.xhtml"));
+ list.add(new ComponentItem("<rich:inputNumberSlider>",
"inputNumberSlider/inputNumberSliderTest.xhtml"));
+ list.add(new ComponentItem("<rich:modalPanel>",
"modalPanel/modalPanelTest.xhtml"));
+ list.add(new ComponentItem("<rich:toolBar>",
"toolBar/toolBarTest.xhtml"));
+
+ sortList();
+
+ }
+
+ /**
+ * @return the list
+ */
+ public List<ComponentItem> getList() {
+ return list;
+ }
+
}