Author: pyaschenko
Date: 2011-01-19 11:36:40 -0500 (Wed, 19 Jan 2011)
New Revision: 21087
Added:
trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java
Log:
tooltip bean for developer demo
Added: trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java
===================================================================
--- trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java
(rev 0)
+++ trunk/examples/output-demo/src/main/java/org/richfaces/TooltipBean.java 2011-01-19
16:36:40 UTC (rev 21087)
@@ -0,0 +1,73 @@
+/**
+ * @author Pavel Yaschenko
+ *
+ */
+
+package org.richfaces;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+
+import org.richfaces.component.Positioning;
+
+@ManagedBean
+@SessionScoped
+public class TooltipBean implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -2860886265782541618L;
+ private int tooltipCounter = 0;
+ private Positioning jointPoint = Positioning.DEFAULT;
+ private Positioning direction = Positioning.DEFAULT;
+ private int horizontalOffset = 0;
+ private int verticalOffset = 0;
+ private Positioning[] positioningValues = Positioning.values();
+
+ public int getTooltipCounter() {
+ return tooltipCounter++;
+ }
+
+ public Date getTooltipDate() {
+ return new Date();
+ }
+
+ public void setJointPoint(Positioning jointPoint) {
+ this.jointPoint = jointPoint;
+ }
+
+ public Positioning getJointPoint() {
+ return jointPoint;
+ }
+
+ public void setDirection(Positioning direction) {
+ this.direction = direction;
+ }
+
+ public Positioning getDirection() {
+ return direction;
+ }
+
+ public void setHorizontalOffset(int horizontalOffset) {
+ this.horizontalOffset = horizontalOffset;
+ }
+
+ public int getHorizontalOffset() {
+ return horizontalOffset;
+ }
+
+ public void setVerticalOffset(int verticalOffset) {
+ this.verticalOffset = verticalOffset;
+ }
+
+ public int getVerticalOffset() {
+ return verticalOffset;
+ }
+
+ public Positioning[] getPositioningValues() {
+ return positioningValues;
+ }
+}