myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r955441 - in /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle: AbstractToggleGroup.java AbstractTogglePanel.java
Date Thu, 17 Jun 2010 01:38:18 GMT
Author: lu4242
Date: Thu Jun 17 01:38:17 2010
New Revision: 955441

URL: http://svn.apache.org/viewvc?rev=955441&view=rev
Log:
use interfaces for properties when possible

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractToggleGroup.java
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractTogglePanel.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractToggleGroup.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractToggleGroup.java?rev=955441&r1=955440&r2=955441&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractToggleGroup.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractToggleGroup.java
Thu Jun 17 01:38:17 2010
@@ -21,6 +21,9 @@ package org.apache.myfaces.custom.toggle
 
 import javax.faces.component.html.HtmlPanelGroup;
 
+import org.apache.myfaces.component.EventAware;
+import org.apache.myfaces.component.UniversalProperties;
+
 /**
  * Container class allows user to toggle between view/edit mode.
  * 
@@ -36,6 +39,7 @@ import javax.faces.component.html.HtmlPa
  * 
  */
 public abstract class AbstractToggleGroup extends HtmlPanelGroup
+    implements EventAware, UniversalProperties
 {
     public static final String COMPONENT_TYPE = "org.apache.myfaces.ToggleGroup";
     public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.ToggleGroup";
@@ -47,97 +51,6 @@ public abstract class AbstractToggleGrou
     }
     
     /**
-     * HTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
-     * 
-     * @JSFProperty
-     */
-    public abstract String getDir();
-
-    /**
-     * HTML: The base language of this document.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getLang();
-
-    /**
-     * HTML: An advisory title for this element.  Often used by the user agent as a tooltip.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getTitle();
-
-    /**
-     * HTML: Script to be invoked when the element is clicked.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnclick();
-
-    /**
-     * HTML: Script to be invoked when the element is double-clicked.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOndblclick();
-
-    /**
-     * HTML: Script to be invoked when a key is pressed down over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnkeydown();
-
-    /**
-     * HTML: Script to be invoked when a key is pressed over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnkeypress();
-
-    /**
-     * HTML: Script to be invoked when a key is released over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnkeyup();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is pressed over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmousedown();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is moved while it is in this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmousemove();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is moves out of this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmouseout();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is moved into this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmouseover();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is released over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmouseup();
-    
-    /**
      * HTML: Flag to define the toggle status.
      * 
      * @JSFProperty

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractTogglePanel.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractTogglePanel.java?rev=955441&r1=955440&r2=955441&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractTogglePanel.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/toggle/AbstractTogglePanel.java
Thu Jun 17 01:38:17 2010
@@ -22,6 +22,9 @@ package org.apache.myfaces.custom.toggle
 import javax.faces.component.html.HtmlPanelGroup;
 import javax.faces.context.FacesContext;
 
+import org.apache.myfaces.component.EventAware;
+import org.apache.myfaces.component.UniversalProperties;
+
 /**
  * Container class allows user to toggle between view/edit mode.
  * 
@@ -38,6 +41,7 @@ import javax.faces.context.FacesContext;
  * 
  */
 public abstract class AbstractTogglePanel extends HtmlPanelGroup
+    implements EventAware, UniversalProperties
 {
     public static final String COMPONENT_TYPE = "org.apache.myfaces.TogglePanel";
     public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.TogglePanel";
@@ -82,96 +86,4 @@ public abstract class AbstractTogglePane
         super.processUpdates(context);
         this.setToggled(false);
     }
-        
-    /**
-     * HTML: The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
-     * 
-     * @JSFProperty
-     */
-    public abstract String getDir();
-
-    /**
-     * HTML: The base language of this document.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getLang();
-
-    /**
-     * HTML: An advisory title for this element.  Often used by the user agent as a tooltip.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getTitle();
-
-    /**
-     * HTML: Script to be invoked when the element is clicked.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnclick();
-
-    /**
-     * HTML: Script to be invoked when the element is double-clicked.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOndblclick();
-
-    /**
-     * HTML: Script to be invoked when a key is pressed down over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnkeydown();
-
-    /**
-     * HTML: Script to be invoked when a key is pressed over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnkeypress();
-
-    /**
-     * HTML: Script to be invoked when a key is released over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnkeyup();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is pressed over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmousedown();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is moved while it is in this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmousemove();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is moves out of this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmouseout();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is moved into this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmouseover();
-
-    /**
-     * HTML: Script to be invoked when the pointing device is released over this element.
-     * 
-     * @JSFProperty
-     */
-    public abstract String getOnmouseup();
-    
 }



Mime
View raw message