1 15 package org.apache.tapestry.components; 16 17 23 24 public class LinkEventType 25 { 26 private final String _name; 27 28 private final String _attributeName; 29 30 33 34 public static final LinkEventType MOUSE_OVER = new LinkEventType("MOUSE_OVER", "onMouseOver"); 35 36 39 40 public static final LinkEventType MOUSE_OUT = new LinkEventType("MOUSE_OUT", "onMouseOut"); 41 42 47 48 public static final LinkEventType CLICK = new LinkEventType("CLICK", "onClick"); 49 50 55 56 public static final LinkEventType DOUBLE_CLICK = new LinkEventType("DOUBLE_CLICK", "onDblClick"); 57 58 63 64 public static final LinkEventType MOUSE_DOWN = new LinkEventType("MOUSE_DOWN", "onMouseDown"); 65 66 71 72 public static final LinkEventType MOUSE_UP = new LinkEventType("MOUSE_UP", "onMouseUp"); 73 74 82 83 protected LinkEventType(String name, String attributeName) 84 { 85 86 _name = name; 87 _attributeName = attributeName; 88 } 89 90 93 94 public String getAttributeName() 95 { 96 return _attributeName; 97 } 98 99 public String toString() 100 { 101 return "LinkEventType[" + _name + "]"; 102 } 103 } | Popular Tags |