You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by gs...@apache.org on 2007/10/15 23:23:31 UTC
svn commit: r584925 [2/34] - in /wicket/trunk/jdk-1.4/wicket/src:
main/java/org/apache/wicket/ main/java/org/apache/wicket/ajax/
main/java/org/apache/wicket/ajax/calldecorator/
main/java/org/apache/wicket/ajax/form/
main/java/org/apache/wicket/ajax/mar...
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AbstractRestartResponseException.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AbstractRestartResponseException.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AbstractRestartResponseException.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AbstractRestartResponseException.java Mon Oct 15 14:21:25 2007
@@ -17,8 +17,7 @@
package org.apache.wicket;
/**
- * An exception that causes the request cycle to immediately switch to respond
- * stage.
+ * An exception that causes the request cycle to immediately switch to respond stage.
*
* @author Igor Vaynberg (ivaynberg)
* @author Jonathan Locke
@@ -36,7 +35,7 @@
public AbstractRestartResponseException()
{
RequestCycle rc = RequestCycle.get();
- if(rc != null)
+ if (rc != null)
{
rc.getResponse().reset();
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AccessStackPageMap.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AccessStackPageMap.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AccessStackPageMap.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/AccessStackPageMap.java Mon Oct 15 14:21:25 2007
@@ -25,13 +25,12 @@
/**
- * A container for pages held in the session. IPageMap is a parameter to several
- * methods in the Wicket API. You can get a IPageMap by name from a Session with
- * Session.getPageMap(String pageMapName) or more conveniently with
- * PageMap.forName(String pageMapName). But you should not hold onto a reference
- * to the pagemap (just as you should not hold onto a reference to your Session
- * but should get it each time you need it instead). Instead, create a strongly
- * typed accessor method like this:
+ * A container for pages held in the session. IPageMap is a parameter to several methods in the
+ * Wicket API. You can get a IPageMap by name from a Session with Session.getPageMap(String
+ * pageMapName) or more conveniently with PageMap.forName(String pageMapName). But you should not
+ * hold onto a reference to the pagemap (just as you should not hold onto a reference to your
+ * Session but should get it each time you need it instead). Instead, create a strongly typed
+ * accessor method like this:
*
* <pre>
* public IPageMap getMyPageMap()
@@ -40,8 +39,7 @@
* }
* </pre>
*
- * If the page map with the given name is not found, one will be automatically
- * created.
+ * If the page map with the given name is not found, one will be automatically created.
*
* @author Jonathan Locke
*/
@@ -142,8 +140,8 @@
}
/**
- * Returns a stack of PageMap.Access entries pushed in the order that the
- * pages and versions were accessed.
+ * Returns a stack of PageMap.Access entries pushed in the order that the pages and versions
+ * were accessed.
*
* @return Stack containing ids of entries in access order.
*/
@@ -161,11 +159,10 @@
}
/**
- * Gets the most recently accessed page map entry off the top of the entry
- * access stack. This is guaranteed to be the most recently accessed entry
- * IF AND ONLY IF the user just came from a stateful page. If the user could
- * get to the current page from a stateless page, this method may not work
- * if the user uses the back button.
+ * Gets the most recently accessed page map entry off the top of the entry access stack. This is
+ * guaranteed to be the most recently accessed entry IF AND ONLY IF the user just came from a
+ * stateful page. If the user could get to the current page from a stateless page, this method
+ * may not work if the user uses the back button.
*
* @return Previous pagemap entry in terms of access
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IClusterable.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IClusterable.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IClusterable.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IClusterable.java Mon Oct 15 14:21:25 2007
@@ -19,10 +19,9 @@
import java.io.Serializable;
/**
- * Wicket version of {@link Serializable}. All Wicket interfaces and base
- * classes that should typically be clustered should implement this interface.
- * This communicates their intent and also makes configuration for <a
- * href="http://terracotta.org/">Terracotta</a> a lot easier.
+ * Wicket version of {@link Serializable}. All Wicket interfaces and base classes that should
+ * typically be clustered should implement this interface. This communicates their intent and also
+ * makes configuration for <a href="http://terracotta.org/">Terracotta</a> a lot easier.
*
* @author eelcohillenius
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IDestroyer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IDestroyer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IDestroyer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IDestroyer.java Mon Oct 15 14:21:25 2007
@@ -17,15 +17,14 @@
package org.apache.wicket;
/**
- * Optional interface for {@link IInitializer initializers} that can clean up
- * stuff initializers created. Initializers simple have to implement this
- * interface and do their thing in {@link #destroy(Application)}.
+ * Optional interface for {@link IInitializer initializers} that can clean up stuff initializers
+ * created. Initializers simple have to implement this interface and do their thing in
+ * {@link #destroy(Application)}.
* <p>
- * Destroyers can be used to cleanup code when the application unloads. It only
- * guarantees a best effort of cleaning up. Typically, for web applications,
- * this is called when the Wicket servlet/ filter is unloaded by the container,
- * which may depend on the container's implementation and things like the time
- * out period it uses and whether all threads of the web app were cleared.
+ * Destroyers can be used to cleanup code when the application unloads. It only guarantees a best
+ * effort of cleaning up. Typically, for web applications, this is called when the Wicket servlet/
+ * filter is unloaded by the container, which may depend on the container's implementation and
+ * things like the time out period it uses and whether all threads of the web app were cleared.
* </p>
*
* @author Eelco Hillenius
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageFactory.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageFactory.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageFactory.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageFactory.java Mon Oct 15 14:21:25 2007
@@ -18,12 +18,12 @@
/**
- * A factory class that creates Pages. A Page can be created by Class, with or
- * without a PageParameters argument to pass to the Page's constructor.
+ * A factory class that creates Pages. A Page can be created by Class, with or without a
+ * PageParameters argument to pass to the Page's constructor.
* <p>
* IMPORTANT NOTE: Implementations must let subclasses of
- * {@link org.apache.wicket.AbstractRestartResponseException} thrown from the constructing
- * page's constructor bubble up.
+ * {@link org.apache.wicket.AbstractRestartResponseException} thrown from the constructing page's
+ * constructor bubble up.
*
* @see org.apache.wicket.settings.ISessionSettings#setPageFactory(IPageFactory)
* @see Session#getPageFactory()
@@ -46,10 +46,9 @@
Page newPage(final Class pageClass);
/**
- * Creates a new Page, passing PageParameters to the Page constructor if
- * such a constructor exists. If no such constructor exists and the
- * parameters argument is null or empty, then any available default
- * constructor will be used.
+ * Creates a new Page, passing PageParameters to the Page constructor if such a constructor
+ * exists. If no such constructor exists and the parameters argument is null or empty, then any
+ * available default constructor will be used.
*
* @param pageClass
* The class of Page to create
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageMap.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageMap.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageMap.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IPageMap.java Mon Oct 15 14:21:25 2007
@@ -27,8 +27,7 @@
/**
* @param id
* The page id to create an attribute for
- * @return The session attribute for the given page (for replication of
- * state)
+ * @return The session attribute for the given page (for replication of state)
*/
String attributeForId(final int id);
@@ -38,8 +37,7 @@
void clear();
/**
- * Redirects to any intercept page previously specified by a call to
- * redirectToInterceptPage.
+ * Redirects to any intercept page previously specified by a call to redirectToInterceptPage.
*
* @return True if an original destination was redirected to
* @see Component#redirectToInterceptPage(Page)
@@ -72,8 +70,8 @@
String getName();
/**
- * @return Size of this page map in bytes, including a sum of the sizes of
- * all the pages it contains.
+ * @return Size of this page map in bytes, including a sum of the sizes of all the pages it
+ * contains.
*/
long getSizeInBytes();
@@ -94,11 +92,10 @@
void put(final Page page);
/**
- * Redirects browser to an intermediate page such as a sign-in page. The
- * current request's URL is saved exactly as it was requested for future use
- * by continueToOriginalDestination(); Only use this method when you plan to
- * continue to the current URL at some later time; otherwise just use
- * setResponsePage or, when you are in a constructor, redirectTo.
+ * Redirects browser to an intermediate page such as a sign-in page. The current request's URL
+ * is saved exactly as it was requested for future use by continueToOriginalDestination(); Only
+ * use this method when you plan to continue to the current URL at some later time; otherwise
+ * just use setResponsePage or, when you are in a constructor, redirectTo.
*
* @param pageClazz
* The page clazz to temporarily redirect to
@@ -106,12 +103,10 @@
void redirectToInterceptPage(final Class pageClazz);
/**
- * Redirects browser to an intermediate page such as a sign-in page. The
- * current request's url is saved for future use by method
- * continueToOriginalDestination(); Only use this method when you plan to
- * continue to the current url at some later time; otherwise just use
- * setResponsePage or - when you are in a constructor or checkAccessMethod,
- * call redirectTo.
+ * Redirects browser to an intermediate page such as a sign-in page. The current request's url
+ * is saved for future use by method continueToOriginalDestination(); Only use this method when
+ * you plan to continue to the current url at some later time; otherwise just use
+ * setResponsePage or - when you are in a constructor or checkAccessMethod, call redirectTo.
*
* @param page
* The sign in page
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IRequestListener.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IRequestListener.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IRequestListener.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IRequestListener.java Mon Oct 15 14:21:25 2007
@@ -18,15 +18,13 @@
/**
- * Base interface for all interfaces that listen for requests from the client
- * browser. All sub-interfaces of this interface must have a single method which
- * takes no arguments.
+ * Base interface for all interfaces that listen for requests from the client browser. All
+ * sub-interfaces of this interface must have a single method which takes no arguments.
* <p>
* New listener interfaces must be registered with Wicket by constructing a
- * {@link RequestListenerInterface} object for the given interface class. The
- * best way to do this is to create a public static final constant field in your
- * request listener interface. Doing this will cause the interface to
- * automatically register whenever it is used. For example, see
+ * {@link RequestListenerInterface} object for the given interface class. The best way to do this is
+ * to create a public static final constant field in your request listener interface. Doing this
+ * will cause the interface to automatically register whenever it is used. For example, see
* {@link org.apache.wicket.IRedirectListener#INTERFACE}.
*
* @author Jonathan Locke
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceFactory.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceFactory.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceFactory.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceFactory.java Mon Oct 15 14:21:25 2007
@@ -19,11 +19,10 @@
import java.util.Locale;
/**
- * A factory which creates resources for a given specification string. The
- * format of the specification string is determined by the resource factory
- * subclass. If the resource factory produced button images, the specification
- * might include settings relevant to buttons such as the width, height and
- * color of the button, as well as the text to draw on the button.
+ * A factory which creates resources for a given specification string. The format of the
+ * specification string is determined by the resource factory subclass. If the resource factory
+ * produced button images, the specification might include settings relevant to buttons such as the
+ * width, height and color of the button, as well as the text to draw on the button.
*
* @see org.apache.wicket.markup.html.image.resource.LocalizedImageResource
* @author Jonathan Locke
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceListener.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceListener.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceListener.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResourceListener.java Mon Oct 15 14:21:25 2007
@@ -20,15 +20,14 @@
import org.apache.wicket.request.target.resource.ComponentResourceRequestTarget;
/**
- * Listens for requests regarding resources. Such resources are typically
- * non-static in nature and may even be created on the fly.
+ * Listens for requests regarding resources. Such resources are typically non-static in nature and
+ * may even be created on the fly.
* <p>
- * One use for resource listeners is that they may be used to create components
- * such as Image which respond to requests with a localized resource loaded from
- * the classpath. The Image class allows reusable components to transparently
- * bundle localized image resources. Components that use Image resources
- * (instead of referencing static images in their markup) can be distributed as
- * a self-contained JAR file.
+ * One use for resource listeners is that they may be used to create components such as Image which
+ * respond to requests with a localized resource loaded from the classpath. The Image class allows
+ * reusable components to transparently bundle localized image resources. Components that use Image
+ * resources (instead of referencing static images in their markup) can be distributed as a
+ * self-contained JAR file.
*
* @see org.apache.wicket.markup.html.image.Image
* @see org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResponseFilter.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResponseFilter.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResponseFilter.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/IResponseFilter.java Mon Oct 15 14:21:25 2007
@@ -20,11 +20,11 @@
/**
* A response filter can be added to the
- * {@link org.apache.wicket.settings.IRequestCycleSettings#addResponseFilter(IResponseFilter)} object
- * The will be called from the Buffered Response objects right before they would send it to the
- * real responses. You have to use the
- * {@link org.apache.wicket.settings.IRequestCycleSettings#setBufferResponse(boolean)}(to true which is the default)
- * for this filtering to work.
+ * {@link org.apache.wicket.settings.IRequestCycleSettings#addResponseFilter(IResponseFilter)}
+ * object The will be called from the Buffered Response objects right before they would send it to
+ * the real responses. You have to use the
+ * {@link org.apache.wicket.settings.IRequestCycleSettings#setBufferResponse(boolean)}(to true
+ * which is the default) for this filtering to work.
*
* @author jcompagner
*
@@ -33,11 +33,10 @@
public interface IResponseFilter
{
/**
- * Filters the response buffer and returns the filtered response that can be
- * used in the next filter or returned to the real output itself.
+ * Filters the response buffer and returns the filtered response that can be used in the next
+ * filter or returned to the real output itself.
*
- * A filter may alter the response buffer and return the response buffer
- * itself.
+ * A filter may alter the response buffer and return the response buffer itself.
*
* @param responseBuffer
* The response buffer to be filtered
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Initializer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Initializer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Initializer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Initializer.java Mon Oct 15 14:21:25 2007
@@ -43,7 +43,7 @@
IRedirectListener.INTERFACE.register();
IResourceListener.INTERFACE.register();
}
-
+
/**
* @see java.lang.Object#toString()
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataEntry.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataEntry.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataEntry.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataEntry.java Mon Oct 15 14:21:25 2007
@@ -49,7 +49,7 @@
*/
public String toString()
{
- return key + "=" + object.getClass().getName() + "@"
- + Integer.toHexString(object.hashCode());
+ return key + "=" + object.getClass().getName() + "@" +
+ Integer.toHexString(object.hashCode());
}
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataKey.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataKey.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataKey.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/MetaDataKey.java Mon Oct 15 14:21:25 2007
@@ -21,14 +21,12 @@
import org.apache.wicket.util.lang.Classes;
/**
- * A key to a piece of metadata associated with a Component at runtime. The key
- * contains type information that can be used to check the type of any metadata
- * value for the key when the value is set on the given Component. MetaDataKey
- * is abstract in order to force the creation of a subtype. That subtype is used
- * to test for identity when looking for the metadata because actual object
- * identity would suffer from problems under serialization. So, the correct way
- * to declare a MetaDataKey is like this: public static MetaDataKey ROLE = new
- * MetaDataKey(Role.class) { }
+ * A key to a piece of metadata associated with a Component at runtime. The key contains type
+ * information that can be used to check the type of any metadata value for the key when the value
+ * is set on the given Component. MetaDataKey is abstract in order to force the creation of a
+ * subtype. That subtype is used to test for identity when looking for the metadata because actual
+ * object identity would suffer from problems under serialization. So, the correct way to declare a
+ * MetaDataKey is like this: public static MetaDataKey ROLE = new MetaDataKey(Role.class) { }
*
* @author Jonathan Locke
*/
@@ -143,22 +141,20 @@
}
/**
- * Checks the type of the given object against the type for this metadata
- * key.
+ * Checks the type of the given object against the type for this metadata key.
*
* @param object
* The object to check
* @throws IllegalArgumentException
- * Thrown if the type of the given object does not match the
- * type for this key.
+ * Thrown if the type of the given object does not match the type for this key.
*/
void checkType(final Object object)
{
Class clazz = Classes.resolveClass(typeName);
- if (object != null && !clazz.isAssignableFrom(object.getClass()) )
+ if (object != null && !clazz.isAssignableFrom(object.getClass()))
{
- throw new IllegalArgumentException("MetaDataKey " + getClass()
- + " requires argument of " + clazz + ", not " + object.getClass());
+ throw new IllegalArgumentException("MetaDataKey " + getClass() +
+ " requires argument of " + clazz + ", not " + object.getClass());
}
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/PageParameters.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/PageParameters.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/PageParameters.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/PageParameters.java Mon Oct 15 14:21:25 2007
@@ -25,14 +25,13 @@
/**
- * A typesafe abstraction and container for parameters to a requested page. Page
- * parameters in HTTP are query string values in the request URL. In other
- * protocols, the parameters to a page might come from some other source.
+ * A typesafe abstraction and container for parameters to a requested page. Page parameters in HTTP
+ * are query string values in the request URL. In other protocols, the parameters to a page might
+ * come from some other source.
* <p>
- * Pages which take a PageParameters object as an argument to their constructor
- * can be accessed directly from a URL and are known as "bookmarkable" pages
- * since the URL is stable across sessions and can be stored in a browser's
- * bookmark database.
+ * Pages which take a PageParameters object as an argument to their constructor can be accessed
+ * directly from a URL and are known as "bookmarkable" pages since the URL is stable across sessions
+ * and can be stored in a browser's bookmark database.
*
* @author Jonathan Locke
*/
@@ -58,7 +57,8 @@
/**
* Copy constructor.
*
- * @param parameterMap The map to copy
+ * @param parameterMap
+ * The map to copy
* @see ValueMap#ValueMap(java.util.Map)
*/
public PageParameters(final Map parameterMap)
@@ -72,8 +72,7 @@
* Construct.
*
* @param keyValuePairs
- * List of key value pairs separated by commas. For example,
- * "param1=foo,param2=bar"
+ * List of key value pairs separated by commas. For example, "param1=foo,param2=bar"
* @see ValueMap#ValueMap(String)
*/
public PageParameters(final String keyValuePairs)
@@ -85,16 +84,13 @@
* Construct.
*
* @param keyValuePairs
- * List of key value pairs separated by commas. For example,
- * "param1=foo,param2=bar"
+ * List of key value pairs separated by commas. For example, "param1=foo,param2=bar"
* @param delimiter
* Delimiter string used to separate key/value pairs
* @see ValueMap#ValueMap(String)
*
- * @deprecated Please use
- * {@link RequestUtils#decodeParameters(String, ValueMap)} to
- * decode a request URL, or
- * {@link ValueMap#ValueMap(String, String)} for other usecases.
+ * @deprecated Please use {@link RequestUtils#decodeParameters(String, ValueMap)} to decode a
+ * request URL, or {@link ValueMap#ValueMap(String, String)} for other usecases.
*/
public PageParameters(final String keyValuePairs, final String delimiter)
{
@@ -145,19 +141,18 @@
/*
* BRING BACK IN 1.4
*
- * if (!(key instanceof String)) { throw new IllegalArgumentException(
- * "PageParameter keys must be of type String, but you supplied a " +
- * key.getClass().getName()); } if (value instanceof String || value instanceof
- * String[]) { return super.put(key, value); } else { throw new
- * IllegalArgumentException("You tried to add an object of type " +
- * value.getClass().getName() + " to your PageParameters for key " + key + ",
- * but you are only allowed to use String or String[]."); }
+ * if (!(key instanceof String)) { throw new IllegalArgumentException( "PageParameter keys must be
+ * of type String, but you supplied a " + key.getClass().getName()); } if (value instanceof String ||
+ * value instanceof String[]) { return super.put(key, value); } else { throw new
+ * IllegalArgumentException("You tried to add an object of type " + value.getClass().getName() + "
+ * to your PageParameters for key " + key + ", but you are only allowed to use String or
+ * String[]."); }
*/
}
/**
- * Set this on request cycle. The RequestCycle will decide whether to keep
- * it as a reference or not.
+ * Set this on request cycle. The RequestCycle will decide whether to keep it as a reference or
+ * not.
*
* @see RequestCycle#setPageParameters(PageParameters)
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Request.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Request.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Request.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Request.java Mon Oct 15 14:21:25 2007
@@ -25,12 +25,11 @@
/**
- * Base class for page request implementations allowing access to request
- * parameters. A Request has a URL and a parameter map. You can retrieve the URL
- * of the request with getURL(). The entire parameter map can be retrieved via
- * getParameterMap(). Individual parameters can be retrieved via
- * getParameter(String). If multiple values are available for a given parameter,
- * they can be retrieved via getParameters(String).
+ * Base class for page request implementations allowing access to request parameters. A Request has
+ * a URL and a parameter map. You can retrieve the URL of the request with getURL(). The entire
+ * parameter map can be retrieved via getParameterMap(). Individual parameters can be retrieved via
+ * getParameter(String). If multiple values are available for a given parameter, they can be
+ * retrieved via getParameters(String).
*
* @author Jonathan Locke
*/
@@ -50,9 +49,8 @@
}
/**
- * An implementation of this method is only required if a subclass wishes to
- * support sessions via URL rewriting. This default implementation simply
- * returns the URL String it is passed.
+ * An implementation of this method is only required if a subclass wishes to support sessions
+ * via URL rewriting. This default implementation simply returns the URL String it is passed.
*
* @param url
* The URL to decode
@@ -109,37 +107,31 @@
/**
* Gets a prefix to make this relative to the context root.
* <p>
- * For example, if your context root is http://server.com/myApp/ and the
- * request is for /myApp/mountedPage/, then the prefix returned might be
- * "../../".
+ * For example, if your context root is http://server.com/myApp/ and the request is for
+ * /myApp/mountedPage/, then the prefix returned might be "../../".
* <p>
- * For a particular technology, this might return either an absolute prefix
- * or a relative one.
+ * For a particular technology, this might return either an absolute prefix or a relative one.
*
- * @return Prefix relative to this request required to back up to context
- * root.
+ * @return Prefix relative to this request required to back up to context root.
*/
public abstract String getRelativePathPrefixToContextRoot();
-
+
/**
* Gets a prefix to make this relative to the Wicket Servlet/Filter.
* <p>
- * For example, if your context root is http://server.com/myApp/ and the
- * request is for /myApp/mountedPage/, then the prefix returned might be
- * "../../".
+ * For example, if your context root is http://server.com/myApp/ and the request is for
+ * /myApp/mountedPage/, then the prefix returned might be "../../".
* <p>
- * For a particular technology, this might return either an absolute prefix
- * or a relative one.
+ * For a particular technology, this might return either an absolute prefix or a relative one.
*
- * @return Prefix relative to this request required to back up to context
- * root.
+ * @return Prefix relative to this request required to back up to context root.
*/
public abstract String getRelativePathPrefixToWicketHandler();
-
+
/**
- * Gets the relative (to some root) url (e.g. in a servlet environment, the
- * url without the context path and without a leading '/'). Use this method
- * e.g. to load resources using the servlet context.
+ * Gets the relative (to some root) url (e.g. in a servlet environment, the url without the
+ * context path and without a leading '/'). Use this method e.g. to load resources using the
+ * servlet context.
*
* @return Request URL
* @deprecated Use {@link #getURL()} instead.
@@ -150,8 +142,8 @@
}
/**
- * Gets the request parameters object using the instance of
- * {@link IRequestCodingStrategy} of the provided request cycle processor.
+ * Gets the request parameters object using the instance of {@link IRequestCodingStrategy} of
+ * the provided request cycle processor.
*
* @return the request parameters object
*/
@@ -168,8 +160,8 @@
final IRequestCodingStrategy encoder = processor.getRequestCodingStrategy();
if (encoder == null)
{
- throw new WicketRuntimeException("request encoder must be not-null (provided by "
- + processor + ")");
+ throw new WicketRuntimeException("request encoder must be not-null (provided by " +
+ processor + ")");
}
// decode the request parameters into a strongly typed parameters
@@ -188,14 +180,15 @@
if (requestParameters == null)
{
- throw new WicketRuntimeException("request parameters must be not-null (provided by "
- + encoder + ")");
+ throw new WicketRuntimeException("request parameters must be not-null (provided by " +
+ encoder + ")");
}
return requestParameters;
}
/**
- * Retrieves the relative URL of this request for local use. This is relative to the context root.
+ * Retrieves the relative URL of this request for local use. This is relative to the context
+ * root.
*
* @return The relative request URL for local use
*/
@@ -211,11 +204,11 @@
{
this.page = page;
}
-
+
/**
- * A request can say if the current request should generated a new version number.
- * If this returns true, then all the changes on a page that has versioning enabled
- * is merged with the latest version. Else it will just create a new version.
+ * A request can say if the current request should generated a new version number. If this
+ * returns true, then all the changes on a page that has versioning enabled is merged with the
+ * latest version. Else it will just create a new version.
*
* @return true if the version must be merged with the previous latest.
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestContext.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestContext.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestContext.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestContext.java Mon Oct 15 14:21:25 2007
@@ -25,12 +25,12 @@
{
/** Thread-local that holds the current request context. */
private static final ThreadLocal current = new ThreadLocal();
-
+
public RequestContext()
{
set(this);
}
-
+
public static final RequestContext get()
{
RequestContext context = (RequestContext)current.get();
@@ -40,7 +40,7 @@
}
return context;
}
-
+
protected static final void set(RequestContext context)
{
current.set(context);
@@ -50,37 +50,37 @@
{
return "";
}
-
+
public String encodeMarkupId(String markupId)
{
return markupId;
}
-
+
public CharSequence encodeActionURL(CharSequence path)
{
return path;
}
-
+
public CharSequence encodeRenderURL(CharSequence path)
{
return path;
}
-
+
public CharSequence encodeResourceURL(CharSequence path)
{
return path;
}
-
+
public CharSequence encodeSharedResourceURL(CharSequence path)
{
return path;
}
-
+
public IHeaderResponse getHeaderResponse()
{
return null;
}
-
+
public boolean isPortletRequest()
{
return false;
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseAtInterceptPageException.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseAtInterceptPageException.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseAtInterceptPageException.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseAtInterceptPageException.java Mon Oct 15 14:21:25 2007
@@ -19,11 +19,11 @@
import org.apache.wicket.request.RequestParameters;
/**
- * Causes Wicket to interrupt current request processing and immediately
- * redirect to an intercept page.
+ * Causes Wicket to interrupt current request processing and immediately redirect to an intercept
+ * page.
* <p>
- * Similar to calling redirectToInteceptPage(Page) with the difference that this
- * exception will interrupt processing of the current request.
+ * Similar to calling redirectToInteceptPage(Page) with the difference that this exception will
+ * interrupt processing of the current request.
*
* @see org.apache.wicket.PageMap#redirectToInterceptPage(Page)
* @see org.apache.wicket.Component#redirectToInterceptPage(Page)
@@ -78,9 +78,9 @@
final Page requestPage = RequestCycle.get().getRequest().getPage();
/*
- * requestPage can be null if we throw the restart response exception
- * before any page is instantiated in user's session. if this happens we
- * switch to the pagemap of the interceptPage
+ * requestPage can be null if we throw the restart response exception before any page is
+ * instantiated in user's session. if this happens we switch to the pagemap of the
+ * interceptPage
*/
final IPageMap pageMap;
if (requestPage != null)
@@ -94,7 +94,7 @@
pageMap.redirectToInterceptPage(interceptPage);
}
-
+
/**
* Redirects to intercept page using the page map for the current request
*
@@ -107,9 +107,8 @@
final Page requestPage = cycle.getRequest().getPage();
/*
- * requestPage can be null if we throw the restart response exception
- * before any page is instantiated in user's session. if this happens we
- * switch to the pagemap of the request.
+ * requestPage can be null if we throw the restart response exception before any page is
+ * instantiated in user's session. if this happens we switch to the pagemap of the request.
*/
final IPageMap pageMap;
if (requestPage != null)
@@ -123,5 +122,5 @@
}
pageMap.redirectToInterceptPage(interceptPageClass);
- }
+ }
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseException.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseException.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseException.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/RestartResponseException.java Mon Oct 15 14:21:25 2007
@@ -17,8 +17,8 @@
package org.apache.wicket;
/**
- * Causes wicket to interrupt current request processing and immediately respond
- * with the specified page.
+ * Causes wicket to interrupt current request processing and immediately respond with the specified
+ * page.
*
* @author Igor Vaynberg (ivaynberg)
*/
@@ -38,8 +38,7 @@
}
/**
- * Redirects to the specified bookmarkable page with the given page
- * parameters
+ * Redirects to the specified bookmarkable page with the given page parameters
*
* @param pageClass
* class of bookmarkable page
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/SharedResources.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/SharedResources.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/SharedResources.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/SharedResources.java Mon Oct 15 14:21:25 2007
@@ -29,9 +29,8 @@
/**
- * Class which holds shared resources. Resources can be shared by name. An
- * optional scope can be given to prevent naming conflicts and a locale and/or
- * style can be given as well.
+ * Class which holds shared resources. Resources can be shared by name. An optional scope can be
+ * given to prevent naming conflicts and a locale and/or style can be given as well.
*
* @author Jonathan Locke
* @author Johan Compagner
@@ -43,9 +42,8 @@
private static final Logger log = LoggerFactory.getLogger(SharedResources.class);
/**
- * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. Inserts
- * _[locale] and _[style] into path just before any extension that might
- * exist.
+ * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL IT. Inserts _[locale] and
+ * _[style] into path just before any extension that might exist.
*
* @param path
* The resource path
@@ -94,13 +92,13 @@
}
/** Map of Class to alias String */
- private final Map/*<Class, String>*/ classAliasMap = new WeakHashMap();
-
+ private final Map/* <Class, String> */classAliasMap = new WeakHashMap();
+
/** Map of alias String to WeakReference(Class) */
- private final Map/*<String, WeakReference<Class>>*/ aliasClassMap = new HashMap();
+ private final Map/* <String, WeakReference<Class>> */aliasClassMap = new HashMap();
/** Map of shared resources states */
- private final Map/*<String, Resource>*/ resourceMap = new HashMap();
+ private final Map/* <String, Resource> */resourceMap = new HashMap();
/**
* Construct.
@@ -183,8 +181,8 @@
* @param style
* The resource style (see {@link org.apache.wicket.Session})
* @param exact
- * If true then only return the resource that is registered for
- * the given locale and style.
+ * If true then only return the resource that is registered for the given locale and
+ * style.
*
* @return The logical resource
*/
@@ -257,9 +255,8 @@
}
/**
- * Sets an alias for a class so that a resource url can look like:
- * resources/images/Image.jpg instead of
- * resources/org.apache.wicket.resources.ResourceClass/Image.jpg
+ * Sets an alias for a class so that a resource url can look like: resources/images/Image.jpg
+ * instead of resources/org.apache.wicket.resources.ResourceClass/Image.jpg
*
* @param clz
* The class that has to be aliased.
@@ -271,7 +268,7 @@
classAliasMap.put(clz, alias);
aliasClassMap.put(alias, new WeakReference(clz));
}
-
+
/**
* Gets the class for a given resource alias.
*
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/WicketRuntimeException.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/WicketRuntimeException.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/WicketRuntimeException.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/WicketRuntimeException.java Mon Oct 15 14:21:25 2007
@@ -42,8 +42,7 @@
}
/**
- * @see RuntimeException#RuntimeException(java.lang.String,
- * java.lang.Throwable)
+ * @see RuntimeException#RuntimeException(java.lang.String, java.lang.Throwable)
*/
public WicketRuntimeException(final String message, final Throwable cause)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxSelfUpdatingTimerBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxSelfUpdatingTimerBehavior.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxSelfUpdatingTimerBehavior.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxSelfUpdatingTimerBehavior.java Mon Oct 15 14:21:25 2007
@@ -19,8 +19,7 @@
import org.apache.wicket.util.time.Duration;
/**
- * Automatically re-renders the component it is attached to via AJAX at a
- * regular interval.
+ * Automatically re-renders the component it is attached to via AJAX at a regular interval.
*
* @since 1.2
*
@@ -52,9 +51,8 @@
}
/**
- * Give the subclass a chance to add something to the target, like a
- * javascript effect call. Called after the hosting component has been added
- * to the target.
+ * Give the subclass a chance to add something to the target, like a javascript effect call.
+ * Called after the hosting component has been added to the target.
*
* @param target
* The AJAX target
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxCallDecorator.java Mon Oct 15 14:21:25 2007
@@ -19,8 +19,7 @@
import org.apache.wicket.IClusterable;
/**
- * Interface used to decorate a wicket generated javascript that performs an
- * ajax callback
+ * Interface used to decorate a wicket generated javascript that performs an ajax callback
* <p>
* The returned scripts are rendered in the HTML as follow:
*
@@ -29,17 +28,17 @@
* function() {[onFailureScript});" ...>[text of the link]</a>
* </pre>
*
- * As a result, using double quotes in the script will break the link syntax and
- * make it fail (or fallback in the case of an AjaxFallbackLink). So, if single
- * quotes have to be inserted in strings contained in the scripts, they must be
- * properly escaped to pass through Java and Javascript, for example:
+ * As a result, using double quotes in the script will break the link syntax and make it fail (or
+ * fallback in the case of an AjaxFallbackLink). So, if single quotes have to be inserted in strings
+ * contained in the scripts, they must be properly escaped to pass through Java and Javascript, for
+ * example:
*
* <pre>
* return "alert('It\\'s ok!')";
* </pre>
*
- * Also note that <tt>decorateScript(CharSequence script)</tt> should
- * generally append to the script rather than replace it:
+ * Also note that <tt>decorateScript(CharSequence script)</tt> should generally append to the
+ * script rather than replace it:
*
* <pre>
* return "alert('Before ajax call');" + script;
@@ -60,8 +59,8 @@
public interface IAjaxCallDecorator extends IClusterable
{
/**
- * Name of javascript variable that will be true if ajax call was made,
- * false otherwise. This variable is available in the after script only.
+ * Name of javascript variable that will be true if ajax call was made, false otherwise. This
+ * variable is available in the after script only.
*/
public static final String WICKET_CALL_RESULT_VAR = "wcall";
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxIndicatorAware.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxIndicatorAware.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxIndicatorAware.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/IAjaxIndicatorAware.java Mon Oct 15 14:21:25 2007
@@ -18,16 +18,14 @@
/**
- * This interface makes it trivial to use busy indicators for ajax requests.
- * This interface can be implemented by a component that has an ajax behavior
- * attached to it, or any parent of the component, or by the ajax behavior
- * itself. If this is the case javascript will be added automatically that will
- * show a markup element pointed to by the {@link #getAjaxIndicatorMarkupId()}
- * markup id attribute when the ajax request begins, and hide it when the ajax
- * requests succeeds or fails.
+ * This interface makes it trivial to use busy indicators for ajax requests. This interface can be
+ * implemented by a component that has an ajax behavior attached to it, or any parent of the
+ * component, or by the ajax behavior itself. If this is the case javascript will be added
+ * automatically that will show a markup element pointed to by the
+ * {@link #getAjaxIndicatorMarkupId()} markup id attribute when the ajax request begins, and hide it
+ * when the ajax requests succeeds or fails.
* <p>
- * If both a component and a behavior implement this interface, the component
- * will take precedence.
+ * If both a component and a behavior implement this interface, the component will take precedence.
*
* @since 1.2
*
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallDecorator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallDecorator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallDecorator.java Mon Oct 15 14:21:25 2007
@@ -53,7 +53,7 @@
}
/**
- * @see org.apache.wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(CharSequence)
+ * @see org.apache.wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(CharSequence)
*/
public CharSequence decorateOnFailureScript(CharSequence script)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallThrottlingDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallThrottlingDecorator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallThrottlingDecorator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxCallThrottlingDecorator.java Mon Oct 15 14:21:25 2007
@@ -22,14 +22,13 @@
import org.apache.wicket.util.time.Duration;
/**
- * Adds throttling to the ajax call. Throttled behaviors only execute once
- * within the given delay even though they can be triggered multiple times.
+ * Adds throttling to the ajax call. Throttled behaviors only execute once within the given delay
+ * even though they can be triggered multiple times.
* <p>
- * For example, this is useful when attaching an event behavior to the
- * onkeypress event. It is not desirable to have an ajax call made every time
- * the user types so we can throttle that call to a desirable delay, such as
- * once per second. This gives us a near real time ability to provide feedback
- * without overloading the server.
+ * For example, this is useful when attaching an event behavior to the onkeypress event. It is not
+ * desirable to have an ajax call made every time the user types so we can throttle that call to a
+ * desirable delay, such as once per second. This gives us a near real time ability to provide
+ * feedback without overloading the server.
*
* @since 1.2
*
@@ -39,7 +38,7 @@
public final class AjaxCallThrottlingDecorator extends AjaxPostprocessingCallDecorator
{
private static final long serialVersionUID = 1L;
-
+
private final Duration duration;
private final String id;
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPostprocessingCallDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPostprocessingCallDecorator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPostprocessingCallDecorator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPostprocessingCallDecorator.java Mon Oct 15 14:21:25 2007
@@ -19,8 +19,8 @@
import org.apache.wicket.ajax.IAjaxCallDecorator;
/**
- * Ajax call decorator that decorates script after allowing the wrapped delegate
- * decorator to decorate it first.
+ * Ajax call decorator that decorates script after allowing the wrapped delegate decorator to
+ * decorate it first.
*
* @see IAjaxCallDecorator for notes on escaping quotes in scripts
*
@@ -67,7 +67,7 @@
}
/**
- * @see org.apache.wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(CharSequence)
+ * @see org.apache.wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(CharSequence)
*/
public final CharSequence decorateOnFailureScript(CharSequence script)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPreprocessingCallDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPreprocessingCallDecorator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPreprocessingCallDecorator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/AjaxPreprocessingCallDecorator.java Mon Oct 15 14:21:25 2007
@@ -19,8 +19,7 @@
import org.apache.wicket.ajax.IAjaxCallDecorator;
/**
- * Ajax call decorator that decorates script before passing it to the delegate
- * decorator
+ * Ajax call decorator that decorates script before passing it to the delegate decorator
*
* @see IAjaxCallDecorator for notes on escaping quotes in scripts
*
@@ -64,7 +63,7 @@
}
/**
- * @see org.apache.wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(CharSequence)
+ * @see org.apache.wicket.ajax.IAjaxCallDecorator#decorateOnFailureScript(CharSequence)
*/
public CharSequence decorateOnFailureScript(CharSequence script)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/CancelEventIfNoAjaxDecorator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/CancelEventIfNoAjaxDecorator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/CancelEventIfNoAjaxDecorator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/calldecorator/CancelEventIfNoAjaxDecorator.java Mon Oct 15 14:21:25 2007
@@ -20,12 +20,11 @@
import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
/**
- * Decorator that can be used to cancel the regular action if ajax call was
- * performed. This allows us to, for example, cancel the default anchor behavior
- * (requesting href url) if an ajax call was made in the onclick event handler.
- * Ajax call cannot be performed if javascript has been turned off or no
- * compatible XmlHttpRequest object can be found. This decorator will make
- * javascript return true if the ajax call was made, and false otherwise.
+ * Decorator that can be used to cancel the regular action if ajax call was performed. This allows
+ * us to, for example, cancel the default anchor behavior (requesting href url) if an ajax call was
+ * made in the onclick event handler. Ajax call cannot be performed if javascript has been turned
+ * off or no compatible XmlHttpRequest object can be found. This decorator will make javascript
+ * return true if the ajax call was made, and false otherwise.
*
* @see AjaxFallbackLink
*
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/AjaxFormValidatingBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/AjaxFormValidatingBehavior.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/AjaxFormValidatingBehavior.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/AjaxFormValidatingBehavior.java Mon Oct 15 14:21:25 2007
@@ -25,8 +25,8 @@
import org.apache.wicket.util.time.Duration;
/**
- * Ajax event behavior that submits the form and updates all form feedback
- * panels on the page. Useful for providing instant feedback.
+ * Ajax event behavior that submits the form and updates all form feedback panels on the page.
+ * Useful for providing instant feedback.
*
* @since 1.2
*
@@ -43,8 +43,7 @@
* @param form
* form that will be submitted via ajax
* @param event
- * javascript event this behavior will be invoked on, like
- * onclick
+ * javascript event this behavior will be invoked on, like onclick
*/
public AjaxFormValidatingBehavior(Form form, String event)
{
@@ -62,8 +61,7 @@
}
/**
- * Adds all feedback panels on the page to the ajax request target so they
- * are updated
+ * Adds all feedback panels on the page to the ajax request target so they are updated
*
* @param target
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/OnChangeAjaxBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/OnChangeAjaxBehavior.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/OnChangeAjaxBehavior.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/form/OnChangeAjaxBehavior.java Mon Oct 15 14:21:25 2007
@@ -22,11 +22,10 @@
import org.apache.wicket.util.string.JavascriptUtils;
/**
- * A behavior that updates the hosting {@link FormComponent} via ajax when value
- * of the component is changed.
+ * A behavior that updates the hosting {@link FormComponent} via ajax when value of the component is
+ * changed.
*
- * This behavior uses best available method to track changes on different types
- * of form components.
+ * This behavior uses best available method to track changes on different types of form components.
*
* @author Janne Hietamäki (janne)
*
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxFallbackLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxFallbackLink.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxFallbackLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxFallbackLink.java Mon Oct 15 14:21:25 2007
@@ -25,8 +25,8 @@
import org.apache.wicket.model.IModel;
/**
- * An ajax link that will degrade to a normal request if ajax is not available
- * or javascript is disabled
+ * An ajax link that will degrade to a normal request if ajax is not available or javascript is
+ * disabled
*
* @since 1.2
*
@@ -72,7 +72,7 @@
return new CancelEventIfNoAjaxDecorator(AjaxFallbackLink.this
.getAjaxCallDecorator());
}
-
+
protected void onComponentTag(ComponentTag tag)
{
// only render handler if link is enabled
@@ -99,12 +99,11 @@
}
/**
- * Callback for the onClick event. If ajax failed and this event was
- * generated via a normal link the target argument will be null
+ * Callback for the onClick event. If ajax failed and this event was generated via a normal link
+ * the target argument will be null
*
* @param target
- * ajax target if this linked was invoked using ajax, null
- * otherwise
+ * ajax target if this linked was invoked using ajax, null otherwise
*/
public abstract void onClick(final AjaxRequestTarget target);
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxLink.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/AjaxLink.java Mon Oct 15 14:21:25 2007
@@ -72,7 +72,7 @@
protected void onComponentTag(ComponentTag tag)
{
- // add the onclick handler only if link is enabled
+ // add the onclick handler only if link is enabled
if (isLinkEnabled())
{
super.onComponentTag(tag);
@@ -84,21 +84,21 @@
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
-
- if (isLinkEnabled())
+
+ if (isLinkEnabled())
{
// disable any href attr in markup
- if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link")
- || tag.getName().equalsIgnoreCase("area"))
+ if (tag.getName().equalsIgnoreCase("a") || tag.getName().equalsIgnoreCase("link") ||
+ tag.getName().equalsIgnoreCase("area"))
{
tag.put("href", "#");
}
- }
- else
+ }
+ else
{
disableLink(tag);
}
-
+
}
/**
@@ -112,8 +112,7 @@
}
/**
- * Listener method invoked on the ajax request generated when the user
- * clicks the link
+ * Listener method invoked on the ajax request generated when the user clicks the link
*
* @param target
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/IAjaxLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/IAjaxLink.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/IAjaxLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/IAjaxLink.java Mon Oct 15 14:21:25 2007
@@ -29,8 +29,7 @@
public interface IAjaxLink
{
/**
- * Listener method invoked on the ajax request generated when the user
- * clicks the link
+ * Listener method invoked on the ajax request generated when the user clicks the link
*
* @param target
* the request target.
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxCheckBox.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxCheckBox.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxCheckBox.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxCheckBox.java Mon Oct 15 14:21:25 2007
@@ -51,7 +51,7 @@
public AjaxCheckBox(final String id, final IModel model)
{
super(id, model);
-
+
setOutputMarkupId(true);
add(new AjaxFormComponentUpdatingBehavior("onclick")
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitButton.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitButton.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitButton.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitButton.java Mon Oct 15 14:21:25 2007
@@ -20,9 +20,8 @@
import org.apache.wicket.markup.html.form.Form;
/**
- * A button that submits the form via ajax. Since this button takes the form as
- * a constructor argument it does not need to be added to it unlike the
- * {@link Button} component.
+ * A button that submits the form via ajax. Since this button takes the form as a constructor
+ * argument it does not need to be added to it unlike the {@link Button} component.
*
* @since 1.2
*
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/form/AjaxSubmitLink.java Mon Oct 15 14:21:25 2007
@@ -25,39 +25,37 @@
import org.apache.wicket.util.string.AppendingStringBuffer;
/**
- * A link that submits a form via ajax. Since this link takes the form as a
- * constructor argument it does not need to be inside form's component
- * hierarchy.
- *
- * <p/>
- * It works by splitting the javascript/Ajax calls from the normal
- * non-ajax requests by generating:
+ * A link that submits a form via ajax. Since this link takes the form as a constructor argument it
+ * does not need to be inside form's component hierarchy.
+ *
+ * <p/> It works by splitting the javascript/Ajax calls from the normal non-ajax requests by
+ * generating:
+ *
* <pre>
- * <a href="normal action url" onclick="ajax javascript script; return
- * false;">link</a>
+ * <a href="normal action url" onclick="ajax javascript script; return
+ * false;">link</a>
* </pre>
- * If/when javascript is turned off in the browser, or it doesn't support
- * javascript, then the browser will not respond to the onclick event,
- * using the href directly. Wicket will then use a normal request target,
- * and call the serverside onClick with a null {@link AjaxRequestTarget}.
- *
- * If javascript is enabled, Wicket will send an ajax request, and
- * process it serverside with an {@link AjaxRequestTarget} that is supplied to
- * the server-side onClick method. The "return false" in the <a href>
- * onclick handler ensures the browser doesn't perform the normal request
- * too.
- *
+ *
+ * If/when javascript is turned off in the browser, or it doesn't support javascript, then the
+ * browser will not respond to the onclick event, using the href directly. Wicket will then use a
+ * normal request target, and call the serverside onClick with a null {@link AjaxRequestTarget}.
+ *
+ * If javascript is enabled, Wicket will send an ajax request, and process it serverside with an
+ * {@link AjaxRequestTarget} that is supplied to the server-side onClick method. The "return false"
+ * in the <a href> onclick handler ensures the browser doesn't perform the normal request too.
+ *
* The latter is nicely illustrated with this:
+ *
* <pre>
- * <a href="javascript:alert('href event handler');"
- * onclick="alert('onclick event handler');">clicking me gives two
+ * <a href="javascript:alert('href event handler');"
+ * onclick="alert('onclick event handler');">clicking me gives two
* alerts</a>
- *
- * <a href="javascript:alert('href event handler');"
- * onclick="alert('onclick event handler');return false;">clicking me
+ *
+ * <a href="javascript:alert('href event handler');"
+ * onclick="alert('onclick event handler');return false;">clicking me
* gives only one alert</a>
* </pre>
- *
+ *
* @since 1.2
*
* @author Igor Vaynberg (ivaynberg)
@@ -110,12 +108,12 @@
{
return AjaxSubmitLink.this.getAjaxCallDecorator();
}
-
+
protected void onComponentTag(ComponentTag tag)
{
// write the onclick handler only if link is enabled
if (isLinkEnabled())
- {
+ {
super.onComponentTag(tag);
}
}
@@ -124,12 +122,10 @@
}
/**
- * Returns the {@link IAjaxCallDecorator} that will be used to modify the
- * generated javascript. This is the preferred way of changing the
- * javascript in the onclick handler
+ * Returns the {@link IAjaxCallDecorator} that will be used to modify the generated javascript.
+ * This is the preferred way of changing the javascript in the onclick handler
*
- * @return call decorator used to modify the generated javascript or null
- * for none
+ * @return call decorator used to modify the generated javascript or null for none
*/
protected IAjaxCallDecorator getAjaxCallDecorator()
{
@@ -139,8 +135,8 @@
protected void onComponentTag(ComponentTag tag)
{
super.onComponentTag(tag);
-
- if (isLinkEnabled())
+
+ if (isLinkEnabled())
{
if (tag.getName().toLowerCase().equals("a"))
{
@@ -152,10 +148,10 @@
disableLink(tag);
}
}
-
+
/**
- * Final implementation of the Button's onSubmit. AjaxSubmitLinks have
- * there own onSubmit which is called.
+ * Final implementation of the Button's onSubmit. AjaxSubmitLinks have there own onSubmit which
+ * is called.
*
* @see org.apache.wicket.markup.html.form.Button#onSubmit()
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigation.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigation.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigation.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigation.java Mon Oct 15 14:21:25 2007
@@ -21,8 +21,8 @@
import org.apache.wicket.markup.html.navigation.paging.PagingNavigationLink;
/**
- * An ajaxified navigation for a PageableListView that holds links to other
- * pages of the PageableListView.
+ * An ajaxified navigation for a PageableListView that holds links to other pages of the
+ * PageableListView.
* <p>
* Please
*
@@ -32,7 +32,9 @@
*
* @author Martijn Dashorst
*/
-public class AjaxPagingNavigation extends org.apache.wicket.markup.html.navigation.paging.PagingNavigation
+public class AjaxPagingNavigation
+ extends
+ org.apache.wicket.markup.html.navigation.paging.PagingNavigation
{
private static final long serialVersionUID = 1L;
@@ -57,8 +59,7 @@
* @param pageable
* The underlying pageable component to navigate
* @param labelProvider
- * The label provider for the text that the links should be
- * displaying.
+ * The label provider for the text that the links should be displaying.
*/
public AjaxPagingNavigation(final String id, final IPageable pageable,
final IPagingLabelProvider labelProvider)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationIncrementLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationIncrementLink.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationIncrementLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationIncrementLink.java Mon Oct 15 14:21:25 2007
@@ -22,8 +22,8 @@
import org.apache.wicket.markup.html.navigation.paging.PagingNavigationIncrementLink;
/**
- * An incremental Ajaxian link to a page of a PageableListView. Assuming your
- * list view navigation looks like
+ * An incremental Ajaxian link to a page of a PageableListView. Assuming your list view navigation
+ * looks like
*
* <pre>
*
@@ -32,12 +32,11 @@
* </pre>
*
* <p>
- * and "<" meaning the previous and "<<" goto the "current page - 5",
- * than it is this kind of incremental page links which can easily be created.
+ * and "<" meaning the previous and "<<" goto the "current page - 5", than it is this kind
+ * of incremental page links which can easily be created.
*
- * This link will update the pageable and itself or the navigator the link is
- * part of using Ajax techniques, or perform a full refresh when ajax is not
- * available.
+ * This link will update the pageable and itself or the navigator the link is part of using Ajax
+ * techniques, or perform a full refresh when ajax is not available.
*
* @since 1.2
*
@@ -69,12 +68,12 @@
}
/**
- * Returns the javascript event handler for this component. This function is
- * used to decorate the generated javascript handler.
+ * Returns the javascript event handler for this component. This function is used to decorate
+ * the generated javascript handler.
* <p>
- * NOTE: It is recommended that you only prepend additional javascript to
- * the default handler because the default handler uses the return func()
- * format so any appended javascript will not be evaluated by default.
+ * NOTE: It is recommended that you only prepend additional javascript to the default handler
+ * because the default handler uses the return func() format so any appended javascript will not
+ * be evaluated by default.
*
* @param defaultHandler
* default javascript event handler generated by this link
@@ -103,12 +102,12 @@
}
/**
- * Performs the actual action of this component, performing a non-ajax
- * fallback when there was no AjaxRequestTarget available.
+ * Performs the actual action of this component, performing a non-ajax fallback when there was
+ * no AjaxRequestTarget available.
*
* @param target
- * the request target, when <code>null</code>, a full page
- * refresh will be generated
+ * the request target, when <code>null</code>, a full page refresh will be
+ * generated
*/
public void onClick(AjaxRequestTarget target)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationLink.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigationLink.java Mon Oct 15 14:21:25 2007
@@ -40,8 +40,8 @@
* @param pageable
* The pageable component for this page link
* @param pageNumber
- * The page number in the PageableListView that this link links
- * to. Negative pageNumbers are relative to the end of the list.
+ * The page number in the PageableListView that this link links to. Negative
+ * pageNumbers are relative to the end of the list.
*/
public AjaxPagingNavigationLink(final String id, final IPageable pageable, final int pageNumber)
{
@@ -67,12 +67,12 @@
}
/**
- * Performs the actual action of this component, performing a non-ajax
- * fallback when there was no AjaxRequestTarget available.
+ * Performs the actual action of this component, performing a non-ajax fallback when there was
+ * no AjaxRequestTarget available.
*
* @param target
- * the request target, when <code>null</code>, a full page
- * refresh will be generated
+ * the request target, when <code>null</code>, a full page refresh will be
+ * generated
*/
public void onClick(AjaxRequestTarget target)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IClassResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IClassResolver.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IClassResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IClassResolver.java Mon Oct 15 14:21:25 2007
@@ -18,20 +18,20 @@
/**
* An interface to code which finds classes.
- *
+ *
* @author Jonathan Locke
* @author Juergen Donnerstag
*/
public interface IClassResolver
{
- /**
- * Resolves a class by name (which may or may not involve loading it; thus
- * the name class *resolver* not *loader*).
- *
- * @param classname
- * Fully qualified classname to find
- * @return Class
- * @throws ClassNotFoundException
- */
- Class resolveClass(final String classname) throws ClassNotFoundException;
+ /**
+ * Resolves a class by name (which may or may not involve loading it; thus the name class
+ * *resolver* not *loader*).
+ *
+ * @param classname
+ * Fully qualified classname to find
+ * @return Class
+ * @throws ClassNotFoundException
+ */
+ Class resolveClass(final String classname) throws ClassNotFoundException;
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentInstantiationListener.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentInstantiationListener.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentInstantiationListener.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentInstantiationListener.java Mon Oct 15 14:21:25 2007
@@ -19,10 +19,9 @@
import org.apache.wicket.Component;
/**
- * Listener interface that receives messages when components are constructed.
- * This mechanism is used by {@link org.apache.wicket.authorization.IAuthorizationStrategy},
- * but can additionally be used to implement things like dependency injection
- * support etc.
+ * Listener interface that receives messages when components are constructed. This mechanism is used
+ * by {@link org.apache.wicket.authorization.IAuthorizationStrategy}, but can additionally be used
+ * to implement things like dependency injection support etc.
*
* <strong>Implementations must be thread safe</strong>
*
@@ -31,10 +30,9 @@
public interface IComponentInstantiationListener
{
/**
- * Called for every component that is instantiated. This method is called
- * <strong>during</strong> construction, so do not depend on the
- * construction being completed yet. The id is guaranteed to be set before
- * this call.
+ * Called for every component that is instantiated. This method is called <strong>during</strong>
+ * construction, so do not depend on the construction being completed yet. The id is guaranteed
+ * to be set before this call.
*
* @param component
* the component that is being instantiated.
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnAfterRenderListener.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnAfterRenderListener.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnAfterRenderListener.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnAfterRenderListener.java Mon Oct 15 14:21:25 2007
@@ -19,8 +19,7 @@
import org.apache.wicket.Component;
/**
- * Listener that is called after component's {@link Component#onAfterRender}
- * method was invoked.
+ * Listener that is called after component's {@link Component#onAfterRender} method was invoked.
*
* @author Matej Knopp
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnBeforeRenderListener.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnBeforeRenderListener.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnBeforeRenderListener.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/IComponentOnBeforeRenderListener.java Mon Oct 15 14:21:25 2007
@@ -19,8 +19,8 @@
import org.apache.wicket.Component;
/**
- * Listener that is called right after the component's
- * {@link Component#onBeforeRender} method was invoked.
+ * Listener that is called right after the component's {@link Component#onBeforeRender} method was
+ * invoked.
*
* @author Matej Knopp
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/application/ReloadingClassLoader.java Mon Oct 15 14:21:25 2007
@@ -35,8 +35,8 @@
/**
- * Custom ClassLoader that reverses the classloader lookups, and that is able to
- * notify a listener when a class file is changed.
+ * Custom ClassLoader that reverses the classloader lookups, and that is able to notify a listener
+ * when a class file is changed.
*
* @author <a href="mailto:jbq@apache.org">Jean-Baptiste Quenot</a>
*/
@@ -130,8 +130,7 @@
}
/**
- * Returns the list of all configured locations of directories containing
- * class files
+ * Returns the list of all configured locations of directories containing class files
*
* @return list of locations as URL
*/
@@ -181,12 +180,12 @@
}
/**
- * Create a new reloading ClassLoader from a list of URLs, and initialize
- * the ModificationWatcher to detect class file modifications
+ * Create a new reloading ClassLoader from a list of URLs, and initialize the
+ * ModificationWatcher to detect class file modifications
*
* @param parent
- * the parent classloader in case the class file cannot be loaded
- * from the above locations
+ * the parent classloader in case the class file cannot be loaded from the above
+ * locations
*/
public ReloadingClassLoader(ClassLoader parent)
{
@@ -295,8 +294,8 @@
}
/**
- * Watch changes of a class file by locating it in the list of location URLs
- * and adding the corresponding file to the ModificationWatcher
+ * Watch changes of a class file by locating it in the list of location URLs and adding the
+ * corresponding file to the ModificationWatcher
*
* @param clz
* the class to watch
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/authorization/Action.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/authorization/Action.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/authorization/Action.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/authorization/Action.java Mon Oct 15 14:21:25 2007
@@ -20,11 +20,10 @@
import org.apache.wicket.util.string.Strings;
/**
- * A class for constructing singleton constants that represent a given component
- * action that needs to be authorized. The Wicket core framework defines
- * Component.RENDER and Component.ENABLE actions, but future versions of the
- * framework may add more actions and user defined components can define their
- * own actions as well.
+ * A class for constructing singleton constants that represent a given component action that needs
+ * to be authorized. The Wicket core framework defines Component.RENDER and Component.ENABLE
+ * actions, but future versions of the framework may add more actions and user defined components
+ * can define their own actions as well.
*
* @see org.apache.wicket.Component#RENDER
* @see org.apache.wicket.Component#ENABLE