Author: knopp
Date: Sat Apr 19 17:21:28 2008
New Revision: 649865
URL: http://svn.apache.org/viewvc?rev=649865&view=rev
Log:
remove cast
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/internal/Enclosure.java
Modified:
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/internal/Enclosure.java
URL:
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/internal/Enclosure.java?rev=649865&r1=649864&r2=649865&view=diff
==============================================================================
---
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/internal/Enclosure.java
(original)
+++
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/internal/Enclosure.java
Sat Apr 19 17:21:28 2008
@@ -40,40 +40,38 @@
* An Enclosure are automatically created by Wicket. Do not create it
yourself. An Enclosure
* container is created if <wicket:enclosure> is found in the markup. It
is meant to solve the
* following situation. Instead of
- *
+ *
* <pre>
- * <table wicket:id="label-container"
class="notify"><tr><td><span
wicket:id="label">[[notification]]</span></td></tr></table>
- *
- * WebMarkupContainer container=new
WebMarkupContainer("label-container")
+ * <table wicket:id="label-container"
class="notify"><tr><td><span
wicket:id="label">[[notification]]</span></td></tr></table>
+ * WebMarkupContainer container=new
WebMarkupContainer("label-container")
* {
- * public boolean isVisible()
+ * public boolean isVisible()
* {
* return hasNotification();
* }
* };
* add(container);
- * container.add(new Label("label", notificationModel));
+ * container.add(new Label("label", notificationModel));
* </pre>
- *
+ *
* with Enclosure you are able to do the following:
- *
+ *
* <pre>
- * <wicket:enclosure>
+ * <wicket:enclosure>
* <table class="notify"><tr><td><span
wicket:id="label">[[notification]]</span></td></tr></table>
* </wicket:enclosure>
- *
- * add(new Label("label", notificationModel))
+ * add(new Label("label", notificationModel))
* {
- * public boolean isVisible()
+ * public boolean isVisible()
* {
* return hasNotification();
* }
* }
* </pre>
- *
+ *
* @see EnclosureResolver
* @see EnclosureHandler
- *
+ *
* @author Juergen Donnerstag
* @since 1.3
*/
@@ -93,7 +91,7 @@
/**
* Construct.
- *
+ *
* @param id
* @param childId
*/
@@ -104,7 +102,7 @@
}
/**
- *
+ *
* @see org.apache.wicket.MarkupContainer#isTransparentResolver()
*/
@Override
@@ -114,7 +112,7 @@
}
/**
- *
+ *
* @param childId
* @return Child Component
*/
@@ -144,7 +142,7 @@
/**
* Get the real parent container
- *
+ *
* @return enclosure's parent markup container
*/
@SuppressWarnings("unchecked")
@@ -159,7 +157,7 @@
}
else if (parent instanceof BorderBodyContainer)
{
- parent =
((BorderBodyContainer)parent).findParent(Border.class);
+ parent = parent.findParent(Border.class);
}
else
{
@@ -176,7 +174,7 @@
}
/**
- *
+ *
* @see
org.apache.wicket.MarkupContainer#onComponentTagBody(org.apache.wicket.markup.MarkupStream,
* org.apache.wicket.markup.ComponentTag)
*/
@@ -237,7 +235,7 @@
/**
* Iterator that iterates over direct child component tags of the given
component tag
- *
+ *
*/
private static class DirectChildTagIterator extends
ReadOnlyIterator<ComponentTag>
{
@@ -248,7 +246,7 @@
/**
* Construct.
- *
+ *
* @param markupStream
* @param parent
*/