click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r928362 - in /click/trunk/click/framework/src/org/apache/click/control: AbstractContainer.java AbstractControl.java FieldSet.java
Date Sun, 28 Mar 2010 09:15:28 GMT
Author: sabob
Date: Sun Mar 28 09:15:25 2010
New Revision: 928362

URL: http://svn.apache.org/viewvc?rev=928362&view=rev
Log:
added override annotations

Modified:
    click/trunk/click/framework/src/org/apache/click/control/AbstractContainer.java
    click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java
    click/trunk/click/framework/src/org/apache/click/control/FieldSet.java

Modified: click/trunk/click/framework/src/org/apache/click/control/AbstractContainer.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/AbstractContainer.java?rev=928362&r1=928361&r2=928362&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/AbstractContainer.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/AbstractContainer.java Sun Mar
28 09:15:25 2010
@@ -192,6 +192,7 @@ public abstract class AbstractContainer 
      *
      * @return the estimated rendered control size in characters
      */
+    @Override
     public int getControlSizeEst() {
         int size = 20;
 
@@ -211,6 +212,7 @@ public abstract class AbstractContainer 
      *
      * @return true to continue Page event processing or false otherwise
      */
+    @Override
     public boolean onProcess() {
 
         boolean continueProcessing = true;
@@ -229,6 +231,7 @@ public abstract class AbstractContainer 
     /**
      * @see org.apache.click.Control#onDestroy()
      */
+    @Override
     public void onDestroy() {
         for (Control control : getControls()) {
             try {
@@ -242,6 +245,7 @@ public abstract class AbstractContainer 
    /**
     * @see org.apache.click.Control#onInit()
     */
+    @Override
     public void onInit() {
         super.onInit();
         for (Control control : getControls()) {
@@ -252,6 +256,7 @@ public abstract class AbstractContainer 
    /**
     * @see org.apache.click.Control#onRender()
     */
+    @Override
     public void onRender() {
         for (Control control : getControls()) {
             control.onRender();
@@ -266,6 +271,7 @@ public abstract class AbstractContainer 
      * @return the HTML includes statements for the container and child Controls,
      * or null if no includes are available
      */
+    @Override
     public String getHtmlImports() {
         if (hasControls()) {
             HtmlStringBuffer buffer = new HtmlStringBuffer(0);
@@ -291,6 +297,7 @@ public abstract class AbstractContainer 
      *
      * @param buffer the specified buffer to render the control's output to
      */
+    @Override
     public void render(HtmlStringBuffer buffer) {
 
         //If tag is set, render it
@@ -321,6 +328,7 @@ public abstract class AbstractContainer 
      *
      * @return the HTML representation of this control
      */
+    @Override
     public String toString() {
         HtmlStringBuffer buffer = new HtmlStringBuffer(getControlSizeEst());
         render(buffer);
@@ -335,6 +343,7 @@ public abstract class AbstractContainer 
      * @param tagName the name of the tag to close
      * @param buffer the buffer to append the output to
      */
+    @Override
     protected void renderTagEnd(String tagName, HtmlStringBuffer buffer) {
         buffer.elementEnd(tagName);
     }

Modified: click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java?rev=928362&r1=928361&r2=928362&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/AbstractControl.java Sun Mar
28 09:15:25 2010
@@ -832,6 +832,7 @@ public abstract class AbstractControl im
      *
      * @return the HTML representation of this control
      */
+    @Override
     public String toString() {
         if (getTag() == null) {
             return "";

Modified: click/trunk/click/framework/src/org/apache/click/control/FieldSet.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/FieldSet.java?rev=928362&r1=928361&r2=928362&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/FieldSet.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/FieldSet.java Sun Mar 28 09:15:25
2010
@@ -94,11 +94,11 @@ import org.apache.click.util.HtmlStringB
  */
 public class FieldSet extends Field implements Container {
 
-    // -------------------------------------------------------------- Constants
+    // Constants --------------------------------------------------------------
 
     private static final long serialVersionUID = 1L;
 
-    // ----------------------------------------------------- Instance Variables
+    // Instance Variables -----------------------------------------------------
 
     /** The list of controls. */
     protected List controls;
@@ -129,7 +129,7 @@ public class FieldSet extends Field impl
      */
     protected Integer columns;
 
-    // ----------------------------------------------------------- Constructors
+    // Constructors -----------------------------------------------------------
 
     /**
      * Create a FieldSet with the given name.
@@ -159,7 +159,7 @@ public class FieldSet extends Field impl
     public FieldSet() {
     }
 
-    // --------------------------------------------------------- Public Methods
+    // Public Methods ---------------------------------------------------------
 
     /**
      * Add a Field to the FieldSet at the specified index and return the added
@@ -424,6 +424,7 @@ public class FieldSet extends Field impl
      *
      * @return this controls html tag
      */
+    @Override
     public String getTag() {
         return "fieldset";
     }
@@ -439,6 +440,7 @@ public class FieldSet extends Field impl
      *
      * @return true if the Field is disabled
      */
+    @Override
     public boolean isDisabled() {
         Form form = getForm();
         if (form != null && form.isDisabled()) {
@@ -458,6 +460,7 @@ public class FieldSet extends Field impl
      *
      * @param disabled the Field disabled flag
      */
+    @Override
     public void setDisabled(boolean disabled) {
         super.setDisabled(disabled);
     }
@@ -468,6 +471,7 @@ public class FieldSet extends Field impl
      *
      * @return true if the FieldSet is a readonly
      */
+    @Override
     public boolean isReadonly() {
         Form form = getForm();
         if (form != null && form.isReadonly()) {
@@ -483,6 +487,7 @@ public class FieldSet extends Field impl
      *
      * @param readonly the FieldSet readonly flag
      */
+    @Override
     public void setReadonly(boolean readonly) {
         super.setReadonly(readonly);
     }
@@ -589,6 +594,7 @@ public class FieldSet extends Field impl
      *
      * @param form FieldSet's parent <tt>Form</tt>
      */
+    @Override
     public void setForm(Form form) {
         this.form = form;
 
@@ -607,9 +613,12 @@ public class FieldSet extends Field impl
      *
      * @see org.apache.click.Control#getHtmlImports()
      *
+     * @deprecated use {@link #getHeadElements()} instead
+     *
      * @return the HTML head import statements for the contained field stylesheet
      * and JavaScript files
      */
+    @Override
     public String getHtmlImports() {
         if (hasControls()) {
             HtmlStringBuffer buffer = new HtmlStringBuffer(512);
@@ -738,6 +747,7 @@ public class FieldSet extends Field impl
      * @return true if all Controls were processed, or false if any Control
      * returned false
      */
+    @Override
     public boolean onProcess() {
         if (hasControls()) {
             for (Iterator it = getControls().iterator(); it.hasNext();) {
@@ -759,6 +769,7 @@ public class FieldSet extends Field impl
     /**
      * @see org.apache.click.Control#onDestroy()
      */
+    @Override
     public void onDestroy() {
         if (hasControls()) {
             for (int i = 0, size = getControls().size(); i < size; i++) {
@@ -775,6 +786,7 @@ public class FieldSet extends Field impl
    /**
     * @see org.apache.click.Control#onInit()
     */
+    @Override
     public void onInit() {
         super.onInit();
         if (hasControls()) {
@@ -788,6 +800,7 @@ public class FieldSet extends Field impl
    /**
     * @see org.apache.click.Control#onRender()
     */
+    @Override
     public void onRender() {
         if (hasControls()) {
             for (int i = 0, size = getControls().size(); i < size; i++) {
@@ -804,6 +817,7 @@ public class FieldSet extends Field impl
      *
      * @param buffer the specified buffer to render the control's output to
      */
+    @Override
     public void render(HtmlStringBuffer buffer) {
 
         if (getShowBorder()) {
@@ -864,13 +878,14 @@ public class FieldSet extends Field impl
      *
      * @return the HTML representation of this control
      */
+    @Override
     public String toString() {
         HtmlStringBuffer buffer = new HtmlStringBuffer(getControlSizeEst());
         render(buffer);
         return buffer.toString();
     }
 
-    //------------------------------------------------------- protected methods
+    // Protected methods -------------------------------------------------------
 
     /**
      * Return the map of controls where each map's key / value pair will consist
@@ -892,6 +907,7 @@ public class FieldSet extends Field impl
      *
      * @return the estimated rendered control size in characters
      */
+    @Override
     protected int getControlSizeEst() {
         int size = 20;
 
@@ -1162,7 +1178,7 @@ public class FieldSet extends Field impl
         }
     }
 
-    // -------------------------------------------------------- Private Methods
+    // Private Methods --------------------------------------------------------
 
     /**
      * Return true if the control is hidden, false otherwise.



Mime
View raw message