Author: dbiatenia
Date: 2007-07-19 06:57:00 -0400 (Thu, 19 Jul 2007)
New Revision: 1693
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp
Log:
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java 2007-07-19
09:42:45 UTC (rev 1692)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/java/org/richfaces/Bean.java 2007-07-19
10:57:00 UTC (rev 1693)
@@ -20,6 +20,9 @@
*/
package org.richfaces;
+
+import java.util.Date;
+
/**
* @author $Autor$
*
@@ -30,6 +33,11 @@
String toolTipContent = "ToolTip content";
+ String text1 = "ToolTip content1";
+ String text2 = "ToolTip content2";
+ String text3 = "ToolTip content3";
+
+
public String getText() {
return text;
}
@@ -39,13 +47,41 @@
}
public String getToolTipContent() {
+// toolTipContent += "12";
+// System.out.println("start - " + new Date(System.currentTimeMillis()));
+// for(int i=0;i<100000;i++){
+// double a = Math.cos(i+(Math.asin(1.334)));
+// }
+// System.out.println("end - " + new Date(System.currentTimeMillis()));
return toolTipContent;
}
public void setToolTipContent(String toolTipContent) {
this.toolTipContent = toolTipContent;
}
+
+ public String getText1() {
+ return text1;
+ }
+
+ public void setText1(String text1) {
+ this.text1 = text1;
+ }
+
+ public String getText2() {
+ return text2;
+ }
+
+ public void setText2(String text2) {
+ this.text2 = text2;
+ }
+
+ public String getText3() {
+ return text3;
+ }
+
+ public void setText3(String text3) {
+ this.text3 = text3;
+ }
-
-
}
\ No newline at end of file
Modified:
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-19
09:42:45 UTC (rev 1692)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/WEB-INF/faces-config.xml 2007-07-19
10:57:00 UTC (rev 1693)
@@ -5,7 +5,7 @@
<managed-bean>
<managed-bean-name>bean</managed-bean-name>
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
- <managed-bean-scope>request</managed-bean-scope>
+ <managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>skinBean</managed-bean-name>
Modified: branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp
===================================================================
---
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-19
09:42:45 UTC (rev 1692)
+++
branches/3.0.2/sandbox-samples/tooltip-sample/src/main/webapp/pages/index.jsp 2007-07-19
10:57:00 UTC (rev 1693)
@@ -9,19 +9,25 @@
<body>
<f:view>
<h:form>
- <%--h:selectOneRadio binding="#{skinBean.component}" />
- <h:commandLink action="#{skinBean.change}" value="set skin"
/--%>
+ <h:selectOneRadio binding="#{skinBean.component}" />
+ <h:commandLink action="#{skinBean.change}" value="set skin"
/>
<f:verbatim>
<br/><br/>
</f:verbatim>
- <h:inputText value="Input text with tooltip" id="inp1"
size="50">
- <tt:toolTip id="tt" followMouse="true"
direction="top-right" mode="client">
- <%--f:facet name="defaultContent"><f:verbatim>DEFAULT
VALUE</f:verbatim>
- </f:facet--%>
+ <h:inputText value="Ajax mode Tooltip with default content"
id="inp1" size="50">
+ <tt:toolTip id="tt" followMouse="false"
direction="top-right" mode="ajax"
value="#{bean.toolTipContent}" horizontalOffset="20"
verticalOffset="20">
+ <f:facet name="defaultContent"><f:verbatim>DEFAULT
CONTENT</f:verbatim>
+ </f:facet>
<h:outputText id="ot"
value="#{bean.toolTipContent}"></h:outputText>
+ <h:commandLink value="Click here to close
window..."></h:commandLink>
</tt:toolTip>
</h:inputText>
-
+
+ <h:commandButton value="Tooltip with followMouse mode"
id="btn">
+ <tt:toolTip value="Tooltip text"
followMouse="true"></tt:toolTip>
+ </h:commandButton>
+
+ <%--a4j:log popup="false" level="ALL"></a4j:log--%>
</h:form>
</f:view>
Show replies by date