diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-04-15 06:36:16 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-04-15 06:36:16 +0000 |
commit | bc3e6b2a96f527f2b7ee6a4dcfd381f7ad51cd03 (patch) | |
tree | 44651ffcaa71a6aded80c632bc9db0a6a222d19f /src/com/vaadin | |
parent | cf2ec16a3cb585cb3eb70f6d77c3cdf135ec5675 (diff) | |
download | vaadin-framework-bc3e6b2a96f527f2b7ee6a4dcfd381f7ad51cd03.tar.gz vaadin-framework-bc3e6b2a96f527f2b7ee6a4dcfd381f7ad51cd03.zip |
refined javadoc to avoid #4533
svn changeset:12530/svn branch:6.4
Diffstat (limited to 'src/com/vaadin')
-rw-r--r-- | src/com/vaadin/ui/Component.java | 19 |
1 files changed, 12 insertions, 7 deletions
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, * <pre> * 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>"); * </pre> * * <p> @@ -573,7 +574,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable, * Gets the application object to which the component is attached. * * <p> - * 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<RepaintRequestListener> alreadyNotified); + Collection<RepaintRequestListener> 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()); * } * </pre> * @@ -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()); * } * } * |