From bc3e6b2a96f527f2b7ee6a4dcfd381f7ad51cd03 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Thu, 15 Apr 2010 06:36:16 +0000 Subject: refined javadoc to avoid #4533 svn changeset:12530/svn branch:6.4 --- src/com/vaadin/ui/Component.java | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'src/com/vaadin') diff --git a/src/com/vaadin/ui/Component.java b/src/com/vaadin/ui/Component.java index 251a415e83..cfc648d9b0 100644 --- a/src/com/vaadin/ui/Component.java +++ b/src/com/vaadin/ui/Component.java @@ -441,7 +441,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable, *
      * RichTextArea area = new RichTextArea();
      * area.setCaption("You can edit stuff here");
-     * area.setValue("<h1>Helpful Heading</h1>" + "<p>All this is for you to edit.</p>");
+     * area.setValue("<h1>Helpful Heading</h1>"
+     *         + "<p>All this is for you to edit.</p>");
      * 
* *

@@ -573,7 +574,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable, * Gets the application object to which the component is attached. * *

- * The method will return {@code null} if the component has not yet been + * The method will return {@code null} if the component is not currently * attached to an application. This is often a problem in constructors of * regular components and in the initializers of custom composite * components. A standard workaround is to move the problematic @@ -716,7 +717,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable, * as an empty collection. */ public void childRequestedRepaint( - Collection alreadyNotified); + Collection alreadyNotified); /* Component event framework */ @@ -819,11 +820,13 @@ public interface Component extends Paintable, VariableOwner, Sizeable, * * public void componentEvent(Event event) { * // Act according to the source of the event - * if (event.getSource() == ok && event.getClass() == Button.ClickEvent.class) + * if (event.getSource() == ok + * && event.getClass() == Button.ClickEvent.class) * getWindow().showNotification("Click!"); * * // Display source component and event class names - * status.setValue("Event from " + event.getSource().getClass().getName() + ": " + event.getClass().getName()); + * status.setValue("Event from " + event.getSource().getClass().getName() + * + ": " + event.getClass().getName()); * } * } * @@ -851,7 +854,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable, * getWindow().showNotification("Click!"); * * // Display source component and event class names - * status.setValue("Event from " + event.getSource().getClass().getName() + ": " + event.getClass().getName()); + * status.setValue("Event from " + event.getSource().getClass().getName() + * + ": " + event.getClass().getName()); * } * * @@ -898,7 +902,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable, * if (event.getSource() == ok) * getWindow().showNotification("Click!"); * - * status.setValue("Event from " + event.getSource().getClass().getName() + ": " + event.getClass().getName()); + * status.setValue("Event from " + event.getSource().getClass().getName() + * + ": " + event.getClass().getName()); * } * } * -- cgit v1.2.3