Author: msorokin
Date: 2009-03-20 13:38:55 -0400 (Fri, 20 Mar 2009)
New Revision: 13077
Added:
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/GlobalQueue.java
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuBean.java
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuState.java
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/Skin.java
Log:
https://jira.jboss.org/jira/browse/RF-6419
added some features
Added:
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/GlobalQueue.java
===================================================================
---
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/GlobalQueue.java
(rev 0)
+++
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/GlobalQueue.java 2009-03-20
17:38:55 UTC (rev 13077)
@@ -0,0 +1,21 @@
+package org.docs.util;
+
+public class GlobalQueue {
+
+
+ private boolean globalQueue;
+
+ public boolean isGlobalQueue() {
+ return globalQueue;
+ }
+
+ public void setGlobalQueue(boolean globalQueue) {
+ this.globalQueue = globalQueue;
+ }
+
+
+
+
+
+
+}
Added:
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuBean.java
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuBean.java
(rev 0)
+++
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuBean.java 2009-03-20
17:38:55 UTC (rev 13077)
@@ -0,0 +1,22 @@
+package org.docs.util;
+
+import javax.faces.event.ActionEvent;
+
+
+
+public class MenuBean {
+
+ private MenuState menuState;
+
+ public MenuState getMenuState() {
+ return menuState;
+ }
+ public void setMenuState(MenuState menuState) {
+ this.menuState = menuState;
+ }
+ public MenuBean() {}
+
+ public void select (ActionEvent event) {
+ menuState.setSelectedMenuItem(event.getComponent().getId());
+ }
+}
\ No newline at end of file
Added:
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuState.java
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuState.java
(rev 0)
+++
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/MenuState.java 2009-03-20
17:38:55 UTC (rev 13077)
@@ -0,0 +1,40 @@
+package org.docs.util;
+
+import java.util.HashMap;
+import java.util.Map;
+import javax.annotation.PostConstruct;
+
+
+public class MenuState {
+
+
+ private Map <String, Boolean> menu;
+
+ private String selectedMenuItem;
+
+ public String getSelectedMenuItem() {
+ return selectedMenuItem;
+ }
+ public Map<String, Boolean> getMenu() {
+ return menu;
+ }
+ public void setMenu(Map<String, Boolean> menu) {
+ this.menu = menu;
+ }
+ public void setSelectedMenuItem(String selectedMenuItem) {
+ this.selectedMenuItem = selectedMenuItem;
+ }
+ public MenuState() {
+ }
+ @PostConstruct
+ public void init () {
+ menu = new HashMap <String, Boolean>();
+ menu.put("group1", false);
+ menu.put("group2", false);
+ menu.put("group3", false);
+ menu.put("group4", false);
+ }
+
+
+
+}
Added: trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/Skin.java
===================================================================
--- trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/Skin.java
(rev 0)
+++
trunk/test-applications/richfaces-docs/web/src/main/java/org/docs/util/Skin.java 2009-03-20
17:38:55 UTC (rev 13077)
@@ -0,0 +1,24 @@
+package org.docs.util;
+
+public class Skin {
+ private String skin;
+ private String standardSkinning;
+
+
+
+
+ public String getStandardSkinning() {
+ return standardSkinning;
+ }
+ public void setStandardSkinning(String standardSkinning) {
+ this.standardSkinning = standardSkinning;
+ }
+ public String getSkin() {
+ return skin;
+ }
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
+
+}