Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/webobjects/woextensions/JSTextFlyover.java


1   /*
2    * JSTextFlyover.java
3    * © Copyright 2001 Apple Computer, Inc. All rights reserved.
4    * This a modified version.
5    * Original license: http://www.opensource.apple.com/apsl/
6    */
7   
8   package com.webobjects.woextensions;
9   
10  import com.webobjects.appserver.*;
11  import com.webobjects.foundation.*;
12  
13  
14  public class JSTextFlyover extends JSComponent {
15      public JSTextFlyover(WOContext aContext)  {
16          super(aContext);
17      }
18  
19      public String mouseOver() {
20          // Return the highlighted color when the mouse is over the text
21          return "window.event.srcElement.style.color = '"+valueForBinding("selectedColor")+"'";
22      }
23  
24  
25      public String mouseOut() {
26          // Return the un-highlighted color when the mouse leaves
27          return "window.event.srcElement.style.color = '"+valueForBinding("unselectedColor")+"'";
28      }
29  }