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/16 00:46:23 UTC
svn commit: r584952 [2/5] - in /wicket/trunk/jdk-1.4/wicket-extensions:
.settings/ src/main/java/org/apache/wicket/extensions/ajax/markup/html/
src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/
src/main/java/org/apache/wicket/ex...
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.java Mon Oct 15 15:46:09 2007
@@ -46,79 +46,66 @@
/**
* Modal window component.
* <p>
- * Modal window is a draggable window (with either div or iframe content) that
- * prevent user from interacting the rest of page (using a mask) until the
- * window is closed.
+ * Modal window is a draggable window (with either div or iframe content) that prevent user from
+ * interacting the rest of page (using a mask) until the window is closed.
* <p>
- * If you want this to work under IE, don't attach this component to a
- * <span> tag, make sure you use a <div>.
+ * If you want this to work under IE, don't attach this component to a <span> tag, make sure
+ * you use a <div>.
* <p>
* The window is draggable and optionally resizable. The content can be either
* <ul>
- * <li><b>a component</b> - you need to add the component to modal window
- * (with id obtained using <code>{@link #getContentId()}</code>, or
- * <li><b>a page</b> - you need to pass a <code>{@link PageCreator}</code>
- * instance to a <code>{@link #setPageCreator(ModalWindow.PageCreator)}</code>
- * method.
+ * <li><b>a component</b> - you need to add the component to modal window (with id obtained using
+ * <code>{@link #getContentId()}</code>, or
+ * <li><b>a page</b> - you need to pass a <code>{@link PageCreator}</code> instance to a
+ * <code>{@link #setPageCreator(ModalWindow.PageCreator)}</code> method.
* </ul>
- * In case the content is a component, it is not rendered until the window is
- * shown (method <code>{@link #show(AjaxRequestTarget)})</code>. In case the
- * content is another page, you can set the desired pagemap name using
- * <code>{@link #setPageMapName(String)}</code>. Setting pagemap is only
- * needed when wicket multiwindow support is on.
+ * In case the content is a component, it is not rendered until the window is shown (method
+ * <code>{@link #show(AjaxRequestTarget)})</code>. In case the content is another page, you can
+ * set the desired pagemap name using <code>{@link #setPageMapName(String)}</code>. Setting
+ * pagemap is only needed when wicket multiwindow support is on.
* <p>
* The window can be made visible from an ajax handler using
* <code>{@link #show(AjaxRequestTarget)}</code>.
* <p>
* To close the window there are multiple options. Static method
- * <code>{@link #close(AjaxRequestTarget)}</code> can be used to close the
- * window from a handler of ajax link inside the window. By default the close
- * button in the upper right corner of the window closes it. This behavior can
- * be altered using
- * <code>{@link #setCloseButtonCallback(ModalWindow.CloseButtonCallback)}</code>.
- * If you want to be notified when the window is closed (either using the close
- * button or calling <code>{@link #close(AjaxRequestTarget)})</code>, you
- * can use
+ * <code>{@link #close(AjaxRequestTarget)}</code> can be used to close the window from a handler
+ * of ajax link inside the window. By default the close button in the upper right corner of the
+ * window closes it. This behavior can be altered using
+ * <code>{@link #setCloseButtonCallback(ModalWindow.CloseButtonCallback)}</code>. If you want to
+ * be notified when the window is closed (either using the close button or calling
+ * <code>{@link #close(AjaxRequestTarget)})</code>, you can use
* <code>{@link #setWindowClosedCallback(ModalWindow.WindowClosedCallback)}</code>.
* <p>
- * Title is specified using {@link #setTitle(String)}. If the content is a page
- * (iframe), the title can remain unset, in that case title from the page inside
- * window will be shown.
+ * Title is specified using {@link #setTitle(String)}. If the content is a page (iframe), the title
+ * can remain unset, in that case title from the page inside window will be shown.
* <p>
- * There are several options to specify the visual properties of the window. In
- * all methods where size is expected, width refers to width of entire window
- * (including frame), height refers to the height of window content (without
- * frame).
+ * There are several options to specify the visual properties of the window. In all methods where
+ * size is expected, width refers to width of entire window (including frame), height refers to the
+ * height of window content (without frame).
* <p>
* <ul>
- * <li><code>{@link #setResizable(boolean)}</code> specifies, whether the
- * window can be resized.
- * <li><code>{@link #setInitialWidth(int)}</code> and
- * <code>{@link #setInitialHeight(int)}</code> specify the initial width and
- * height of window. If the window is resizable, the unit of these dimensions is
- * always "px". If the window is not resizable, the unit can be specified using
- * <code>{@link #setWidthUnit(String)}</code> and
- * <code>{@link #setHeightUnit(String)}</code>. If the window is not
- * resizable and the content is a component (not a page), the initial height
- * value can be ignored and the actual height can be determined from the height
- * of the content. To enable this behavior use
- * <code>{@link #setUseInitialHeight(boolean)}</code>.
- * <li>The window position (and size if the window is resizable) can be stored
- * in a cookie, so that it is preserved when window is close. The name of the
- * cookie is specified via <code>{@link #setCookieName(String)}</code>. If
- * the name is <code>null</code>, position is not stored (initial width and
- * height are always used). Default cookie name is null (position is not
- * stored).
- * <li><code>{@link #setMinimalWidth(int)}</code> and
- * <code>{@link #setMinimalHeight(int)}</code> set the minimal dimensions of
- * resizable window.
+ * <li><code>{@link #setResizable(boolean)}</code> specifies, whether the window can be resized.
+ * <li><code>{@link #setInitialWidth(int)}</code> and <code>{@link #setInitialHeight(int)}</code>
+ * specify the initial width and height of window. If the window is resizable, the unit of these
+ * dimensions is always "px". If the window is not resizable, the unit can be specified using
+ * <code>{@link #setWidthUnit(String)}</code> and <code>{@link #setHeightUnit(String)}</code>.
+ * If the window is not resizable and the content is a component (not a page), the initial height
+ * value can be ignored and the actual height can be determined from the height of the content. To
+ * enable this behavior use <code>{@link #setUseInitialHeight(boolean)}</code>.
+ * <li>The window position (and size if the window is resizable) can be stored in a cookie, so that
+ * it is preserved when window is close. The name of the cookie is specified via
+ * <code>{@link #setCookieName(String)}</code>. If the name is <code>null</code>, position is
+ * not stored (initial width and height are always used). Default cookie name is null (position is
+ * not stored).
+ * <li><code>{@link #setMinimalWidth(int)}</code> and <code>{@link #setMinimalHeight(int)}</code>
+ * set the minimal dimensions of resizable window.
* <li>Modal window can chose between two colors of frame.
- * <code>{@link #setCssClassName(String)}</code> sets the dialog css class,
- * possible values are <code>{@link #CSS_CLASS_BLUE}</code> for blue frame and
- * <code>{@link #CSS_CLASS_GRAY}</code> for gray frame.
- * <li>Mask (element that prevents user from interacting the rest of the page)
- * can be either transparent or semitransparent.
- * <code>{@link #setMaskType(ModalWindow.MaskType)}</code> alters this.
+ * <code>{@link #setCssClassName(String)}</code> sets the dialog css class, possible values are
+ * <code>{@link #CSS_CLASS_BLUE}</code> for blue frame and <code>{@link #CSS_CLASS_GRAY}</code>
+ * for gray frame.
+ * <li>Mask (element that prevents user from interacting the rest of the page) can be either
+ * transparent or semitransparent. <code>{@link #setMaskType(ModalWindow.MaskType)}</code> alters
+ * this.
* </ul>
*
* @see IPageSettings#setAutomaticMultiWindowSupport(boolean)
@@ -154,10 +141,10 @@
}
/**
- * Interface for lazy page creation. The advantage of creating page using
- * this interface over just passing a page instance is that page created in
- * <code>{@link #createPage()}</code> will have the pagemap automatically
- * set to the pagemap specified for <code>{@link ModalWindow}</code>.
+ * Interface for lazy page creation. The advantage of creating page using this interface over
+ * just passing a page instance is that page created in <code>{@link #createPage()}</code>
+ * will have the pagemap automatically set to the pagemap specified for
+ * <code>{@link ModalWindow}</code>.
*
* @author Matej Knopp
*/
@@ -172,36 +159,31 @@
}
/**
- * Callback for close button that contains a method that is invoked after
- * the button has been clicked. If no callback instance is specified using
- * <code>{@link #setCloseButtonCallback(ModalWindow.CloseButtonCallback)}</code>,
- * no ajax request will be fired. Clicking the button will just close the
- * window.
+ * Callback for close button that contains a method that is invoked after the button has been
+ * clicked. If no callback instance is specified using
+ * <code>{@link #setCloseButtonCallback(ModalWindow.CloseButtonCallback)}</code>, no ajax
+ * request will be fired. Clicking the button will just close the window.
*
* @author Matej Knopp
*/
public static interface CloseButtonCallback extends IClusterable
{
/**
- * Methods invoked after the button has been clicked. The invokation is
- * done using an ajax call, so <code>{@link AjaxRequestTarget}</code>
- * instance is available.
+ * Methods invoked after the button has been clicked. The invokation is done using an ajax
+ * call, so <code>{@link AjaxRequestTarget}</code> instance is available.
*
* @param target
- * <code>{@link AjaxRequestTarget}</code> instance bound
- * with the ajax reuqest.
+ * <code>{@link AjaxRequestTarget}</code> instance bound with the ajax reuqest.
*
- * @return True if the window can be closed (will close the window),
- * false otherwise
+ * @return True if the window can be closed (will close the window), false otherwise
*/
public boolean onCloseButtonClicked(AjaxRequestTarget target);
}
/**
- * Callback called after the window has been closed. If no callback instance
- * is specified using
- * {@link ModalWindow#setWindowClosedCallback(ModalWindow.WindowClosedCallback)},
- * no ajax request will be fired.
+ * Callback called after the window has been closed. If no callback instance is specified using
+ * {@link ModalWindow#setWindowClosedCallback(ModalWindow.WindowClosedCallback)}, no ajax
+ * request will be fired.
*
* @author Matej Knopp
*/
@@ -211,8 +193,7 @@
* Called after the window has been closed.
*
* @param target
- * <code>{@link AjaxRequestTarget}</code> instance bound
- * with the ajax reuqest.
+ * <code>{@link AjaxRequestTarget}</code> instance bound with the ajax reuqest.
*/
public void onClose(AjaxRequestTarget target);
}
@@ -229,9 +210,8 @@
}
/**
- * Sets the name of the page ma for the content page. This makes only sense
- * when the content is a page, not a component and if wicket multiwindow
- * support is turned on.
+ * Sets the name of the page ma for the content page. This makes only sense when the content is
+ * a page, not a component and if wicket multiwindow support is turned on.
*
* @param pageMapName
* Name of the page map
@@ -252,8 +232,8 @@
}
/**
- * Sets the <code>{@link PageCreator}</code> instance. The instance is
- * only used when no custom component has been added to the dialog.
+ * Sets the <code>{@link PageCreator}</code> instance. The instance is only used when no
+ * custom component has been added to the dialog.
*
* @param creator
* <code>{@link PageCreator}</code> instance
@@ -302,9 +282,9 @@
}
/**
- * Hides the modal window. This can be called from within the modal window,
- * however, the modal window must have configured WindowClosedCallback.
- * Otherwise use the {@link #close(AjaxRequestTarget)} method.
+ * Hides the modal window. This can be called from within the modal window, however, the modal
+ * window must have configured WindowClosedCallback. Otherwise use the
+ * {@link #close(AjaxRequestTarget)} method.
*
* @param target
* Request target associated with current ajax request.
@@ -364,9 +344,8 @@
}
/**
- * Sets the minimal width of window. This value is only used if the window
- * is resizable. The width is specified in pixels and it is the width of
- * entire window (including frame).
+ * Sets the minimal width of window. This value is only used if the window is resizable. The
+ * width is specified in pixels and it is the width of entire window (including frame).
*
* @param minimalWidth
* Minimal window width.
@@ -387,9 +366,8 @@
}
/**
- * Sets the minimal height of window. This value is only used if window is
- * resizable. The height is specified in pixels and it is the height of
- * window content (without frame).
+ * Sets the minimal height of window. This value is only used if window is resizable. The height
+ * is specified in pixels and it is the height of window content (without frame).
*
* @param minimalHeight
* Minimal height
@@ -420,10 +398,9 @@
public final static String CSS_CLASS_GRAY = "w_silver";
/**
- * Sets the CSS class name for this window. This class affects the look of
- * window frame. Possible values (if you don't make your style sheet) are
- * <code>{@link #CSS_CLASS_BLUE}</code> and
- * <code>{@link #CSS_CLASS_GRAY}</code>.
+ * Sets the CSS class name for this window. This class affects the look of window frame.
+ * Possible values (if you don't make your style sheet) are <code>{@link #CSS_CLASS_BLUE}</code>
+ * and <code>{@link #CSS_CLASS_GRAY}</code>.
*
* @param cssClassName
*/
@@ -443,11 +420,10 @@
}
/**
- * Sets the initial width of the window. The width refers to the width of
- * entire window (including frame). If the window is resizable, the width
- * unit is always "px". If the window is not resizable, the unit can be
- * specified using {@link #setWidthUnit(String)}. If cookie name is set and
- * window is resizable, the initial width may be ignored in favor of width
+ * Sets the initial width of the window. The width refers to the width of entire window
+ * (including frame). If the window is resizable, the width unit is always "px". If the window
+ * is not resizable, the unit can be specified using {@link #setWidthUnit(String)}. If cookie
+ * name is set and window is resizable, the initial width may be ignored in favor of width
* stored in cookie.
*
* @param initialWidth
@@ -469,12 +445,11 @@
}
/**
- * Sets the initial height of the window. The height refers to the height of
- * window content (without frame). If the window is resizable, the height
- * unit is always "px". If the window is not resizable, the unit can be
- * specified using {@link #setHeightUnit(String)}. If cookie name is set
- * and window is resizable, the initial height may be ignred in favor of
- * height stored in cookie.
+ * Sets the initial height of the window. The height refers to the height of window content
+ * (without frame). If the window is resizable, the height unit is always "px". If the window is
+ * not resizable, the unit can be specified using {@link #setHeightUnit(String)}. If cookie
+ * name is set and window is resizable, the initial height may be ignred in favor of height
+ * stored in cookie.
*
* @param initialHeight
* Initial height of the window
@@ -495,13 +470,12 @@
}
/**
- * Sets whether to use initial height or preserve the real content height.
- * This can only be used if the content is a component (not a page) and the
- * window is not resizable.
+ * Sets whether to use initial height or preserve the real content height. This can only be used
+ * if the content is a component (not a page) and the window is not resizable.
*
* @param useInitialHeight
- * Whether to use initial height instead of preserving content
- * height instead of using initial height
+ * Whether to use initial height instead of preserving content height instead of
+ * using initial height
*/
public void setUseInitialHeight(boolean useInitialHeight)
{
@@ -509,12 +483,12 @@
}
/**
- * Returns true if the initial height should be used (in favour of
- * preserving real content height).
+ * Returns true if the initial height should be used (in favour of preserving real content
+ * height).
*
- * @return True if initial height should be used, false is real content
- * height should be preserved (valid only if the window is not
- * resizable and the content is a component (not a page)
+ * @return True if initial height should be used, false is real content height should be
+ * preserved (valid only if the window is not resizable and the content is a component
+ * (not a page)
*/
public boolean isUseInitialHeight()
{
@@ -543,8 +517,8 @@
}
/**
- * Sets the CSS unit used for initial window width. This is only applicable
- * when the window is not resizable.
+ * Sets the CSS unit used for initial window width. This is only applicable when the window is
+ * not resizable.
*
* @param widthUnit
* CSS unit for initial window width.
@@ -565,8 +539,8 @@
}
/**
- * Sets the CSS unit used for initial window height. This is only applicable
- * when the window is not resizable.
+ * Sets the CSS unit used for initial window height. This is only applicable when the window is
+ * not resizable.
*
* @param heightUnit
* CSS unit for initial window height.
@@ -587,8 +561,8 @@
}
/**
- * Sets the name of the cookie that is used to remeber window position (and
- * size if the window is resizable).
+ * Sets the name of the cookie that is used to remeber window position (and size if the window
+ * is resizable).
*
* @param cookieName
* Name of the cookie
@@ -603,8 +577,8 @@
}
/**
- * Returns the name of cookie that is used to remebember window position
- * (and size if the window is resizable).
+ * Returns the name of cookie that is used to remebember window position (and size if the window
+ * is resizable).
*
* @return Name of the cookie
*/
@@ -614,9 +588,8 @@
}
/**
- * Sets the title of window. If the window is a page, title can be
- * <code>null</code>. In that case it will display the title document
- * inside the window.
+ * Sets the title of window. If the window is a page, title can be <code>null</code>. In that
+ * case it will display the title document inside the window.
*
* @param title
* Title of the window
@@ -625,11 +598,10 @@
{
this.title = new Model(title);
}
-
+
/**
- * Sets the title of window. If the window is a page, title can be
- * <code>null</code>. In that case it will display the title document
- * inside the window.
+ * Sets the title of window. If the window is a page, title can be <code>null</code>. In that
+ * case it will display the title document inside the window.
*
* @param title
* Title of the window
@@ -650,12 +622,11 @@
}
/**
- * Mask is the element behind the window, that prevents user from
- * interacting the rest of page. Mask can be either
+ * Mask is the element behind the window, that prevents user from interacting the rest of page.
+ * Mask can be either
* <ul>
* <li><code>{@link #TRANSPARENT}</code> - the mask is invisible
- * <li><code>{@link #SEMI_TRANSPARENT}</code> - the mask is black with
- * small opacity (10%)
+ * <li><code>{@link #SEMI_TRANSPARENT}</code> - the mask is black with small opacity (10%)
* </ul>
*
* @author Matej Knopp
@@ -760,7 +731,7 @@
getContent().setOutputMarkupId(true);
getContent().setVisible(shown);
-
+
super.onBeforeRender();
}
@@ -775,8 +746,8 @@
/**
- * Returns a content component. In case user haven't specified any content
- * component, it returns an empty WebMarkupContainer.
+ * Returns a content component. In case user haven't specified any content component, it returns
+ * an empty WebMarkupContainer.
*
* @return Content component
*/
@@ -788,8 +759,7 @@
/**
* Returns true if user has added own component to the window.
*
- * @return True if user has added own component to the window, false
- * otherwise.
+ * @return True if user has added own component to the window, false otherwise.
*/
private boolean isCustomComponent()
{
@@ -870,8 +840,8 @@
protected void respond(AjaxRequestTarget target)
{
- if (closeButtonCallback == null
- || closeButtonCallback.onCloseButtonClicked(target) == true)
+ if (closeButtonCallback == null ||
+ closeButtonCallback.onCloseButtonClicked(target) == true)
{
close(target);
}
@@ -926,8 +896,8 @@
if (isCustomComponent() == true)
{
- buffer.append("var element = document.getElementById(\"" + getContentMarkupId()
- + "\");\n");
+ buffer.append("var element = document.getElementById(\"" + getContentMarkupId() +
+ "\");\n");
}
buffer.append("var settings = new Object();\n");
@@ -974,7 +944,7 @@
buffer.append("settings.cookieId=\"" + getCookieName() + "\";\n");
}
-
+
Object title = getTitle() != null ? getTitle().getObject() : null;
if (title != null)
{
@@ -1000,8 +970,8 @@
{
WindowClosedBehavior behavior = (WindowClosedBehavior)getBehaviors(
WindowClosedBehavior.class).get(0);
- buffer.append("settings.onClose = function() { " + behavior.getCallbackScript()
- + " };\n");
+ buffer.append("settings.onClose = function() { " + behavior.getCallbackScript() +
+ " };\n");
haveCloseCallback = true;
}
@@ -1013,8 +983,8 @@
{
CloseButtonBehavior behavior = (CloseButtonBehavior)getBehaviors(
CloseButtonBehavior.class).get(0);
- buffer.append("settings.onCloseButton = function() { " + behavior.getCallbackScript()
- + "};\n");
+ buffer.append("settings.onCloseButton = function() { " + behavior.getCallbackScript() +
+ "};\n");
}
postProcessSettings(buffer);
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByBorder.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByBorder.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByBorder.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByBorder.java Mon Oct 15 15:46:09 2007
@@ -118,8 +118,7 @@
}
/**
- * This method is a hook for subclasses to perform an action after sort has
- * changed
+ * This method is a hook for subclasses to perform an action after sort has changed
*/
protected void onSortChanged()
{
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByLink.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/sort/AjaxFallbackOrderByLink.java Mon Oct 15 15:46:09 2007
@@ -116,9 +116,9 @@
}
/**
- * Callback method when an ajax click occurs. All the behavior of changing
- * the sort, etc is already performed bfore this is called so this method
- * should primarily be used to configure the target.
+ * Callback method when an ajax click occurs. All the behavior of changing the sort, etc is
+ * already performed bfore this is called so this method should primarily be used to configure
+ * the target.
*
* @param target
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackDefaultDataTable.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackDefaultDataTable.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackDefaultDataTable.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackDefaultDataTable.java Mon Oct 15 15:46:09 2007
@@ -30,13 +30,11 @@
/**
- * An implementation of the DataTable that aims to solve the 90% usecase by
- * adding navigation, headers, an no-records-found toolbars to a standard
- * {@link DataTable}.
+ * An implementation of the DataTable that aims to solve the 90% usecase by adding navigation,
+ * headers, an no-records-found toolbars to a standard {@link DataTable}.
* <p>
- * The {@link NavigationToolbar} and the {@link HeadersToolbar} are added as top
- * toolbars, while the {@link NoRecordsToolbar} toolbar is added as a bottom
- * toolbar.
+ * The {@link NavigationToolbar} and the {@link HeadersToolbar} are added as top toolbars, while the
+ * {@link NoRecordsToolbar} toolbar is added as a bottom toolbar.
*
* @see DataTable
* @see HeadersToolbar
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackHeadersToolbar.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackHeadersToolbar.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackHeadersToolbar.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxFallbackHeadersToolbar.java Mon Oct 15 15:46:09 2007
@@ -77,8 +77,7 @@
}
/**
- * Returns a decorator that will be used to decorate ajax links used in
- * sortable headers
+ * Returns a decorator that will be used to decorate ajax links used in sortable headers
*
* @return decorator or null for none
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxNavigationToolbar.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxNavigationToolbar.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxNavigationToolbar.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/repeater/data/table/AjaxNavigationToolbar.java Mon Oct 15 15:46:09 2007
@@ -24,9 +24,8 @@
/**
- * Toolbar that displays (Ajax) links used to navigate the pages of the
- * datatable as well as a message about which rows are being displayed and their
- * total number in the data table.
+ * Toolbar that displays (Ajax) links used to navigate the pages of the datatable as well as a
+ * message about which rows are being displayed and their total number in the data table.
*
* @author Igor Vaynberg (ivaynberg)
* @author Martijn Dashorst (dashorst)
@@ -49,8 +48,7 @@
/**
- * Factory method used to create the paging navigator that will be used by
- * the datatable.
+ * Factory method used to create the paging navigator that will be used by the datatable.
*
* @param navigatorId
* component id the navigator should be created with
@@ -65,9 +63,8 @@
private static final long serialVersionUID = 1L;
/**
- * Implement our own ajax event handling in order to update the
- * datatable itself, as the default implementation doesn't support
- * DataViews.
+ * Implement our own ajax event handling in order to update the datatable itself, as the
+ * default implementation doesn't support DataViews.
*
* @see AjaxPagingNavigator#onAjaxEvent(AjaxRequestTarget)
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/tabs/AjaxTabbedPanel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/tabs/AjaxTabbedPanel.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/tabs/AjaxTabbedPanel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/tabs/AjaxTabbedPanel.java Mon Oct 15 15:46:09 2007
@@ -25,8 +25,8 @@
/**
- * Ajaxified version of the tabbed panel. Uses AjaxFallbackLink instead of
- * regular wicket links so it can update itself inplace.
+ * Ajaxified version of the tabbed panel. Uses AjaxFallbackLink instead of regular wicket links so
+ * it can update itself inplace.
*
* @author Igor Vaynberg (ivaynberg)
*
@@ -45,7 +45,7 @@
{
super(id, tabs);
setOutputMarkupId(true);
-
+
setVersioned(false);
}
@@ -70,14 +70,13 @@
}
/**
- * A template method that lets users add additional behavior when ajax
- * update occurs. This method is called after the current tab has been set
- * so access to it can be obtained via {@link #getSelectedTab()}.
+ * A template method that lets users add additional behavior when ajax update occurs. This
+ * method is called after the current tab has been set so access to it can be obtained via
+ * {@link #getSelectedTab()}.
* <p>
- * <strong>Note</strong> Since an {@link AjaxFallbackLink} is used to back
- * the ajax update the <code>target</code> argument can be null when the client
- * browser does not support ajax and the fallback mode is used. See
- * {@link AjaxFallbackLink} for details.
+ * <strong>Note</strong> Since an {@link AjaxFallbackLink} is used to back the ajax update the
+ * <code>target</code> argument can be null when the client browser does not support ajax and
+ * the fallback mode is used. See {@link AjaxFallbackLink} for details.
*
* @param target
* ajax target used to update this component
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbBar.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbBar.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbBar.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbBar.java Mon Oct 15 15:46:09 2007
@@ -30,9 +30,8 @@
/**
- * A component that renders bread crumbs. By default, it renders a horizontal
- * list from left to right (oldest left) with bread crumb links and a ' / ' as a
- * seperator, e.g.
+ * A component that renders bread crumbs. By default, it renders a horizontal list from left to
+ * right (oldest left) with bread crumb links and a ' / ' as a seperator, e.g.
*
* <pre>
* first / second / third
@@ -42,8 +41,8 @@
* Delegates how the bread crumb model works to {@link DefaultBreadCrumbsModel}.
* </p>
* <p>
- * Override and provide your own markup file if you want to work with other
- * elements, e.g. uls instead of spans.
+ * Override and provide your own markup file if you want to work with other elements, e.g. uls
+ * instead of spans.
* </p>
*
* @author Eelco Hillenius
@@ -246,12 +245,12 @@
}
/**
- * Gets whether the current bread crumb should be displayed as a link (e.g.
- * for refreshing) or as a disabled link (effictively just a label). The
- * latter is the default. Override if you want different behavior.
+ * Gets whether the current bread crumb should be displayed as a link (e.g. for refreshing) or
+ * as a disabled link (effictively just a label). The latter is the default. Override if you
+ * want different behavior.
*
- * @return Whether the current bread crumb should be displayed as a link;
- * this method returns false
+ * @return Whether the current bread crumb should be displayed as a link; this method returns
+ * false
*/
protected boolean getEnableLinkToCurrent()
{
@@ -259,9 +258,8 @@
}
/**
- * Creates a new bread crumb component. That component will be rendered as
- * part of the bread crumbs list (which is a <ul> <li>
- * structure).
+ * Creates a new bread crumb component. That component will be rendered as part of the bread
+ * crumbs list (which is a <ul> <li> structure).
*
* @param id
* The component id
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbLink.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbLink.java Mon Oct 15 15:46:09 2007
@@ -23,11 +23,10 @@
/**
* A link that when clicked will set the the active
- * {@link IBreadCrumbParticipant bread crumb participant} to the one that is
- * returned by {@link #getParticipant(String)}. It is used internally by
- * {@link BreadCrumbBar the the bread crumb bar component}, and you can use it
- * for rendering links e.g. with
- * {@link BreadCrumbPanel bread crumb panel components}.
+ * {@link IBreadCrumbParticipant bread crumb participant} to the one that is returned by
+ * {@link #getParticipant(String)}. It is used internally by
+ * {@link BreadCrumbBar the the bread crumb bar component}, and you can use it for rendering links
+ * e.g. with {@link BreadCrumbPanel bread crumb panel components}.
*
* <p>
* When clicked, it registers a change for backbutton support.
@@ -65,8 +64,8 @@
final IBreadCrumbParticipant active = breadCrumbModel.getActive();
if (active == null)
{
- throw new IllegalStateException("The model has no active bread crumb. Before using "
- + this + ", you have to have at least one bread crumb in the model");
+ throw new IllegalStateException("The model has no active bread crumb. Before using " +
+ this + ", you have to have at least one bread crumb in the model");
}
// get the participant to set as active
@@ -88,13 +87,13 @@
}
/**
- * Gets the {@link IBreadCrumbParticipant bread crumb participant} to be set
- * active when the link is clicked.
+ * Gets the {@link IBreadCrumbParticipant bread crumb participant} to be set active when the
+ * link is clicked.
*
* @param componentId
- * When the participant creates it's own view, it typically
- * should use this component id for the component that is
- * returned by {@link IBreadCrumbParticipant#getComponent()}.
+ * When the participant creates it's own view, it typically should use this component
+ * id for the component that is returned by
+ * {@link IBreadCrumbParticipant#getComponent()}.
* @return The bread crumb participant
*/
protected abstract IBreadCrumbParticipant getParticipant(String componentId);
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbModelListenerSupport.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbModelListenerSupport.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbModelListenerSupport.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/BreadCrumbModelListenerSupport.java Mon Oct 15 15:46:09 2007
@@ -24,8 +24,7 @@
/**
- * Utility class for working with
- * {@link IBreadCrumbModelListener bread crumb model listeners}.
+ * Utility class for working with {@link IBreadCrumbModelListener bread crumb model listeners}.
*
* @author Eelco Hillenius
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/DefaultBreadCrumbsModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/DefaultBreadCrumbsModel.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/DefaultBreadCrumbsModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/DefaultBreadCrumbsModel.java Mon Oct 15 15:46:09 2007
@@ -20,8 +20,7 @@
import java.util.List;
/**
- * Default breadcrumb model implementation that should be good for 99% of the
- * use cases out there.
+ * Default breadcrumb model implementation that should be good for 99% of the use cases out there.
*
* @author eelcohillenius
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModel.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModel.java Mon Oct 15 15:46:09 2007
@@ -23,14 +23,13 @@
/**
- * Bread crumbs provide a means to track certain history of client actions.
- * Bread crumbs are typically rendered as a list of links, and are useful when
- * users 'dig deeper' into the site structure so that they can find their way
- * back again and have a notion of where they currently are.
+ * Bread crumbs provide a means to track certain history of client actions. Bread crumbs are
+ * typically rendered as a list of links, and are useful when users 'dig deeper' into the site
+ * structure so that they can find their way back again and have a notion of where they currently
+ * are.
* <p>
- * Bread crumbs in the original sense just represent where people are in a site
- * hierarchy. For example, when browsing a product site, bread crumbs could look
- * like this:
+ * Bread crumbs in the original sense just represent where people are in a site hierarchy. For
+ * example, when browsing a product site, bread crumbs could look like this:
*
* <pre>
* Home > Products & Solutions > Hardware > Desktop Systems
@@ -44,28 +43,23 @@
*
* These items would be rendered as links to the corresponding site location.
* </p>
- * Classes that implement this interface are responsible for managing such a
- * bread crumb structure. A {@link BreadCrumbBar typical implementation} regards
- * bread crumbs as a stack. When
- * {@link #setActive(IBreadCrumbParticipant) a bread crumb is activated} that
- * was not in the stack yet, it would add it to the stack, or when a bread crumb
- * is activated that is already on the stack, it would roll back to the
- * corresponding depth.
+ * Classes that implement this interface are responsible for managing such a bread crumb structure.
+ * A {@link BreadCrumbBar typical implementation} regards bread crumbs as a stack. When
+ * {@link #setActive(IBreadCrumbParticipant) a bread crumb is activated} that was not in the stack
+ * yet, it would add it to the stack, or when a bread crumb is activated that is already on the
+ * stack, it would roll back to the corresponding depth.
* <p>
- * This model does not make any presumptions on how it should interact with
- * components. Just that there is a list of
- * {@link IBreadCrumbParticipant bread crumb participants}, and the notion of a
+ * This model does not make any presumptions on how it should interact with components. Just that
+ * there is a list of {@link IBreadCrumbParticipant bread crumb participants}, and the notion of a
* currently active bread crumb participant.
* </p>
* <p>
- * A {@link IBreadCrumbParticipant bread crumb participant} is not an actual
- * bread crump, but rather a proxy to components that represent a certain
- * location relative to other bread crumbs in this model, and a means to get the
- * bread crumb title, which is typically rendered as a link label of the actual
- * bread crumb. The actual bread crumbs are supposed to be rendered by a
- * component that works together with this model. I choose this model as this
- * would suit what I think is one of the nicest patterns:
- * {@link BreadCrumbPanel bread crumb aware panels}.
+ * A {@link IBreadCrumbParticipant bread crumb participant} is not an actual bread crump, but rather
+ * a proxy to components that represent a certain location relative to other bread crumbs in this
+ * model, and a means to get the bread crumb title, which is typically rendered as a link label of
+ * the actual bread crumb. The actual bread crumbs are supposed to be rendered by a component that
+ * works together with this model. I choose this model as this would suit what I think is one of the
+ * nicest patterns: {@link BreadCrumbPanel bread crumb aware panels}.
* </p>
*
* @author Eelco Hillenius
@@ -104,8 +98,8 @@
void removeListener(IBreadCrumbModelListener listener);
/**
- * Sets the {@link IBreadCrumbParticipant bread crumb} as the active one.
- * Implementations should call
+ * Sets the {@link IBreadCrumbParticipant bread crumb} as the active one. Implementations should
+ * call
* {@link IBreadCrumbModelListener#breadCrumbAdded(IBreadCrumbParticipant) bread crumb added}
* when the bread crumb was not yet part of the model, and
* {@link IBreadCrumbModelListener#breadCrumbRemoved(IBreadCrumbParticipant) bread crumb removed}
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModelListener.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModelListener.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModelListener.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbModelListener.java Mon Oct 15 15:46:09 2007
@@ -21,8 +21,7 @@
import org.apache.wicket.IClusterable;
/**
- * Bread crumb model listeners get notified by
- * {@link IBreadCrumbModel bread crumb models} of
+ * Bread crumb model listeners get notified by {@link IBreadCrumbModel bread crumb models} of
* {@link #breadCrumbActivated(IBreadCrumbParticipant, IBreadCrumbParticipant) activation},
* {@link #breadCrumbAdded(IBreadCrumbParticipant) addition} and
* {@link #breadCrumbRemoved(IBreadCrumbParticipant) removal} events.
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbParticipant.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbParticipant.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbParticipant.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/IBreadCrumbParticipant.java Mon Oct 15 15:46:09 2007
@@ -22,18 +22,17 @@
/**
- * Bread crumb participants function as proxies for components that are part of
- * a bread crumb hierarchy. An example of a bread crumb is:
+ * Bread crumb participants function as proxies for components that are part of a bread crumb
+ * hierarchy. An example of a bread crumb is:
*
* <pre>
* Home > Products & Solutions > Hardware > Desktop Systems
* </pre>
*
* In a {@link BreadCrumbPanel panel based implementation}, <tt>Home</tt>,
- * <tt>Products & Solutions</tt> etc would be seperate panels that all are
- * bread crumb participants: for instance the <tt>Home</tt> participant's
- * {@link #getTitle() title} would return 'Home', and
- * {@link #getComponent() the component} would be the corresponding panel.
+ * <tt>Products & Solutions</tt> etc would be seperate panels that all are bread crumb
+ * participants: for instance the <tt>Home</tt> participant's {@link #getTitle() title} would
+ * return 'Home', and {@link #getComponent() the component} would be the corresponding panel.
*
* @author Eelco Hillenius
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanel.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanel.java Mon Oct 15 15:46:09 2007
@@ -26,11 +26,10 @@
/**
- * A panel that participates with a {@link IBreadCrumbModel bread crumb model}.
- * The idea is that you would have a dialog-like component that is much like a
- * wizard, but more decoupled. A typical setup is that you have a panel, where
- * the content is dynamic but hierarchical in nature, and that there are links
- * on the panel that <i>take you deeper into the hierarchy<i>
+ * A panel that participates with a {@link IBreadCrumbModel bread crumb model}. The idea is that
+ * you would have a dialog-like component that is much like a wizard, but more decoupled. A typical
+ * setup is that you have a panel, where the content is dynamic but hierarchical in nature, and that
+ * there are links on the panel that <i>take you deeper into the hierarchy<i>
*
* <p>
* An example of using {@link BreadCrumbPanel bread crumb panels} and
@@ -46,11 +45,10 @@
* });
* </pre>
*
- * where <tt>MyPanel</tt> is a {@link BreadCrumbPanel bread crumb panel} and
- * the link is added to another {@link BreadCrumbPanel bread crumb panel}
- * instance (this). When clicked, MyPanel will replace the panel that the link
- * is placed on, and it will set (and add) <tt>MyPanel</tt> as the active
- * bread crumb in the {@link IBreadCrumbModel bread crumb component model}.
+ * where <tt>MyPanel</tt> is a {@link BreadCrumbPanel bread crumb panel} and the link is added to
+ * another {@link BreadCrumbPanel bread crumb panel} instance (this). When clicked, MyPanel will
+ * replace the panel that the link is placed on, and it will set (and add) <tt>MyPanel</tt> as the
+ * active bread crumb in the {@link IBreadCrumbModel bread crumb component model}.
* </p>
*
* @author Eelco Hillenius
@@ -106,10 +104,9 @@
}
/**
- * Activates the {@link BreadCrumbPanel bread crumb panel} that is the
- * result of calling
- * {@link IBreadCrumbPanelFactory#create(String, IBreadCrumbModel) the create method}
- * of the bread crumb panel factory.
+ * Activates the {@link BreadCrumbPanel bread crumb panel} that is the result of calling
+ * {@link IBreadCrumbPanelFactory#create(String, IBreadCrumbModel) the create method} of the
+ * bread crumb panel factory.
*
* @param breadCrumbPanelFactory
*/
@@ -119,11 +116,10 @@
}
/**
- * Activates the provided participant, which typically has the effect of
- * replacing this current panel with the one provided - as the participant
- * typically would be a {@link BreadCrumbPanel bread crumb panel} - and
- * updating the bread crumb model of this panel, pushing the bread crumb for
- * the given participant on top.
+ * Activates the provided participant, which typically has the effect of replacing this current
+ * panel with the one provided - as the participant typically would be a
+ * {@link BreadCrumbPanel bread crumb panel} - and updating the bread crumb model of this panel,
+ * pushing the bread crumb for the given participant on top.
*
* @param participant
* The participant to set as the active one
@@ -134,8 +130,8 @@
final IBreadCrumbParticipant active = breadCrumbModel.getActive();
if (active == null)
{
- throw new IllegalStateException("The model has no active bread crumb. Before using "
- + this + ", you have to have at least one bread crumb in the model");
+ throw new IllegalStateException("The model has no active bread crumb. Before using " +
+ this + ", you have to have at least one bread crumb in the model");
}
// add back button support
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelFactory.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelFactory.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelFactory.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelFactory.java Mon Oct 15 15:46:09 2007
@@ -22,9 +22,8 @@
/**
- * Simple factory that creates instances of a
- * {@link BreadCrumbPanel bread crumb panel} based on the class it is
- * constructed with.
+ * Simple factory that creates instances of a {@link BreadCrumbPanel bread crumb panel} based on the
+ * class it is constructed with.
*
* @author Eelco Hillenius
*/
@@ -39,8 +38,8 @@
* Construct.
*
* @param panelClass
- * The class to use for creating instances. Must be of type
- * {@link BreadCrumbPanel}, and must have constructor
+ * The class to use for creating instances. Must be of type {@link BreadCrumbPanel},
+ * and must have constructor
* {@link BreadCrumbPanel#BreadCrumbPanel(String, IBreadCrumbModel)}
*/
public BreadCrumbPanelFactory(final Class panelClass)
@@ -52,8 +51,8 @@
if (!BreadCrumbPanel.class.isAssignableFrom(panelClass))
{
- throw new IllegalArgumentException("argument panelClass (" + panelClass
- + ") must extend class " + BreadCrumbPanel.class.getName());
+ throw new IllegalArgumentException("argument panelClass (" + panelClass +
+ ") must extend class " + BreadCrumbPanel.class.getName());
}
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelLink.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbPanelLink.java Mon Oct 15 15:46:09 2007
@@ -21,8 +21,8 @@
import org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant;
/**
- * Bread crumb link specifically for {@link BreadCrumbPanel bread crumb panels}.
- * It uses a {@link IBreadCrumbPanelFactory bread crumb factory} to function.
+ * Bread crumb link specifically for {@link BreadCrumbPanel bread crumb panels}. It uses a
+ * {@link IBreadCrumbPanelFactory bread crumb factory} to function.
*
* @author Eelco Hillenius
*/
@@ -45,8 +45,8 @@
* The calling panel which will be used to get the
* {@link IBreadCrumbModel bread crumb model} from.
* @param panelClass
- * The class to use for creating instances. Must be of type
- * {@link BreadCrumbPanel}, and must have constructor
+ * The class to use for creating instances. Must be of type {@link BreadCrumbPanel},
+ * and must have constructor
* {@link BreadCrumbPanel#BreadCrumbPanel(String, IBreadCrumbModel)}
*/
public BreadCrumbPanelLink(final String id, final BreadCrumbPanel caller, final Class panelClass)
@@ -62,8 +62,8 @@
* @param breadCrumbModel
* The bread crumb model
* @param panelClass
- * The class to use for creating instances. Must be of type
- * {@link BreadCrumbPanel}, and must have constructor
+ * The class to use for creating instances. Must be of type {@link BreadCrumbPanel},
+ * and must have constructor
* {@link BreadCrumbPanel#BreadCrumbPanel(String, IBreadCrumbModel)}
*/
public BreadCrumbPanelLink(final String id, final IBreadCrumbModel breadCrumbModel,
@@ -101,8 +101,7 @@
}
/**
- * Uses the set factory for creating a new instance of
- * {@link IBreadCrumbParticipant}.
+ * Uses the set factory for creating a new instance of {@link IBreadCrumbParticipant}.
*
* @see org.apache.wicket.extensions.breadcrumb.BreadCrumbLink#getParticipant(java.lang.String)
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbParticipantDelegate.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbParticipantDelegate.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbParticipantDelegate.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/BreadCrumbParticipantDelegate.java Mon Oct 15 15:46:09 2007
@@ -26,9 +26,8 @@
import org.apache.wicket.markup.html.panel.Panel;
/**
- * Base implementation for {@link Panel}/ {@link Component} based
- * {@link IBreadCrumbParticipant} that decouples the implementation from the
- * actual panel class.
+ * Base implementation for {@link Panel}/ {@link Component} based {@link IBreadCrumbParticipant}
+ * that decouples the implementation from the actual panel class.
*
* @author eelcohillenius
*/
@@ -61,8 +60,8 @@
}
/**
- * If the previous participant is not null (and a component, which it should
- * be), replace that component on it's parent with this one.
+ * If the previous participant is not null (and a component, which it should be), replace that
+ * component on it's parent with this one.
*
* @see org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant#onActivate(org.apache.wicket.extensions.breadcrumb.IBreadCrumbParticipant)
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/IBreadCrumbPanelFactory.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/IBreadCrumbPanelFactory.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/IBreadCrumbPanelFactory.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/breadcrumb/panel/IBreadCrumbPanelFactory.java Mon Oct 15 15:46:09 2007
@@ -21,15 +21,15 @@
/**
- * Factory interface to enabled defered creation of a bread crumb panel while
- * getting the proper id for creation. Mainly meant for supporting
+ * Factory interface to enabled defered creation of a bread crumb panel while getting the proper id
+ * for creation. Mainly meant for supporting
* {@link BreadCrumbPanel#activate(IBreadCrumbPanelFactory)}.
*/
public interface IBreadCrumbPanelFactory extends IClusterable
{
/**
- * Creates a new {@link BreadCrumbPanel bread crumb panel} instance. The
- * provided component id must be used when creating the panel.
+ * Creates a new {@link BreadCrumbPanel bread crumb panel} instance. The provided component id
+ * must be used when creating the panel.
*
* @param componentId
* The component id for the new panel.
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/DefaultLinkParser.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/DefaultLinkParser.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/DefaultLinkParser.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/DefaultLinkParser.java Mon Oct 15 15:46:09 2007
@@ -35,8 +35,7 @@
private static final String urlPattern = "([a-zA-Z]+://[\\w\\.\\-\\:\\/]+)[\\w\\.:\\-/?&=%]*";
/**
- * Email address render strategy.<br/> Renders <a
- * href="mailto:{EMAIL}">{EMAIL}</a>
+ * Email address render strategy.<br/> Renders <a href="mailto:{EMAIL}">{EMAIL}</a>
*/
public static final ILinkRenderStrategy EMAIL_RENDER_STRATEGY = new ILinkRenderStrategy()
{
@@ -47,9 +46,8 @@
};
/**
- * Email address render strategy. Similar to
- * <code>EMAIL_RENDER_STRATEGY</code>, but encrypts the email address
- * with html entities.
+ * Email address render strategy. Similar to <code>EMAIL_RENDER_STRATEGY</code>, but encrypts
+ * the email address with html entities.
*/
public static final ILinkRenderStrategy ENCRYPTED_EMAIL_RENDER_STRATEGY = new ILinkRenderStrategy()
{
@@ -62,14 +60,14 @@
cryptedEmail.append(Integer.toString(linkTarget.charAt(i)));
cryptedEmail.append(";");
}
-
+
AppendingStringBuffer result = new AppendingStringBuffer(256);
result.append("<a href=\"mailto:");
result.append(cryptedEmail.toString());
result.append("\">");
result.append(cryptedEmail.toString());
result.append("</a>");
-
+
return result.toString();
}
};
@@ -81,10 +79,10 @@
{
public String buildLink(String linkTarget)
{
- return "<a href=\""
- + linkTarget
- + "\">"
- + (linkTarget.indexOf('?') == -1 ? linkTarget : linkTarget.substring(0,
+ return "<a href=\"" +
+ linkTarget +
+ "\">" +
+ (linkTarget.indexOf('?') == -1 ? linkTarget : linkTarget.substring(0,
linkTarget.indexOf('?'))) + "</a>";
}
};
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkParser.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkParser.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkParser.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkParser.java Mon Oct 15 15:46:09 2007
@@ -17,8 +17,8 @@
package org.apache.wicket.extensions.markup.html.basic;
/**
- * <code>ILinkParser</code> parses an input text and performs modififactions
- * according to its render strategies.
+ * <code>ILinkParser</code> parses an input text and performs modififactions according to its
+ * render strategies.
*
* @author Gerolf Seitz
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkRenderStrategy.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkRenderStrategy.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkRenderStrategy.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/ILinkRenderStrategy.java Mon Oct 15 15:46:09 2007
@@ -17,9 +17,8 @@
package org.apache.wicket.extensions.markup.html.basic;
/**
- * An implementation of <code>ILinkRenderStrategy</code> transforms a link
- * target (e.g. email address) into a proper html link (e.g. <a
- * href="mailto:...">...</a>)
+ * An implementation of <code>ILinkRenderStrategy</code> transforms a link target (e.g. email
+ * address) into a proper html link (e.g. <a href="mailto:...">...</a>)
*
* @author Gerolf Seitz
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/LinkParser.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/LinkParser.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/LinkParser.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/LinkParser.java Mon Oct 15 15:46:09 2007
@@ -25,9 +25,8 @@
import org.apache.wicket.util.string.Strings;
/**
- * This base implementation iterates over all provided
- * <code>ILinkRenderStrategy</code> implementations and applies them to the
- * input text.
+ * This base implementation iterates over all provided <code>ILinkRenderStrategy</code>
+ * implementations and applies them to the input text.
*
* @author Gerolf Seitz
*/
@@ -39,11 +38,10 @@
* Adds a render strategy to the parser.
*
* @param pattern
- * the pattern to which the provided <code>renderStrategy</code>
- * should be applied.
+ * the pattern to which the provided <code>renderStrategy</code> should be applied.
* @param renderStrategy
- * the <code>ILinkRenderStrategy</code> which is applied to the
- * text found by the provided <code>pattern</code>.
+ * the <code>ILinkRenderStrategy</code> which is applied to the text found by the
+ * provided <code>pattern</code>.
* @return this <code>ILinkParser</code>.
*/
public ILinkParser addLinkRenderStrategy(String pattern, ILinkRenderStrategy renderStrategy)
@@ -61,9 +59,9 @@
{
return text;
}
-
+
String work = text;
- Iterator iter = renderStrategies.keySet().iterator();
+ Iterator iter = renderStrategies.keySet().iterator();
while (iter.hasNext())
{
String pattern = (String)iter.next();
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkLabel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkLabel.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkLabel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkLabel.java Mon Oct 15 15:46:09 2007
@@ -23,17 +23,15 @@
/**
- * If you have email addresses or web URLs in the data that you are displaying,
- * then you can automatically display those pieces of data as hyperlinks, you
- * will not have to take any action to convert that data.
+ * If you have email addresses or web URLs in the data that you are displaying, then you can
+ * automatically display those pieces of data as hyperlinks, you will not have to take any action to
+ * convert that data.
* <p>
- * Email addresses will be wrapped with a <a
- * href="mailto:xxx">xxx</a> tag, where "xxx" is the email address that
- * was detected.
+ * Email addresses will be wrapped with a <a href="mailto:xxx">xxx</a> tag, where "xxx"
+ * is the email address that was detected.
* <p>
- * Web URLs will be wrapped with a <a href="xxx">xxx</a> tag, where
- * "xxx" is the URL that was detected (it can be any valid URL type, http://,
- * https://, ftp://, etc...)
+ * Web URLs will be wrapped with a <a href="xxx">xxx</a> tag, where "xxx" is the URL
+ * that was detected (it can be any valid URL type, http://, https://, ftp://, etc...)
*
* @author Juergen Donnerstag
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkMultiLineLabel.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkMultiLineLabel.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkMultiLineLabel.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/basic/SmartLinkMultiLineLabel.java Mon Oct 15 15:46:09 2007
@@ -24,17 +24,15 @@
import org.apache.wicket.util.string.Strings;
/**
- * If you have email addresses or web URLs in the data that you are displaying,
- * then you can automatically display those pieces of data as hyperlinks, you
- * will not have to take any action to convert that data.
+ * If you have email addresses or web URLs in the data that you are displaying, then you can
+ * automatically display those pieces of data as hyperlinks, you will not have to take any action to
+ * convert that data.
* <p>
- * Email addresses will be wrapped with a <a
- * href="mailto:xxx">xxx</a> tag, where "xxx" is the email address that
- * was detected.
+ * Email addresses will be wrapped with a <a href="mailto:xxx">xxx</a> tag, where "xxx"
+ * is the email address that was detected.
* <p>
- * Web URLs will be wrapped with a <a href="xxx">xxx</a> tag, where
- * "xxx" is the URL that was detected (it can be any valid URL type, http://,
- * https://, ftp://, etc...)
+ * Web URLs will be wrapped with a <a href="xxx">xxx</a> tag, where "xxx" is the URL
+ * that was detected (it can be any valid URL type, http://, https://, ftp://, etc...)
*
* @author Juergen Donnerstag
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.java Mon Oct 15 15:46:09 2007
@@ -45,13 +45,11 @@
public final class CaptchaImageResource extends DynamicImageResource
{
/**
- * This class is used to encapsulate all the filters that a character will
- * get when rendered. The changes are kept so that the size of the shapes
- * can be properly recorded and reproduced later, since it dynamically
- * generates the size of the captcha image. The reason I did it this way is
- * because none of the JFC graphics classes are serializable, so they cannot
- * be instance variables here. If anyone knows a better way to do this,
- * please let me know.
+ * This class is used to encapsulate all the filters that a character will get when rendered.
+ * The changes are kept so that the size of the shapes can be properly recorded and reproduced
+ * later, since it dynamically generates the size of the captcha image. The reason I did it this
+ * way is because none of the JFC graphics classes are serializable, so they cannot be instance
+ * variables here. If anyone knows a better way to do this, please let me know.
*/
private static final class CharAttributes implements IClusterable
{
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java Mon Oct 15 15:46:09 2007
@@ -31,12 +31,11 @@
/**
* A TextField that is mapped to a <code>java.util.Date</code> object.
*
- * If you provide a <code>SimpleDateFormat</code> pattern, it will both parse
- * and validate the text field according to it.
+ * If you provide a <code>SimpleDateFormat</code> pattern, it will both parse and validate the
+ * text field according to it.
*
* If you don't, it is the same as creating a <code>TextField</code> with
- * <code>java.util.Date</code> as it's type (it will get the pattern from the
- * user's locale)
+ * <code>java.util.Date</code> as it's type (it will get the pattern from the user's locale)
*
* @author Stefan Kanev
* @author Igor Vaynberg (ivaynberg)
@@ -62,8 +61,8 @@
private IConverter converter = null;
/**
- * Creates a new DateTextField, without a specified pattern. This is the
- * same as calling <code>new TextField(id, Date.class)</code>
+ * Creates a new DateTextField, without a specified pattern. This is the same as calling
+ * <code>new TextField(id, Date.class)</code>
*
* @param id
* The id of the text field
@@ -76,8 +75,8 @@
}
/**
- * Creates a new DateTextField, without a specified pattern. This is the
- * same as calling <code>new TextField(id, object, Date.class)</code>
+ * Creates a new DateTextField, without a specified pattern. This is the same as calling
+ * <code>new TextField(id, object, Date.class)</code>
*
* @param id
* The id of the text field
@@ -92,8 +91,7 @@
}
/**
- * Creates a new DateTextField bound with a specific
- * <code>SimpleDateFormat</code> pattern.
+ * Creates a new DateTextField bound with a specific <code>SimpleDateFormat</code> pattern.
*
* @param id
* The id of the text field
@@ -108,8 +106,7 @@
}
/**
- * Creates a new DateTextField bound with a specific
- * <code>SimpleDateFormat</code> pattern.
+ * Creates a new DateTextField bound with a specific <code>SimpleDateFormat</code> pattern.
*
* @param id
* The id of the text field
@@ -127,7 +124,7 @@
this.converter = new DateConverter()
{
private static final long serialVersionUID = 1L;
-
+
/**
* @see org.apache.wicket.util.convert.converters.DateConverter#getDateFormat(java.util.Locale)
*/
@@ -139,8 +136,8 @@
}
/**
- * Returns the default converter if created without pattern; otherwise it
- * returns a pattern-specific converter.
+ * Returns the default converter if created without pattern; otherwise it returns a
+ * pattern-specific converter.
*
* @param type
* The type for which the convertor should work
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/Palette.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/Palette.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/Palette.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/Palette.java Mon Oct 15 15:46:09 2007
@@ -41,17 +41,16 @@
/**
- * Palette is a component that allows the user to easily select and order
- * multiple items by moving them from one select box into another.
+ * Palette is a component that allows the user to easily select and order multiple items by moving
+ * them from one select box into another.
* <p>
- * When creating a Palette object make sure your IChoiceRenderer returns a
- * specific ID, not the index.
+ * When creating a Palette object make sure your IChoiceRenderer returns a specific ID, not the
+ * index.
* <p>
- * <strong>Ajaxifying the palette</strong>: The palette itself cannot be
- * ajaxified because it is a panel and therefore does not receive any javascript
- * events. Instead ajax behaviors can be attached to the recorder component
- * which supports the javascript <code>onchange</code> event. The recorder
- * component can be retrieved via a call to {@link #getRecorderComponent()}.
+ * <strong>Ajaxifying the palette</strong>: The palette itself cannot be ajaxified because it is a
+ * panel and therefore does not receive any javascript events. Instead ajax behaviors can be
+ * attached to the recorder component which supports the javascript <code>onchange</code> event.
+ * The recorder component can be retrieved via a call to {@link #getRecorderComponent()}.
*
* Example:
*
@@ -76,8 +75,7 @@
private IModel choicesModel;
/**
- * choice render used to render the choices in both available and selected
- * collections
+ * choice render used to render the choices in both available and selected collections
*/
private IChoiceRenderer choiceRenderer;
@@ -88,20 +86,19 @@
private final boolean allowOrder;
/**
- * recorder component used to track user's selection. it is updated by
- * javascript on changes.
+ * recorder component used to track user's selection. it is updated by javascript on changes.
*/
private Recorder recorderComponent;
/**
- * component used to represent all available choices. by default this is a
- * select box with multiple attribute
+ * component used to represent all available choices. by default this is a select box with
+ * multiple attribute
*/
private Component choicesComponent;
/**
- * component used to represent selected items. by default this is a select
- * box with multiple attribute
+ * component used to represent selected items. by default this is a select box with multiple
+ * attribute
*/
private Component selectionComponent;
@@ -134,11 +131,10 @@
* @param choicesModel
* Model representing collection of all available choices
* @param choiceRenderer
- * Render used to render choices. This must use unique IDs for
- * the objects, not the index.
+ * Render used to render choices. This must use unique IDs for the objects, not the
+ * index.
* @param rows
- * Number of choices to be visible on the screen with out
- * scrolling
+ * Number of choices to be visible on the screen with out scrolling
* @param allowOrder
* Allow user to move selections up and down
*/
@@ -156,11 +152,10 @@
* @param choicesModel
* Model representing collection of all available choices
* @param choiceRenderer
- * Render used to render choices. This must use unique IDs for
- * the objects, not the index.
+ * Render used to render choices. This must use unique IDs for the objects, not the
+ * index.
* @param rows
- * Number of choices to be visible on the screen with out
- * scrolling
+ * Number of choices to be visible on the screen with out scrolling
* @param allowOrder
* Allow user to move selections up and down
*/
@@ -186,9 +181,8 @@
/**
- * One-time init method for components that are created via overridable
- * factories. This method is here because we do not want to call overridable
- * methods form palette's constructor.
+ * One-time init method for components that are created via overridable factories. This method
+ * is here because we do not want to call overridable methods form palette's constructor.
*/
private void initFactories()
{
@@ -212,8 +206,8 @@
}
/**
- * Returns the resource reference of the default stylesheet. You may return
- * null to avoid using any stylesheet.
+ * Returns the resource reference of the default stylesheet. You may return null to avoid using
+ * any stylesheet.
*
* @return A resource reference
*/
@@ -446,9 +440,9 @@
}
/**
- * Returns recorder component. Recorder component is a form component used
- * to track the selection of the palette. It receives <code>onchange</code>
- * javascript event whenever a change in selection occurs.
+ * Returns recorder component. Recorder component is a form component used to track the
+ * selection of the palette. It receives <code>onchange</code> javascript event whenever a
+ * change in selection occurs.
*
* @return recorder component
*/
@@ -491,11 +485,10 @@
}
/**
- * The model object is assumed to be a Collection, and it is modified
- * in-place. Then {@link Model#setObject(Object)} is called with the same
- * instance: it allows the Model to be notified of changes even when
- * {@link Model#getObject()} returns a different {@link Collection} at every
- * invocation.
+ * The model object is assumed to be a Collection, and it is modified in-place. Then
+ * {@link Model#setObject(Object)} is called with the same instance: it allows the Model to be
+ * notified of changes even when {@link Model#getObject()} returns a different
+ * {@link Collection} at every invocation.
*
* @see FormComponent#updateModel()
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/AbstractOptions.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/AbstractOptions.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/AbstractOptions.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/AbstractOptions.java Mon Oct 15 15:46:09 2007
@@ -30,8 +30,8 @@
/**
- * Generats html option elements based on iterator specified by
- * getOptionsIterator() and IChoiceRender specified by the palette
+ * Generats html option elements based on iterator specified by getOptionsIterator() and
+ * IChoiceRender specified by the palette
*
* @author Igor Vaynberg ( ivaynberg )
*
@@ -89,8 +89,8 @@
while (iter.hasNext())
{
String next = (String)iter.next();
- buffer.append(" " + next.toString() + "=\""
- + additionalAttributesMap.get(next).toString() + "\"");
+ buffer.append(" " + next.toString() + "=\"" +
+ additionalAttributesMap.get(next).toString() + "\"");
}
}
@@ -133,10 +133,12 @@
// A piece of javascript to avoid serializing the options during AJAX
// serialization.
- getResponse().write(JavascriptUtils.SCRIPT_OPEN_TAG
- + "if (typeof(Wicket) != \"undefined\" && typeof(Wicket.Form) != \"undefined\")"
- + " Wicket.Form.excludeFromAjaxSerialization." + this.getMarkupId() + "='true';"
- + JavascriptUtils.SCRIPT_CLOSE_TAG);
+ getResponse()
+ .write(
+ JavascriptUtils.SCRIPT_OPEN_TAG +
+ "if (typeof(Wicket) != \"undefined\" && typeof(Wicket.Form) != \"undefined\")" +
+ " Wicket.Form.excludeFromAjaxSerialization." +
+ this.getMarkupId() + "='true';" + JavascriptUtils.SCRIPT_CLOSE_TAG);
}
/**
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Choices.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Choices.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Choices.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Choices.java Mon Oct 15 15:46:09 2007
@@ -34,8 +34,10 @@
private static final long serialVersionUID = 1L;
/**
- * @param id component id
- * @param palette parent palette
+ * @param id
+ * component id
+ * @param palette
+ * parent palette
*/
public Choices(String id, Palette palette)
{
@@ -52,8 +54,8 @@
{
attrs.put("onFocus", onFocus);
}
-
- tag.getAttributes().put("ondblclick", getPalette().getAddOnClickJS());
+
+ tag.getAttributes().put("ondblclick", getPalette().getAddOnClickJS());
}
protected Iterator getOptionsIterator()
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Recorder.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Recorder.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Recorder.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/palette/component/Recorder.java Mon Oct 15 15:46:09 2007
@@ -30,8 +30,8 @@
/**
- * Component to keep track of selections on the html side. Also used for
- * encoding and decoding those selections between html and java.
+ * Component to keep track of selections on the html side. Also used for encoding and decoding those
+ * selections between html and java.
*
* @author Igor Vaynberg ( ivaynberg )
*/
Modified: wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/IOptionRenderer.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/IOptionRenderer.java?rev=584952&r1=584951&r2=584952&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/IOptionRenderer.java (original)
+++ wicket/trunk/jdk-1.4/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/select/IOptionRenderer.java Mon Oct 15 15:46:09 2007
@@ -37,8 +37,7 @@
/**
* Gets the model that will be used to represent the value object.
*
- * This is a good place to wrap the value object with a detachable model one
- * is desired
+ * This is a good place to wrap the value object with a detachable model one is desired
*
* @param value
* @return model that will contain the value object