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 [10/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/ma...
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ParentResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ParentResolver.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ParentResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ParentResolver.java Mon Oct 15 14:21:25 2007
@@ -23,8 +23,8 @@
import org.apache.wicket.markup.WicketTag;
/**
- * Some containers are transparent to the user (e.g. HtmlHeaderContainer or
- * BodyOnLoadContainer) and delegate component resolution to there parent.
+ * Some containers are transparent to the user (e.g. HtmlHeaderContainer or BodyOnLoadContainer) and
+ * delegate component resolution to there parent.
*
* @author Juergen Donnerstag
*/
@@ -33,11 +33,9 @@
private static final long serialVersionUID = 1L;
/**
- * Try to resolve the tag, then create a component, add it to the container
- * and render it.
+ * Try to resolve the tag, then create a component, add it to the container and render it.
* <p>
- * Note: Special tags like <wicket:...>> and tags which id start with
- * "_" are not resolved.
+ * Note: Special tags like <wicket:...>> and tags which id start with "_" are not resolved.
*
* @see org.apache.wicket.markup.resolver.IComponentResolver#resolve(MarkupContainer,
* MarkupStream, ComponentTag)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/ScopedComponentResolver.java Mon Oct 15 14:21:25 2007
@@ -25,56 +25,57 @@
import org.apache.wicket.markup.html.panel.Panel;
/**
- * Implement a component resolver which walks up the component tree until a Page
- * or Panel and tries to find a component with a matching wicket id, effectively
- * providing something like scoping for wicket id resolution.
+ * Implement a component resolver which walks up the component tree until a Page or Panel and tries
+ * to find a component with a matching wicket id, effectively providing something like scoping for
+ * wicket id resolution.
* <p>
* Note: This resolver is not activated by default. It has to be added by means of
* <code>Application.getComponentResolvers().add(new InheritComponentResolver())
* to be activated.</code>.
* <p>
* Example:
+ *
* <pre>
* MyPage()
* {
- * add(new Label("hidden-by-cont1","hidden"));
- * add(new Label("global","can be everywhere")); //the interesting case
- *
- * WebMarkupContainer cont1 = new WebMarkupContainer("cont1");
- * add(cont1);
- *
- * cont1.add(new Label("hidden-by-cont1","cont1 hides"));
- * cont1.add(new Label("same-id","cont1 same-id"));
- *
- * WebMarkupContainer cont2 = new WebMarkupContainer("cont2");
- * add(cont2);
- *
- * cont2.add(new Label("same-id","cont2 same-id"));
+ * add(new Label("hidden-by-cont1", "hidden"));
+ * add(new Label("global", "can be everywhere")); //the interesting case
+ *
+ * WebMarkupContainer cont1 = new WebMarkupContainer("cont1");
+ * add(cont1);
+ *
+ * cont1.add(new Label("hidden-by-cont1", "cont1 hides"));
+ * cont1.add(new Label("same-id", "cont1 same-id"));
+ *
+ * WebMarkupContainer cont2 = new WebMarkupContainer("cont2");
+ * add(cont2);
+ *
+ * cont2.add(new Label("same-id", "cont2 same-id"));
* }
* </pre>
* <pre>
* HTML:
- * <html>
- * <body>
- * <span wicket:id="hidden-by-cont1">Prints: hidden</span>
- * <div wicket:id="cont1">
- * <span wicket:id="hidden-by-cont1">Prints: cont1 hides</span>
- * <span wicket:id="same-id">Prints: cont1 same-id</span>
- * </div>
- *
- * <div wicket:id="cont2">
- * <span wicket:id="global">Prints: can be everywhere</span>
- * <span wicket:id="same-id">Prints: cont2 same-id</span>
- * </div>
+ * <html>
+ * <body>
+ * <span wicket:id="hidden-by-cont1">Prints: hidden</span>
+ * <div wicket:id="cont1">
+ * <span wicket:id="hidden-by-cont1">Prints: cont1 hides</span>
+ * <span wicket:id="same-id">Prints: cont1 same-id</span>
+ * </div>
+ *
+ * <div wicket:id="cont2">
+ * <span wicket:id="global">Prints: can be everywhere</span>
+ * <span wicket:id="same-id">Prints: cont2 same-id</span>
+ * </div>
* </pre>
- *
- * So you can use the same ids in the same page. If the containing containers
- * are not in the same hierarchy-line nothing changes. A comp with the same id
- * hides the one of the parent-container with the same id.
- *
+ *
+ * So you can use the same ids in the same page. If the containing containers are not in the same
+ * hierarchy-line nothing changes. A comp with the same id hides the one of the parent-container
+ * with the same id.
+ *
* @see org.apache.wicket.MarkupContainer#isTransparentResolver()
* @see org.apache.wicket.markup.resolver.ParentResolver
- *
+ *
* @author Christian Essl
* @author Juergen Donnerstag
*/
@@ -91,7 +92,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.resolver.IComponentResolver#resolve(org.apache.wicket.MarkupContainer,
* org.apache.wicket.markup.MarkupStream, org.apache.wicket.markup.ComponentTag)
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketContainerResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketContainerResolver.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketContainerResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketContainerResolver.java Mon Oct 15 14:21:25 2007
@@ -27,9 +27,9 @@
/**
* This is a tag resolver which handles <wicket:container>
*
- * Sometimes adding components in certain ways may lead to output of invalid
- * markup. For example, lets pretend we output table rows two at a time using a
- * repeater. The markup would look something like this:
+ * Sometimes adding components in certain ways may lead to output of invalid markup. For example,
+ * lets pretend we output table rows two at a time using a repeater. The markup would look something
+ * like this:
*
* <code>
* <table>
@@ -40,9 +40,9 @@
* </table>
* </code>
*
- * Notice that we had to attach the repeater to a component tag - in this case a
- * <code>span</code>, but a span is not a legal tag to nest under
- * <code>table</code>. So we can rewrite the example as following:
+ * Notice that we had to attach the repeater to a component tag - in this case a <code>span</code>,
+ * but a span is not a legal tag to nest under <code>table</code>. So we can rewrite the example
+ * as following:
*
* <code>
* <table>
@@ -71,8 +71,7 @@
private static final long serialVersionUID = 1L;
/**
- * Try to resolve the tag, then create a component, add it to the container
- * and render it.
+ * Try to resolve the tag, then create a component, add it to the container and render it.
*
* @see org.apache.wicket.markup.resolver.IComponentResolver#resolve(MarkupContainer,
* MarkupStream, ComponentTag)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketLinkResolver.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketLinkResolver.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketLinkResolver.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/resolver/WicketLinkResolver.java Mon Oct 15 14:21:25 2007
@@ -24,10 +24,9 @@
import org.apache.wicket.markup.html.WebMarkupContainer;
/**
- * This is a tag resolver which handles <wicket:link> tags. Because
- * autolinks are already detected and handled, the only task of this resolver
- * will be to add a "transparent" WebMarkupContainer to transparently handling
- * child components.
+ * This is a tag resolver which handles <wicket:link> tags. Because autolinks are already
+ * detected and handled, the only task of this resolver will be to add a "transparent"
+ * WebMarkupContainer to transparently handling child components.
*
* @author Juergen Donnerstag
*/
@@ -36,8 +35,7 @@
private static final long serialVersionUID = 1L;
/**
- * Try to resolve the tag, then create a component, add it to the container
- * and render it.
+ * Try to resolve the tag, then create a component, add it to the container and render it.
*
* @see org.apache.wicket.markup.resolver.IComponentResolver#resolve(MarkupContainer,
* MarkupStream, ComponentTag)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractOutputTransformerContainer.java Mon Oct 15 14:21:25 2007
@@ -26,14 +26,14 @@
import org.apache.wicket.response.StringResponse;
/**
- * This abstract container provides the means to post-process the markup
- * generated by its child components (excluding the containers tag)
+ * This abstract container provides the means to post-process the markup generated by its child
+ * components (excluding the containers tag)
* <p>
* Please see <code>IBehavior</code> for an alternative based on IBehavior
- *
+ *
* @see org.apache.wicket.markup.transformer.AbstractTransformerBehavior
* @see org.apache.wicket.markup.transformer.ITransformer
- *
+ *
* @author Juergen Donnerstag
*/
public abstract class AbstractOutputTransformerContainer extends MarkupContainer
@@ -47,7 +47,7 @@
/**
* Construct
- *
+ *
* @see org.apache.wicket.Component#Component(String)
*/
public AbstractOutputTransformerContainer(final String id)
@@ -57,7 +57,7 @@
/**
* Construct
- *
+ *
* @see org.apache.wicket.Component#Component(String, IModel)
*/
public AbstractOutputTransformerContainer(final String id, final IModel model)
@@ -66,9 +66,9 @@
}
/**
- * You can choose whether the body of the tag excluding the tag shall be
- * transformed or including the tag.
- *
+ * You can choose whether the body of the tag excluding the tag shall be transformed or
+ * including the tag.
+ *
* @param value
* If true, only the body is applied to transformation.
* @return this
@@ -80,9 +80,9 @@
}
/**
- * Create a new response object which is used to store the markup generated
- * by the child objects.
- *
+ * Create a new response object which is used to store the markup generated by the child
+ * objects.
+ *
* @return Response object. Must not be null
*/
protected Response newResponse()
@@ -91,7 +91,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
*/
@@ -112,7 +112,8 @@
public void run()
{
// Invoke default execution
- AbstractOutputTransformerContainer.super.onComponentTagBody(markupStream, openTag);
+ AbstractOutputTransformerContainer.super.onComponentTagBody(markupStream,
+ openTag);
}
});
}
@@ -145,7 +146,7 @@
}
/**
- *
+ *
* @param code
*/
private final void execute(final Runnable code)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/AbstractTransformerBehavior.java Mon Oct 15 14:21:25 2007
@@ -25,11 +25,11 @@
import org.apache.wicket.response.StringResponse;
/**
- * A IBehavior which can be added to any component. It allows to post-process
- * (transform) the markup generated by the component.
- *
+ * A IBehavior which can be added to any component. It allows to post-process (transform) the markup
+ * generated by the component.
+ *
* @see org.apache.wicket.markup.transformer.AbstractOutputTransformerContainer
- *
+ *
* @author Juergen Donnerstag
*/
public abstract class AbstractTransformerBehavior extends AbstractBehavior implements ITransformer
@@ -46,9 +46,9 @@
}
/**
- * Create a new response object which is used to store the markup generated
- * by the child objects.
- *
+ * Create a new response object which is used to store the markup generated by the child
+ * objects.
+ *
* @return Response object. Must not be null
*/
protected Response newResponse()
@@ -115,7 +115,8 @@
}
/**
- * @see org.apache.wicket.behavior.AbstractBehavior#onException(org.apache.wicket.Component, java.lang.RuntimeException)
+ * @see org.apache.wicket.behavior.AbstractBehavior#onException(org.apache.wicket.Component,
+ * java.lang.RuntimeException)
*/
public void onException(Component component, RuntimeException exception)
{
@@ -127,7 +128,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/ITransformer.java Mon Oct 15 14:21:25 2007
@@ -19,17 +19,17 @@
import org.apache.wicket.Component;
/**
- * A common interface to be implemented be OutputTransformerContainers and
- * TranformerBehaviors which post-process the output markup of a component.
- *
+ * A common interface to be implemented be OutputTransformerContainers and TranformerBehaviors which
+ * post-process the output markup of a component.
+ *
* @author Juergen Donnerstag
*/
public interface ITransformer
{
/**
- * Will be invoked after all child components have been processed to allow
- * for transforming the markup generated.
- *
+ * Will be invoked after all child components have been processed to allow for transforming the
+ * markup generated.
+ *
* @param component
* The associated Wicket component
* @param output
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/NoopOutputTransformerContainer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/NoopOutputTransformerContainer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/NoopOutputTransformerContainer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/NoopOutputTransformerContainer.java Mon Oct 15 14:21:25 2007
@@ -20,8 +20,8 @@
import org.apache.wicket.model.IModel;
/**
- * An implementation of an output transformer which does nothing. It does not
- * modify the markup at all.
+ * An implementation of an output transformer which does nothing. It does not modify the markup at
+ * all.
*
* @author Juergen Donnerstag
*/
@@ -51,7 +51,8 @@
/**
*
- * @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component, CharSequence)
+ * @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
+ * CharSequence)
*/
public CharSequence transform(final Component component, final CharSequence output)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltOutputTransformerContainer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltOutputTransformerContainer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltOutputTransformerContainer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltOutputTransformerContainer.java Mon Oct 15 14:21:25 2007
@@ -22,22 +22,20 @@
import org.apache.wicket.model.Model;
/**
- * A container which output markup will be processes by a XSLT processor prior
- * to writing the output into the web response. The *.xsl resource must be
- * located in the same path as the nearest parent with an associated markup and
- * must have a filename equal to the component's id.
+ * A container which output markup will be processes by a XSLT processor prior to writing the output
+ * into the web response. The *.xsl resource must be located in the same path as the nearest parent
+ * with an associated markup and must have a filename equal to the component's id.
* <p>
- * The containers tag will be the root element of the xml data applied for
- * transformation to ensure the xml data are well formed (single root element).
- * In addition the attribute
- * <code>xmlns:wicket="http://wicket.apache.org"</code> is added to the
- * root element to allow the XSL processor to handle the wicket namespace.
+ * The containers tag will be the root element of the xml data applied for transformation to ensure
+ * the xml data are well formed (single root element). In addition the attribute
+ * <code>xmlns:wicket="http://wicket.apache.org"</code> is added to the root element to allow the
+ * XSL processor to handle the wicket namespace.
* <p>
- * Similar to this container, a <code>IBehavior</code> is available which does
- * the same, but does not require an additional Container.
+ * Similar to this container, a <code>IBehavior</code> is available which does the same, but does
+ * not require an additional Container.
*
* @see org.apache.wicket.markup.transformer.XsltTransformerBehavior
- *
+ *
* @author Juergen Donnerstag
*/
public class XsltOutputTransformerContainer extends AbstractOutputTransformerContainer
@@ -48,14 +46,17 @@
private final String xslFile;
/**
- * Instead of using the default mechanism to determine the associated XSL
- * file, it is given by the user.
+ * Instead of using the default mechanism to determine the associated XSL file, it is given by
+ * the user.
*
* @see org.apache.wicket.Component#Component(String, IModel)
*
- * @param id the wicket:id
- * @param model the model (unused)
- * @param xslFilePath XSL input file path
+ * @param id
+ * the wicket:id
+ * @param model
+ * the model (unused)
+ * @param xslFilePath
+ * XSL input file path
*/
public XsltOutputTransformerContainer(final String id, final IModel model,
final String xslFilePath)
@@ -77,8 +78,10 @@
/**
* Construct
*
- * @param id the wicket:id
- * @param model the model (unused)
+ * @param id
+ * the wicket:id
+ * @param model
+ * the model (unused)
* @see org.apache.wicket.Component#Component(String, IModel)
*/
public XsltOutputTransformerContainer(final String id, final IModel model)
@@ -89,7 +92,8 @@
/**
* Construct
*
- * @param id the wicket:id
+ * @param id
+ * the wicket:id
* @see org.apache.wicket.Component#Component(String)
*/
public XsltOutputTransformerContainer(final String id)
@@ -111,7 +115,8 @@
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
*/
- public CharSequence transform(final Component component, final CharSequence output) throws Exception
+ public CharSequence transform(final Component component, final CharSequence output)
+ throws Exception
{
return new XsltTransformer(this.xslFile).transform(component, output);
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformer.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformer.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformer.java Mon Oct 15 14:21:25 2007
@@ -55,13 +55,13 @@
}
/**
- * Instead of using the default mechanism to determine the associated XSL
- * file, it is given by the user.
+ * Instead of using the default mechanism to determine the associated XSL file, it is given by
+ * the user.
*
* @param xslFile
- * XSL input file path relative to the component's package. If
- * the path does not end with <tt>.xsl</tt>, then it is
- * considered as a basename and will be passed as-is to
+ * XSL input file path relative to the component's package. If the path does not end
+ * with <tt>.xsl</tt>, then it is considered as a basename and will be passed
+ * as-is to
* {@link IResourceStreamLocator#locate(Class, String, String, java.util.Locale, String)}.
* All stylesheets must have the <tt>.xsl</tt> extension.
*/
@@ -78,10 +78,9 @@
}
/**
- * Apply a XSL transformation to the markup generated by a component. The
- * *.xsl resource must be located in the same path as the nearest parent
- * with an associated markup and must have a filename equal to the
- * component's id.
+ * Apply a XSL transformation to the markup generated by a component. The *.xsl resource must be
+ * located in the same path as the nearest parent with an associated markup and must have a
+ * filename equal to the component's id.
*
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
@@ -93,8 +92,8 @@
if (resourceStream == null)
{
- throw new FileNotFoundException("Unable to find XSLT resource for "
- + component.toString());
+ throw new FileNotFoundException("Unable to find XSLT resource for " +
+ component.toString());
}
try
@@ -137,8 +136,8 @@
if (filePath == null)
{
filePath = component.findParentWithAssociatedMarkup().getClass().getPackage().getName()
- .replace('.', '/')
- + "/" + component.getId();
+ .replace('.', '/') +
+ "/" + component.getId();
}
resourceStream = Application.get().getResourceSettings().getResourceStreamLocator().locate(
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformerBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformerBehavior.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformerBehavior.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/transformer/XsltTransformerBehavior.java Mon Oct 15 14:21:25 2007
@@ -22,22 +22,20 @@
import org.apache.wicket.markup.ComponentTag;
/**
- * An IBehavior which can be added to any component except ListView. It allows
- * to post-process (XSLT) the markup generated by the component. The *.xsl
- * resource must be located in the same path as the nearest parent with an
- * associated markup and must have a filename equal to the component's id.
+ * An IBehavior which can be added to any component except ListView. It allows to post-process
+ * (XSLT) the markup generated by the component. The *.xsl resource must be located in the same path
+ * as the nearest parent with an associated markup and must have a filename equal to the component's
+ * id.
* <p>
- * The containers tag will be the root element of the xml data applied for
- * transformation to ensure the xml data are well formed (single root element).
- * In addition the attribute
- * <code>xmlns:wicket="http://wicket.apache.org"</code> is added to the root
- * element to allow the XSL processor to handle the wicket namespace.
+ * The containers tag will be the root element of the xml data applied for transformation to ensure
+ * the xml data are well formed (single root element). In addition the attribute
+ * <code>xmlns:wicket="http://wicket.apache.org"</code> is added to the root element to allow the
+ * XSL processor to handle the wicket namespace.
* <p>
- * The reason why the transformer can not be used to XSLT the ListViews output
- * is because of the ListViews markup being reused for each ListItem. Please use
- * a XsltOutputTransformerContainer instead. Note: if the ListView is used to
- * print a list of <tr> tags, than the transformer container must enclose
- * the <table> tag as well to be HTML compliant.
+ * The reason why the transformer can not be used to XSLT the ListViews output is because of the
+ * ListViews markup being reused for each ListItem. Please use a XsltOutputTransformerContainer
+ * instead. Note: if the ListView is used to print a list of <tr> tags, than the transformer
+ * container must enclose the <table> tag as well to be HTML compliant.
*
* @see org.apache.wicket.markup.transformer.AbstractOutputTransformerContainer
* @see org.apache.wicket.markup.transformer.XsltOutputTransformerContainer
@@ -85,7 +83,8 @@
* @see org.apache.wicket.markup.transformer.ITransformer#transform(org.apache.wicket.Component,
* CharSequence)
*/
- public CharSequence transform(final Component component, final CharSequence output) throws Exception
+ public CharSequence transform(final Component component, final CharSequence output)
+ throws Exception
{
return new XsltTransformer(this.xslFile).transform(component, output);
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java Mon Oct 15 14:21:25 2007
@@ -27,11 +27,10 @@
import org.apache.wicket.util.string.Strings;
/**
- * Serves as a base class for different kinds of property models. By default,
- * this class uses {@link PropertyResolver} to resolve expressions on the target
- * model object. Note that the property resolver by default provides access to
- * private members and methods. If guaranteeing encapsulation of the target
- * objects is a big concern, you should consider using an alternative
+ * Serves as a base class for different kinds of property models. By default, this class uses
+ * {@link PropertyResolver} to resolve expressions on the target model object. Note that the
+ * property resolver by default provides access to private members and methods. If guaranteeing
+ * encapsulation of the target objects is a big concern, you should consider using an alternative
* implementation.
*
* @see PropertyResolver
@@ -135,12 +134,10 @@
}
/**
- * Applies the property expression on the model object using the given
- * object argument.
+ * Applies the property expression on the model object using the given object argument.
*
* @param object
- * The object that will be used when setting a value on the model
- * object
+ * The object that will be used when setting a value on the model object
* @see IModel#setObject(Object)
*/
public void setObject(Object object)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractReadOnlyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractReadOnlyModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractReadOnlyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractReadOnlyModel.java Mon Oct 15 14:21:25 2007
@@ -20,8 +20,8 @@
/**
- * AbstractReadOnlyModel is an adapter base class for implementing models which
- * have no detach logic and are read-only.
+ * AbstractReadOnlyModel is an adapter base class for implementing models which have no detach logic
+ * and are read-only.
*
* @author Igor Vaynberg ( ivaynberg )
*/
@@ -40,16 +40,17 @@
/**
* This default implementation of setObject unconditionally throws an
- * UnsupportedOperationException. Since the method is final, any subclass is
- * effectively a read-only model.
+ * UnsupportedOperationException. Since the method is final, any subclass is effectively a
+ * read-only model.
*
- * @param object The object to set into the model
+ * @param object
+ * The object to set into the model
* @throws UnsupportedOperationException
*/
public final void setObject(final Object object)
{
- throw new UnsupportedOperationException("Model " + getClass()
- + " does not support setObject(Object)");
+ throw new UnsupportedOperationException("Model " + getClass() +
+ " does not support setObject(Object)");
}
/**
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractWrapModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractWrapModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractWrapModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractWrapModel.java Mon Oct 15 14:21:25 2007
@@ -17,9 +17,9 @@
package org.apache.wicket.model;
/**
- * Simple base class for IWrapModel objects see {@link IComponentAssignedModel}
- * or {@link IComponentInheritedModel} so that you don't have to have empty methods
- * like detach or setObject() when not used in the wrapper.
+ * Simple base class for IWrapModel objects see {@link IComponentAssignedModel} or
+ * {@link IComponentInheritedModel} so that you don't have to have empty methods like detach or
+ * setObject() when not used in the wrapper.
*
* @author jcompagner
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/BoundCompoundPropertyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/BoundCompoundPropertyModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/BoundCompoundPropertyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/BoundCompoundPropertyModel.java Mon Oct 15 14:21:25 2007
@@ -23,8 +23,7 @@
/**
- * A compound property model that supports type conversions and property
- * expression bindings.
+ * A compound property model that supports type conversions and property expression bindings.
*
* @author Jonathan Locke
*/
@@ -64,11 +63,10 @@
private static final long serialVersionUID = 1L;
/**
- * List of Bindings. Although a Map would be a more natural implementation
- * here, a List is much more compact in terms of space. Although it may take
- * longer to find a component binding in theory, in practice it's unlikely
- * that any BoundCompoundPropertyModel will really have enough bindings to
- * matter.
+ * List of Bindings. Although a Map would be a more natural implementation here, a List is much
+ * more compact in terms of space. Although it may take longer to find a component binding in
+ * theory, in practice it's unlikely that any BoundCompoundPropertyModel will really have enough
+ * bindings to matter.
*/
private final ArrayList bindings = new ArrayList(1);
@@ -84,8 +82,7 @@
}
/**
- * Adds a property binding, using the component's id as the property
- * expression.
+ * Adds a property binding, using the component's id as the property expression.
*
* @param component
* The component to bind
@@ -175,7 +172,7 @@
}
/**
- * @see org.apache.wicket.model.CompoundPropertyModel#propertyExpression(org.apache.wicket.Component)
+ * @see org.apache.wicket.model.CompoundPropertyModel#propertyExpression(org.apache.wicket.Component)
*/
protected String propertyExpression(final Component component)
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentDetachableModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentDetachableModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentDetachableModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentDetachableModel.java Mon Oct 15 14:21:25 2007
@@ -19,10 +19,9 @@
import org.apache.wicket.Component;
/**
- * Quick detachable model that is implements the IComponentAssignedModel and the
- * IModel interfaces. Its a quick replacement for the current
- * setObject(Component,Object) and getObject(Component) methods when the
- * component is needed in a detachable model.
+ * Quick detachable model that is implements the IComponentAssignedModel and the IModel interfaces.
+ * Its a quick replacement for the current setObject(Component,Object) and getObject(Component)
+ * methods when the component is needed in a detachable model.
*
* @author jcompagner
*/
@@ -31,8 +30,8 @@
private static final long serialVersionUID = 1L;
/**
- * Transient flag to prevent multiple detach/attach scenario. We need to
- * maintain this flag as we allow 'null' model values.
+ * Transient flag to prevent multiple detach/attach scenario. We need to maintain this flag as
+ * we allow 'null' model values.
*/
private transient boolean attached = false;
@@ -65,8 +64,7 @@
}
/**
- * Set this model in an attached state. Called if the constructor sets the
- * data. (attached)
+ * Set this model in an attached state. Called if the constructor sets the data. (attached)
*/
protected final void setAttached()
{
@@ -75,16 +73,16 @@
/**
- * Detaches from the current request. Implement this method with custom
- * behavior, such as setting the model object to null.
+ * Detaches from the current request. Implement this method with custom behavior, such as
+ * setting the model object to null.
*/
public void detach()
{
}
/**
- * Attaches to the current request. Implement this method with custom
- * behavior, such as loading the model object.
+ * Attaches to the current request. Implement this method with custom behavior, such as loading
+ * the model object.
*/
protected void attach()
{
@@ -92,9 +90,8 @@
}
/**
- * Called when getObject is called in order to retrieve the detachable
- * object. Before this method is called, attach() is always called to ensure
- * that the object is attached.
+ * Called when getObject is called in order to retrieve the detachable object. Before this
+ * method is called, attach() is always called to ensure that the object is attached.
*
* @param component
* The component asking for the object
@@ -106,9 +103,8 @@
}
/**
- * Called when setObject is called in order to change the detachable object.
- * Before this method is called, attach() is always called to ensure that
- * the object is attached.
+ * Called when setObject is called in order to change the detachable object. Before this method
+ * is called, attach() is always called to ensure that the object is attached.
*
* @param component
* The component asking for replacement of the model object
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentModel.java Mon Oct 15 14:21:25 2007
@@ -19,9 +19,8 @@
import org.apache.wicket.Component;
/**
- * Quick model that is implements the IComponentAssignedModel and the IModel
- * interfaces. Its a quick replacement for the current
- * setObject(Component,Object) and getObject(Component) methods when the
+ * Quick model that is implements the IComponentAssignedModel and the IModel interfaces. Its a quick
+ * replacement for the current setObject(Component,Object) and getObject(Component) methods when the
* component is needed in the model.
*
* @author jcompagner
@@ -49,8 +48,7 @@
}
/**
- * Returns the object from the model with the use of the component where it
- * is attached to.
+ * Returns the object from the model with the use of the component where it is attached to.
*
* @param component
* The component which has this model.
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentPropertyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentPropertyModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentPropertyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ComponentPropertyModel.java Mon Oct 15 14:21:25 2007
@@ -20,9 +20,8 @@
import org.apache.wicket.util.lang.PropertyResolver;
/**
- * A model that references a property by name on the current model of the
- * component it is bound to. This enables direct usage of inherited models such
- * as compound property models.
+ * A model that references a property by name on the current model of the component it is bound to.
+ * This enables direct usage of inherited models such as compound property models.
*
* @author Jonathan Locke
*/
@@ -65,9 +64,7 @@
/**
* Wrapper used when assigning a ComponentPropertyModel to a component.
*/
- private class AssignmentWrapper extends AbstractReadOnlyModel
- implements
- IWrapModel
+ private class AssignmentWrapper extends AbstractReadOnlyModel implements IWrapModel
{
private static final long serialVersionUID = 1L;
@@ -96,8 +93,8 @@
public Object getObject()
{
- return PropertyResolver.getValue(propertyName, component.getParent().getInnermostModel()
- .getObject());
+ return PropertyResolver.getValue(propertyName, component.getParent()
+ .getInnermostModel().getObject());
}
}
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java Mon Oct 15 14:21:25 2007
@@ -20,17 +20,17 @@
import org.apache.wicket.util.string.AppendingStringBuffer;
/**
- * A simple compound model which uses the component's name as the property
- * expression to retrieve properties on the nested model object.
- *
- * CompoundPropertyModel is a chaining model so it will call get/setobject
- * on the given object if the object is an instanceof IModel itself.
- *
+ * A simple compound model which uses the component's name as the property expression to retrieve
+ * properties on the nested model object.
+ *
+ * CompoundPropertyModel is a chaining model so it will call get/setobject on the given object if
+ * the object is an instanceof IModel itself.
+ *
* @see org.apache.wicket.model.IModel
* @see org.apache.wicket.model.Model
* @see org.apache.wicket.model.LoadableDetachableModel
* @see IChainingModel
- *
+ *
* @author Jonathan Locke
*/
public class CompoundPropertyModel implements IComponentInheritedModel, IChainingModel
@@ -41,7 +41,7 @@
/**
* Constructor
- *
+ *
* @param object
* The model object, which may or may not implement IModel
*/
@@ -109,9 +109,8 @@
}
/**
- * Returns the property expression that should be used against the target
- * object
- *
+ * Returns the property expression that should be used against the target object
+ *
* @param component
* @return property expression that should be used against the target object
*/
@@ -129,28 +128,25 @@
}
/**
- * Binds this model to a special property by returning a model
- * that has this compound model as its nested/wrapped model and
- * the property which should be evaluated.
- * This can be used if the id of the Component isn't a valid property
- * for the data object.
- *
+ * Binds this model to a special property by returning a model that has this compound model as
+ * its nested/wrapped model and the property which should be evaluated. This can be used if the
+ * id of the Component isn't a valid property for the data object.
+ *
* @param property
* @return The IModel that is a wrapper around the current model and the property
*/
public IModel bind(String property)
{
- return new PropertyModel(this,property);
+ return new PropertyModel(this, property);
}
/**
- * Component aware variation of the {@link CompoundPropertyModel} that
- * components that inherit the model get
- *
+ * Component aware variation of the {@link CompoundPropertyModel} that components that inherit
+ * the model get
+ *
* @author ivaynberg
*/
- private class AttachedCompoundPropertyModel extends AbstractPropertyModel
- implements IWrapModel
+ private class AttachedCompoundPropertyModel extends AbstractPropertyModel implements IWrapModel
{
private static final long serialVersionUID = 1L;
@@ -158,7 +154,7 @@
/**
* Constructor
- *
+ *
* @param owner
* component that this model has been attached to
*/
@@ -199,8 +195,8 @@
*/
public String toString()
{
- AppendingStringBuffer sb = new AppendingStringBuffer().append("Model:classname=["
- + getClass().getName() + "]");
+ AppendingStringBuffer sb = new AppendingStringBuffer().append("Model:classname=[" +
+ getClass().getName() + "]");
sb.append(":nestedModel=[").append(target).append("]");
return sb.toString();
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IChainingModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IChainingModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IChainingModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IChainingModel.java Mon Oct 15 14:21:25 2007
@@ -17,15 +17,16 @@
package org.apache.wicket.model;
/**
- * Models that implement this interface will support chaining of IModels.
- * getObject() of a IChainingModel should do something like:
+ * Models that implement this interface will support chaining of IModels. getObject() of a
+ * IChainingModel should do something like:
+ *
* <pre>
* if ( object instanceof IModel) { return ((IModel)object).getObject()}
* else return object;
* </pre>
*
- * ChainingModels should also take care that the internal model detach is called
- * when detach is called on them.
+ * ChainingModels should also take care that the internal model detach is called when detach is
+ * called on them.
*
* @author jcompagner
* @author Igor Vaynberg (ivaynberg)
@@ -41,12 +42,12 @@
* @param model
*/
public void setChainedModel(IModel model);
-
+
/**
* Returns the chained model if there is a chained model.
*
* @return The chained model
*/
public IModel getChainedModel();
-
+
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentAssignedModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentAssignedModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentAssignedModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentAssignedModel.java Mon Oct 15 14:21:25 2007
@@ -19,11 +19,10 @@
import org.apache.wicket.Component;
/**
- * Models that wish to substitute themselves with a wrapper when they are bound
- * to a component (either through IModel parameter in a constructor or via a
- * call to {@link Component#setModel(IModel)}) should implement this interface.
- * One reason for a model to want to do this is if it needs to be aware of the
- * component it is bound to.
+ * Models that wish to substitute themselves with a wrapper when they are bound to a component
+ * (either through IModel parameter in a constructor or via a call to
+ * {@link Component#setModel(IModel)}) should implement this interface. One reason for a model to
+ * want to do this is if it needs to be aware of the component it is bound to.
*
* The algorithm wicket employs is similar to this:
*
@@ -51,10 +50,9 @@
/**
* This method is called when the component gets its model assigned.
*
- * WARNING: Because the model can be assigned in the constructor of
- * component this method can also be called with a 'this' of a component
- * that is not fully constructed yet.
- *
+ * WARNING: Because the model can be assigned in the constructor of component this method can
+ * also be called with a 'this' of a component that is not fully constructed yet.
+ *
* @param component
* @return The WrapModel that wraps this model
*/
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentInheritedModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentInheritedModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentInheritedModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IComponentInheritedModel.java Mon Oct 15 14:21:25 2007
@@ -19,12 +19,12 @@
import org.apache.wicket.Component;
/**
- * This is a marker interface for models that can be inherited from components
- * higher in the hierarchy.
+ * This is a marker interface for models that can be inherited from components higher in the
+ * hierarchy.
*
- * If a model implements this interface then you can give the parent container
- * this model and all the child (recursively) components will also get and then
- * set that model on their own if they are created with a null model
+ * If a model implements this interface then you can give the parent container this model and all
+ * the child (recursively) components will also get and then set that model on their own if they are
+ * created with a null model
*
* <pre>
* Form form = new Form(getPage(), "form", new ModelImplementingIInheritableModel());
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IDetachable.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IDetachable.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IDetachable.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IDetachable.java Mon Oct 15 14:21:25 2007
@@ -19,18 +19,17 @@
import org.apache.wicket.IClusterable;
/**
- * Interface to logic for detaching transient information from a detachable
- * model. Detachable models are desirable because they reduce the amount of
- * state required by a model, which makes the model cheaper to replicate in a
- * clustered environment.
+ * Interface to logic for detaching transient information from a detachable model. Detachable models
+ * are desirable because they reduce the amount of state required by a model, which makes the model
+ * cheaper to replicate in a clustered environment.
*
* @author Jonathan Locke
*/
public interface IDetachable extends IClusterable
{
/**
- * Detaches model after use. This is generally used to null out transient
- * references that can be re-attached later.
+ * Detaches model after use. This is generally used to null out transient references that can be
+ * re-attached later.
*/
void detach();
}
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModel.java Mon Oct 15 14:21:25 2007
@@ -18,36 +18,30 @@
/**
- * A IModel wraps the actual model Object used by a Component. IModel
- * implementations are used as a facade for the real model so that users have
- * control over the actual persistence strategy. Note that objects implementing
- * this interface will be stored in the Session. Hence, you should use
+ * A IModel wraps the actual model Object used by a Component. IModel implementations are used as a
+ * facade for the real model so that users have control over the actual persistence strategy. Note
+ * that objects implementing this interface will be stored in the Session. Hence, you should use
* (non-transient) instance variables sparingly.
* <ul>
- * <li><b>Basic Models </b>- To implement a basic (non-detachable) model which
- * holds its entire state in the Session, you can use the simple model wrapper
- * {@link Model}.
+ * <li><b>Basic Models </b>- To implement a basic (non-detachable) model which holds its entire
+ * state in the Session, you can use the simple model wrapper {@link Model}.
*
- * <li><b>Detachable Models </b>- IModel inherits a hook,
- * {@link IDetachable#detach()}, so that interface implementers can detach
- * transient information when a model is no longer being actively used by the
- * framework. This reduces memory use and reduces the expense of replicating the
- * model in a clustered server environment. To implement a detachable model, you
- * should generally extend {@link LoadableDetachableModel} instead
- * of implementing IModel directly.
+ * <li><b>Detachable Models </b>- IModel inherits a hook, {@link IDetachable#detach()}, so that
+ * interface implementers can detach transient information when a model is no longer being actively
+ * used by the framework. This reduces memory use and reduces the expense of replicating the model
+ * in a clustered server environment. To implement a detachable model, you should generally extend
+ * {@link LoadableDetachableModel} instead of implementing IModel directly.
*
- * <li><b>Property Models </b>- The AbstractPropertyModel class provides
- * default functionality for property models. A property model provides access
- * to a particular property of its wrapped model.
+ * <li><b>Property Models </b>- The AbstractPropertyModel class provides default functionality for
+ * property models. A property model provides access to a particular property of its wrapped model.
*
- * <li><b>Compound Property Models </b>- The IModel interface is parameterized
- * by Component, allowing a model to be shared among several Components. When
- * the {@link IModel#getObject()}method is called, the value returned will
- * depend on the Component which is asking for the value. Likewise, the
- * {@link IModel#setObject(Object)}method sets a different property depending
- * on which Component is doing the setting. For more information on
- * CompoundPropertyModels and model inheritance, see
- * {@link org.apache.wicket.model.CompoundPropertyModel}and {@link org.apache.wicket.Page}.
+ * <li><b>Compound Property Models </b>- The IModel interface is parameterized by Component,
+ * allowing a model to be shared among several Components. When the {@link IModel#getObject()}method
+ * is called, the value returned will depend on the Component which is asking for the value.
+ * Likewise, the {@link IModel#setObject(Object)}method sets a different property depending on
+ * which Component is doing the setting. For more information on CompoundPropertyModels and model
+ * inheritance, see {@link org.apache.wicket.model.CompoundPropertyModel}and
+ * {@link org.apache.wicket.Page}.
* </ul>
*
* @see org.apache.wicket.Component#sameInnermostModel(org.apache.wicket.Component)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModelComparator.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModelComparator.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModelComparator.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IModelComparator.java Mon Oct 15 14:21:25 2007
@@ -20,12 +20,12 @@
import org.apache.wicket.IClusterable;
/**
- * Implementations of this interface compare model object.
- * The component is given so that a developer can choose what the previous object is
- * The default implementation for form components is just component.getModelObject();
- * But developers can choose to keep the last rendered value for that component and compare
- * this value with the newObject. So that it doesn't overwrite values for an object that was
- * changed by another session if the current session didn't touch that specific value.
+ * Implementations of this interface compare model object. The component is given so that a
+ * developer can choose what the previous object is The default implementation for form components
+ * is just component.getModelObject(); But developers can choose to keep the last rendered value for
+ * that component and compare this value with the newObject. So that it doesn't overwrite values for
+ * an object that was changed by another session if the current session didn't touch that specific
+ * value.
*
* @author jcompagner
* @author Jonathan Locke
@@ -36,7 +36,7 @@
* @param component
* The component which received the new object
* @param newObject
- * The newObject
+ * The newObject
* @return True if the previous components object is the same as the newObject.
*/
boolean compare(Component component, Object newObject);
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IObjectClassAwareModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IObjectClassAwareModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IObjectClassAwareModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/IObjectClassAwareModel.java Mon Oct 15 14:21:25 2007
@@ -17,8 +17,7 @@
package org.apache.wicket.model;
/**
- * Interface implemented by model that can provide class of the model
- * object.
+ * Interface implemented by model that can provide class of the model object.
*
* @author Matej Knopp
*/
@@ -26,6 +25,7 @@
{
/**
* Returns the class of model object
+ *
* @return class of model object or null if the class couldn't be determined
*/
public Class getObjectClass();
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/LoadableDetachableModel.java Mon Oct 15 14:21:25 2007
@@ -23,10 +23,9 @@
/**
- * Model that makes working with detachable models a breeze.
- * LoadableDetachableModel holds a temporary, transient model object, that is
- * set when {@link #getObject(Component)} is called by calling abstract method
- * 'load', and that will be reset/ set to null on {@link #detach()}.
+ * Model that makes working with detachable models a breeze. LoadableDetachableModel holds a
+ * temporary, transient model object, that is set when {@link #getObject(Component)} is called by
+ * calling abstract method 'load', and that will be reset/ set to null on {@link #detach()}.
*
* A usage example:
*
@@ -41,10 +40,9 @@
* </pre>
*
* <p>
- * Though you can override methods {@link #onAttach()} and {@link #onDetach()} for
- * additional attach/ detach behavior, the point of this class is to hide as
- * much of the attaching/ detaching as possible. So you should rarely need to
- * override those methods, if ever.
+ * Though you can override methods {@link #onAttach()} and {@link #onDetach()} for additional
+ * attach/ detach behavior, the point of this class is to hide as much of the attaching/ detaching
+ * as possible. So you should rarely need to override those methods, if ever.
* </p>
*
* @author Eelco Hillenius
@@ -74,8 +72,8 @@
}
/**
- * This constructor is used if you already have the object retrieved and
- * want to wrap it with a detachable model.
+ * This constructor is used if you already have the object retrieved and want to wrap it with a
+ * detachable model.
*
* @param object
* retrieved instance of the detachable object
@@ -98,8 +96,8 @@
if (log.isDebugEnabled())
{
- log.debug("removed transient object for " + this + ", requestCycle "
- + RequestCycle.get());
+ log.debug("removed transient object for " + this + ", requestCycle " +
+ RequestCycle.get());
}
onDetach();
}
@@ -117,8 +115,8 @@
if (log.isDebugEnabled())
{
- log.debug("loaded transient object " + transientModelObject + " for " + this
- + ", requestCycle " + RequestCycle.get());
+ log.debug("loaded transient object " + transientModelObject + " for " + this +
+ ", requestCycle " + RequestCycle.get());
}
onAttach();
@@ -155,16 +153,16 @@
protected abstract Object load();
/**
- * Attaches to the current request. Implement this method with custom
- * behavior, such as loading the model object.
+ * Attaches to the current request. Implement this method with custom behavior, such as loading
+ * the model object.
*/
protected void onAttach()
{
}
/**
- * Detaches from the current request. Implement this method with custom
- * behavior, such as setting the model object to null.
+ * Detaches from the current request. Implement this method with custom behavior, such as
+ * setting the model object to null.
*/
protected void onDetach()
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/PropertyModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/PropertyModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/PropertyModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/PropertyModel.java Mon Oct 15 14:21:25 2007
@@ -19,9 +19,8 @@
import org.apache.wicket.util.lang.PropertyResolver;
/**
- * A PropertyModel is used to dynamically access a model using a "property
- * expression". See {@link PropertyResolver} javadoc for allowed property
- * expressions.
+ * A PropertyModel is used to dynamically access a model using a "property expression". See
+ * {@link PropertyResolver} javadoc for allowed property expressions.
* <p>
* For example, take the following bean:
*
@@ -42,8 +41,8 @@
* }
* </pre>
*
- * We could construct a label that dynamically fetches the name property of the
- * given person object like this:
+ * We could construct a label that dynamically fetches the name property of the given person object
+ * like this:
*
* <pre>
* Person person = getSomePerson();
@@ -51,13 +50,13 @@
* add(new Label("myLabel", new PopertyModel(person, "name"));
* </pre>
*
- * Where 'myLabel' is the name of the component, and 'name' is the property
- * expression to get the name property.
+ * Where 'myLabel' is the name of the component, and 'name' is the property expression to get the
+ * name property.
* </p>
* <p>
- * In the same fashion, we can create form components that work dynamically on
- * the given model object. For instance, we could create a text field that
- * updates the name property of a person like this:
+ * In the same fashion, we can create form components that work dynamically on the given model
+ * object. For instance, we could create a text field that updates the name property of a person
+ * like this:
*
* <pre>
* add(new TextField("myTextField", new PropertyModel(person, "name"));
@@ -65,9 +64,9 @@
*
* </p>
* <p>
- * Note that the property resolver by default provides access to private members
- * and methods. If guaranteeing encapsulation of the target objects is a big
- * concern, you should consider using an alternative implementation.
+ * Note that the property resolver by default provides access to private members and methods. If
+ * guaranteeing encapsulation of the target objects is a big concern, you should consider using an
+ * alternative implementation.
* </p>
*
* @see PropertyResolver
@@ -87,8 +86,8 @@
private final String expression;
/**
- * Construct with a wrapped (IModel) or unwrapped (non-IModel) object and a
- * property expression that works on the given model.
+ * Construct with a wrapped (IModel) or unwrapped (non-IModel) object and a property expression
+ * that works on the given model.
*
* @param modelObject
* The model object, which may or may not implement IModel
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/ResourceModel.java Mon Oct 15 14:21:25 2007
@@ -20,17 +20,15 @@
import org.apache.wicket.Component;
/**
- * A model that represents a localized resource string. This is a lightweight
- * version of the {@link StringResourceModel}. It lacks parameter
- * substitutions, but is generally easier to use.
+ * A model that represents a localized resource string. This is a lightweight version of the
+ * {@link StringResourceModel}. It lacks parameter substitutions, but is generally easier to use.
* <p>
- * If you don't use this model as primary component model (you don't specify it
- * in component constructor and don't assign it to component using
- * {@link Component#setModel(IModel)}), you will need to connect the model
- * with a component using {@link #wrapOnAssignment(Component)}.
- *
+ * If you don't use this model as primary component model (you don't specify it in component
+ * constructor and don't assign it to component using {@link Component#setModel(IModel)}), you will
+ * need to connect the model with a component using {@link #wrapOnAssignment(Component)}.
+ *
* @author Igor Vaynberg (ivaynberg)
- *
+ *
*/
public class ResourceModel extends AbstractReadOnlyModel implements IComponentAssignedModel
{
@@ -42,7 +40,7 @@
/**
* Constructor
- *
+ *
* @param resourceKey
* key of the resource this model represents
*/
@@ -53,12 +51,12 @@
/**
* Constructor
- *
+ *
* @param resourceKey
* key of the resource this model represents
* @param defaultValue
* value that will be returned if resource does not exist
- *
+ *
*/
public ResourceModel(String resourceKey, String defaultValue)
{
@@ -86,7 +84,7 @@
}
/**
- *
+ *
*/
private class AssignmentWrapper extends ResourceModel implements IWrapModel
{
@@ -96,7 +94,7 @@
/**
* Construct.
- *
+ *
* @param resourceKey
* @param defaultValue
* @param component
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/StringResourceModel.java Mon Oct 15 14:21:25 2007
@@ -79,7 +79,7 @@
* <b>Example 1 </b>
* <p>
* In its simplest form, the model can be used as follows:
- *
+ *
* <pre>
* public MyPage extends WebPage
* {
@@ -89,13 +89,13 @@
* }
* }
* </pre>
- *
+ *
* Where the resource bundle for the page contains the entry <code>label.username=Username</code>
* <p>
* <b>Example 2 </b>
* <p>
* In this example, the resource key is selected based on the evaluation of a property expression:
- *
+ *
* <pre>
* public MyPage extends WebPage
* {
@@ -107,23 +107,23 @@
* }
* }
* </pre>
- *
+ *
* Which will call the WeatherStation.getCurrentStatus() method each time the string resource model
* is used and where the resource bundle for the page contains the entries:
- *
+ *
* <pre>
* weather.sunny=Don't forget sunscreen!
* weather.raining=You might need an umbrella
* weather.snowing=Got your skis?
* weather.overcast=Best take a coat to be safe
* </pre>
- *
+ *
* <p>
* <b>Example 3 </b>
* <p>
* In this example the found resource string contains a property expression that is substituted via
* the model:
- *
+ *
* <pre>
* public MyPage extends WebPage
* {
@@ -135,7 +135,7 @@
* }
* }
* </pre>
- *
+ *
* Where the resource bundle contains the entry <code>weather.message=Weather station reports that
* the temperature is ${currentTemperature} ${units}</code>
* <p>
@@ -143,7 +143,7 @@
* <p>
* In this example, the use of substitution parameters is employed to format a quite complex message
* string. This is an example of the most complex and powerful use of the string resource model:
- *
+ *
* <pre>
* public MyPage extends WebPage
* {
@@ -164,14 +164,14 @@
* }
* }
* </pre>
- *
+ *
* And where the resource bundle entry is:
- *
+ *
* <pre>
* weather.detail=The report for {0,date}, shows the temperature as {2,number,###.##} {3} \
* and the weather to be {1}
* </pre>
- *
+ *
* @author Chris Turner
*/
public class StringResourceModel extends LoadableDetachableModel
@@ -204,7 +204,7 @@
/**
* Construct.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -221,7 +221,7 @@
/**
* Construct.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -230,7 +230,7 @@
* The model to use for property substitutions
* @param defaultValue
* The default value if the resource key is not found.
- *
+ *
* @see #StringResourceModel(String, Component, IModel, Object[])
*/
public StringResourceModel(final String resourceKey, final Component component,
@@ -251,7 +251,7 @@
* to take place on either the resource key or the actual resource strings.
* <p>
* The parameters parameter is also optional and is used for substitutions.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -279,7 +279,7 @@
* to take place on either the resource key or the actual resource strings.
* <p>
* The parameters parameter is also optional and is used for substitutions.
- *
+ *
* @param resourceKey
* The resource key for this string resource
* @param component
@@ -307,7 +307,7 @@
/**
* Gets the localizer that is being used by this string resource model.
- *
+ *
* @return The localizer
*/
public Localizer getLocalizer()
@@ -319,7 +319,7 @@
* Gets the string currently represented by this string resource model. The string that is
* returned may vary for each call to this method depending on the values contained in the model
* and an the parameters that were passed when this string resource model was created.
- *
+ *
* @return The string
*/
public final String getString()
@@ -384,7 +384,7 @@
/**
* Sets the localizer that is being used by this string resource model. This method is provided
* to allow the default application localizer to be overridden if required.
- *
+ *
* @param localizer
* The localizer to use
*/
@@ -397,7 +397,7 @@
* Override of the default method to return the resource string represented by this string
* resource model. Useful in debugging and so on, to avoid the explicit need to call the
* getString() method.
- *
+ *
* @return The string for this model object
*/
public String toString()
@@ -418,7 +418,7 @@
/**
* Gets the Java MessageFormat substitution parameters.
- *
+ *
* @return The substitution parameters
*/
protected Object[] getParameters()
@@ -430,7 +430,7 @@
* Gets the resource key for this string resource. If the resource key contains property
* expressions and the model is null then the returned value is the actual resource key with all
* substitutions undertaken.
- *
+ *
* @return The (possibly substituted) resource key
*/
protected final String getResourceKey()
@@ -448,7 +448,7 @@
/**
* Gets the string that this string resource model currently represents. The string is returned
* as an object to allow it to be used generically within components.
- *
+ *
*/
protected Object load()
{
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedHttpServletResponse.java Mon Oct 15 14:21:25 2007
@@ -42,7 +42,7 @@
* Implementation of {@link HttpServletResponse} that saves the output in a string buffer. This is
* used in REDIRECT_TO_BUFFER render strategy to create the buffer of the output that can be held on
* to until the redirect part of the render strategy.
- *
+ *
* @author jcompagner
*/
class BufferedHttpServletResponse implements HttpServletResponse
@@ -71,7 +71,7 @@
/**
* Constructor.
- *
+ *
* @param realResponse
* The real response for encoding the url
*/
@@ -301,7 +301,7 @@
/**
* Set the character encoding to use for the output.
- *
+ *
* @param encoding
*/
public void setCharacterEncoding(String encoding)
@@ -435,7 +435,7 @@
/**
* THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
- *
+ *
* @param response
*/
public final void filter(Response response)
@@ -450,7 +450,7 @@
}
/**
- *
+ *
*/
public void close()
{
@@ -465,9 +465,9 @@
/**
* Convert the string into the output encoding required
- *
+ *
* @param output
- *
+ *
* @param encoding
* The output encoding
* @return byte[] The encoded characters converted into bytes
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedWebResponse.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedWebResponse.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedWebResponse.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/BufferedWebResponse.java Mon Oct 15 14:21:25 2007
@@ -54,9 +54,8 @@
}
/**
- * Flushes the response buffer by doing a redirect or writing out the
- * buffer. NOTE: The servlet container will close the response output
- * stream.
+ * Flushes the response buffer by doing a redirect or writing out the buffer. NOTE: The servlet
+ * container will close the response output stream.
*/
public void close()
{
@@ -86,9 +85,8 @@
}
/**
- * Saves url to redirect to when buffered response is flushed.
- * Implementations should encode the URL to make sure cookie-less operation
- * is supported in case clients forgot.
+ * Saves url to redirect to when buffered response is flushed. Implementations should encode the
+ * URL to make sure cookie-less operation is supported in case clients forgot.
*
* @param url
* The URL to redirect to
@@ -97,8 +95,8 @@
{
if (redirectURL != null)
{
- throw new WicketRuntimeException("Already redirecting to '" + redirectURL
- + "'. Cannot redirect more than once");
+ throw new WicketRuntimeException("Already redirecting to '" + redirectURL +
+ "'. Cannot redirect more than once");
}
// encode to make sure no caller forgot this
this.redirectURL = encodeURL(url).toString();
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java Mon Oct 15 14:21:25 2007
@@ -31,17 +31,17 @@
* <p>
* A convenient way of letting Wicket do a sneaky redirect to {@link BrowserInfoPage} (and back
* again) is to put this in your Application's init method:
- *
+ *
* <pre>
* getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
* </pre>
- *
+ *
* </p>
- *
+ *
* WARNING: Be sure you think about the dangers of depending on information you pull from the client
* too much. They may be easily spoofed or inaccurate in other ways, and properties like window and
* browser size are all too easy to be used naively.
- *
+ *
* @see BrowserInfoPage
* @author Frank Bille (frankbille)
*/
@@ -206,7 +206,7 @@
/**
* Get the client's time zone if that could be detected.
- *
+ *
* @return The client's time zone
*/
public TimeZone getTimeZone()
@@ -353,7 +353,7 @@
/**
* Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser
* platform.
- *
+ *
* @return True if a derivative of the Microsoft Internet Explorer browser platform.
*/
public boolean isBrowserInternetExplorer()
@@ -363,7 +363,7 @@
/**
* Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.
- *
+ *
* @return True if a derivative of the KDE Konqueror browser platform.
*/
public boolean isBrowserKonqueror()
@@ -373,7 +373,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.
- *
+ *
* @return True if a derivative of the Mozilla 1.0-1.8+ browser platform.
*/
public boolean isBrowserMozilla()
@@ -384,7 +384,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser
* platform.
- *
+ *
* @return True if a derivative of the Mozilla Firefox 1.0+ browser platform.
*/
public boolean isBrowserMozillaFirefox()
@@ -394,7 +394,7 @@
/**
* Flag indicating that the browser is a derivative of the Opera browser platform.
- *
+ *
* @return True if a derivative of the Opera browser platform.
*/
public boolean isBrowserOpera()
@@ -404,7 +404,7 @@
/**
* Flag indicating that the browser is a derivative of the Apple Safari browser platform.
- *
+ *
* @return True if a derivative of the Apple Safari browser platform.
*/
public boolean isBrowserSafari()
@@ -413,8 +413,8 @@
}
/**
- *
- *
+ *
+ *
* @return The client's navigator.cookieEnabled property.
*/
public boolean isCookiesEnabled()
@@ -437,7 +437,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if support for IE-style CSS expressions.
*/
public boolean isProprietaryIECssExpressionsSupported()
@@ -453,7 +453,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if PNG alpha channel support is available only by using a 'filter'.
*/
public boolean isProprietaryIEPngAlphaFilterRequired()
@@ -469,7 +469,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the 'fixed' attribute should be used to for fixed-to-element background
* attachment.
*/
@@ -486,7 +486,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the only means of achieving 0 padding in table cells is to use 0px padding.
*/
public boolean isQuirkCssBorderCollapseFor0Padding()
@@ -502,7 +502,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the client will incorrectly render CSS collapsed borders such that they
* reside entirely within the region of a component.
*/
@@ -519,7 +519,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if CSS positioning values do not work correctly when either both "top" and
* "bottom" or "left" and "right" positions are set at the same time.
*/
@@ -539,7 +539,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if means needs to be taken against weird Internet Explorer repaint behaviors.
*/
public boolean isQuirkIERepaint()
@@ -555,7 +555,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if listbox-style select fields cannot be reliably manipulated using the client
* DOM API.
*/
@@ -571,7 +571,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if select fields with percentage widths are not reliably rendered.
*/
public boolean isQuirkIESelectPercentWidth()
@@ -588,7 +588,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the browser do not render correctly with regard to z-index value.
*/
public boolean isQuirkIESelectZIndex()
@@ -604,7 +604,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if incorrect calculation of 100% table widths when within a vertically scrolling
* region.
*/
@@ -620,7 +620,7 @@
* <ul>
* <li>Internet Explorer 6 (Windows)</li>
* </ul>
- *
+ *
* @return True if the browser has incorrect parsing of newlines in the content of a 'textarea'.
*/
public boolean isQuirkIETextareaNewlineObliteration()
@@ -638,7 +638,7 @@
* <li>Mozilla (all platforms)</li>
* <li>Mozilla Firefox ((all platforms)</li>
* </ul>
- *
+ *
* @return True if the client has poor performance when attempting to remove large element
* hierarchies from a DOM.
*/
@@ -657,7 +657,7 @@
* <li>Mozilla (all platforms)</li>
* <li>Mozilla Firefox ((all platforms)</li>
* </ul>
- *
+ *
* @return True if the text contained within text input fields may be drawn outside of text
* input component due to the component having shifted its location on the page.
*/
@@ -678,7 +678,7 @@
/**
* Flag indicating that the browser is a derivative of the Microsoft Internet Explorer browser
* platform.
- *
+ *
* @param browserInternetExplorer
* True if a derivative of the Microsoft Internet Explorer browser platform.
*/
@@ -689,7 +689,7 @@
/**
* Flag indicating that the browser is a derivative of the KDE Konqueror browser platform.
- *
+ *
* @param browserKonqueror
* True if a derivative of the KDE Konqueror browser platform.
*/
@@ -700,7 +700,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla 1.0-1.8+ browser platform.
- *
+ *
* @param browserMozilla
* True if a derivative of the Mozilla 1.0-1.8+ browser platform.
*/
@@ -712,7 +712,7 @@
/**
* Flag indicating that the browser is a derivative of the Mozilla Firefox 1.0+ browser
* platform.
- *
+ *
* @param browserMozillaFirefox
* True if a derivative of the Mozilla Firefox 1.0+ browser platform.
*/
@@ -723,7 +723,7 @@
/**
* Flag indicating that the browser is a derivative of the Opera browser platform.
- *
+ *
* @param browserOpera
* True if a derivative of the Opera browser platform.
*/
@@ -734,7 +734,7 @@
/**
* Flag indicating that the browser is a derivative of the Apple Safari browser platform.
- *
+ *
* @param browserSafari
* True if a derivative of the Apple Safari browser platform.
*/
@@ -1017,7 +1017,7 @@
/**
* Sets time zone.
- *
+ *
* @param timeZone
*/
public void setTimeZone(TimeZone timeZone)
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ContextParamWebApplicationFactory.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ContextParamWebApplicationFactory.java?rev=584925&r1=584924&r2=584925&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ContextParamWebApplicationFactory.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ContextParamWebApplicationFactory.java Mon Oct 15 14:21:25 2007
@@ -19,17 +19,15 @@
import org.apache.wicket.WicketRuntimeException;
/**
- * Factory that creates application objects based on the class name specified in
- * the {@link ContextParamWebApplicationFactory#APP_CLASS_PARAM} context
- * variable.
+ * Factory that creates application objects based on the class name specified in the
+ * {@link ContextParamWebApplicationFactory#APP_CLASS_PARAM} context variable.
*
* @author Igor Vaynberg (ivaynberg)
*/
public class ContextParamWebApplicationFactory implements IWebApplicationFactory
{
/**
- * context parameter name that must contain the class name of the
- * application
+ * context parameter name that must contain the class name of the application
*/
public static final String APP_CLASS_PARAM = "applicationClassName";
@@ -42,10 +40,10 @@
if (applicationClassName == null)
{
throw new WicketRuntimeException(
- "servlet init param ["
- + APP_CLASS_PARAM
- + "] is missing. If you are trying to use your own implementation of IWebApplicationFactory and get this message then the servlet init param ["
- + WicketFilter.APP_FACT_PARAM + "] is missing");
+ "servlet init param [" +
+ APP_CLASS_PARAM +
+ "] is missing. If you are trying to use your own implementation of IWebApplicationFactory and get this message then the servlet init param [" +
+ WicketFilter.APP_FACT_PARAM + "] is missing");
}
return createApplication(applicationClassName);
@@ -75,29 +73,29 @@
}
else
{
- throw new WicketRuntimeException("Application class " + applicationClassName
- + " must be a subclass of WebApplication");
+ throw new WicketRuntimeException("Application class " + applicationClassName +
+ " must be a subclass of WebApplication");
}
}
catch (ClassNotFoundException e)
{
- throw new WicketRuntimeException("Unable to create application of class "
- + applicationClassName, e);
+ throw new WicketRuntimeException("Unable to create application of class " +
+ applicationClassName, e);
}
catch (InstantiationException e)
{
- throw new WicketRuntimeException("Unable to create application of class "
- + applicationClassName, e);
+ throw new WicketRuntimeException("Unable to create application of class " +
+ applicationClassName, e);
}
catch (IllegalAccessException e)
{
- throw new WicketRuntimeException("Unable to create application of class "
- + applicationClassName, e);
+ throw new WicketRuntimeException("Unable to create application of class " +
+ applicationClassName, e);
}
catch (SecurityException e)
{
- throw new WicketRuntimeException("Unable to create application of class "
- + applicationClassName, e);
+ throw new WicketRuntimeException("Unable to create application of class " +
+ applicationClassName, e);
}
}
}