]> source.dussan.org Git - vaadin-framework.git/commitdiff
Mass format
authorArtur Signell <artur.signell@itmill.com>
Tue, 2 Sep 2008 12:53:12 +0000 (12:53 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 2 Sep 2008 12:53:12 +0000 (12:53 +0000)
svn changeset:5331/svn branch:trunk

147 files changed:
src/com/itmill/toolkit/automatedtests/featurebrowser/TableExample.java
src/com/itmill/toolkit/automatedtests/featurebrowser/TreeExample.java
src/com/itmill/toolkit/data/Buffered.java
src/com/itmill/toolkit/data/Container.java
src/com/itmill/toolkit/data/Item.java
src/com/itmill/toolkit/data/Property.java
src/com/itmill/toolkit/data/Validatable.java
src/com/itmill/toolkit/data/Validator.java
src/com/itmill/toolkit/data/util/ContainerHierarchicalWrapper.java
src/com/itmill/toolkit/data/util/ContainerOrderedWrapper.java
src/com/itmill/toolkit/data/util/HierarchicalContainer.java
src/com/itmill/toolkit/data/util/MethodProperty.java
src/com/itmill/toolkit/data/util/ObjectProperty.java
src/com/itmill/toolkit/data/util/PropertysetItem.java
src/com/itmill/toolkit/data/util/QueryContainer.java
src/com/itmill/toolkit/data/validator/CompositeValidator.java
src/com/itmill/toolkit/data/validator/NullValidator.java
src/com/itmill/toolkit/data/validator/StringLengthValidator.java
src/com/itmill/toolkit/demo/Calc.java
src/com/itmill/toolkit/demo/LayoutDemo.java
src/com/itmill/toolkit/demo/QueryContainerDemo.java
src/com/itmill/toolkit/demo/TreeFilesystem.java
src/com/itmill/toolkit/demo/WindowedDemos.java
src/com/itmill/toolkit/demo/featurebrowser/AccordionExample.java
src/com/itmill/toolkit/demo/featurebrowser/FeatureBrowser.java
src/com/itmill/toolkit/demo/featurebrowser/FormExample.java
src/com/itmill/toolkit/demo/featurebrowser/GeneratedColumnExample.java
src/com/itmill/toolkit/demo/featurebrowser/TableExample.java
src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java
src/com/itmill/toolkit/demo/reservation/CalendarDemo.java
src/com/itmill/toolkit/demo/reservation/CalendarField.java
src/com/itmill/toolkit/event/Action.java
src/com/itmill/toolkit/event/ItemClickEvent.java
src/com/itmill/toolkit/event/ListenerMethod.java
src/com/itmill/toolkit/event/MethodEventSource.java
src/com/itmill/toolkit/launcher/ITMillToolkitDesktopMode.java
src/com/itmill/toolkit/service/ApplicationContext.java
src/com/itmill/toolkit/service/FileTypeResolver.java
src/com/itmill/toolkit/terminal/ClassResource.java
src/com/itmill/toolkit/terminal/CompositeErrorMessage.java
src/com/itmill/toolkit/terminal/DownloadStream.java
src/com/itmill/toolkit/terminal/ErrorMessage.java
src/com/itmill/toolkit/terminal/ExternalResource.java
src/com/itmill/toolkit/terminal/FileResource.java
src/com/itmill/toolkit/terminal/KeyMapper.java
src/com/itmill/toolkit/terminal/PaintException.java
src/com/itmill/toolkit/terminal/PaintTarget.java
src/com/itmill/toolkit/terminal/Paintable.java
src/com/itmill/toolkit/terminal/ParameterHandler.java
src/com/itmill/toolkit/terminal/Scrollable.java
src/com/itmill/toolkit/terminal/Sizeable.java
src/com/itmill/toolkit/terminal/StreamResource.java
src/com/itmill/toolkit/terminal/SystemError.java
src/com/itmill/toolkit/terminal/Terminal.java
src/com/itmill/toolkit/terminal/ThemeResource.java
src/com/itmill/toolkit/terminal/URIHandler.java
src/com/itmill/toolkit/terminal/UserError.java
src/com/itmill/toolkit/terminal/VariableOwner.java
src/com/itmill/toolkit/terminal/gwt/client/ApplicationConnection.java
src/com/itmill/toolkit/terminal/gwt/client/CSSRule.java
src/com/itmill/toolkit/terminal/gwt/client/Container.java
src/com/itmill/toolkit/terminal/gwt/client/StyleConstants.java
src/com/itmill/toolkit/terminal/gwt/client/Util.java
src/com/itmill/toolkit/terminal/gwt/client/WidgetSet.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IAccordion.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IButton.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ICheckBox.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IDateField.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IExpandLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IFilterSelect.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IFormLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IListSelect.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IPopupView.java
src/com/itmill/toolkit/terminal/gwt/client/ui/IScrollTable.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITablePaging.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheet.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ITextField.java
src/com/itmill/toolkit/terminal/gwt/client/ui/ShortcutActionHandler.java
src/com/itmill/toolkit/terminal/gwt/client/ui/TreeImages.java
src/com/itmill/toolkit/terminal/gwt/client/ui/absolutegrid/IAbsoluteGrid.java
src/com/itmill/toolkit/terminal/gwt/client/ui/absolutegrid/ISizeableGridLayout.java
src/com/itmill/toolkit/terminal/gwt/server/ApplicationServlet.java
src/com/itmill/toolkit/terminal/gwt/server/HttpUploadStream.java
src/com/itmill/toolkit/terminal/gwt/server/JsonPaintTarget.java
src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java
src/com/itmill/toolkit/tests/TestBench.java
src/com/itmill/toolkit/tests/TestComponentsAndLayouts.java
src/com/itmill/toolkit/tests/TestForAlignments.java
src/com/itmill/toolkit/tests/book/BookTestApplication.java
src/com/itmill/toolkit/tests/book/ChatApplication.java
src/com/itmill/toolkit/tests/book/DefaultButtonExample.java
src/com/itmill/toolkit/tests/book/FormExample.java
src/com/itmill/toolkit/tests/book/FormExample2.java
src/com/itmill/toolkit/tests/book/MyDynamicResource.java
src/com/itmill/toolkit/tests/book/MyUploader.java
src/com/itmill/toolkit/tests/book/SSNField.java
src/com/itmill/toolkit/tests/book/TableCellStyle.java
src/com/itmill/toolkit/tests/book/TableEditable.java
src/com/itmill/toolkit/tests/book/TableEditableBean.java
src/com/itmill/toolkit/tests/book/TableExample.java
src/com/itmill/toolkit/tests/book/TableExample1.java
src/com/itmill/toolkit/tests/book/TableExample2.java
src/com/itmill/toolkit/tests/book/TableExample3.java
src/com/itmill/toolkit/tests/book/TableHuge.java
src/com/itmill/toolkit/tests/book/WindowOpener.java
src/com/itmill/toolkit/tests/book/WindowTestApplication.java
src/com/itmill/toolkit/tests/tickets/Ticket124.java
src/com/itmill/toolkit/tests/tickets/Ticket1245.java
src/com/itmill/toolkit/tests/tickets/Ticket1397.java
src/com/itmill/toolkit/tests/tickets/Ticket1506.java
src/com/itmill/toolkit/tests/tickets/Ticket1506_Panel.java
src/com/itmill/toolkit/tests/tickets/Ticket1506_TestContainer.java
src/com/itmill/toolkit/tests/tickets/Ticket1506_TestContainer2.java
src/com/itmill/toolkit/tests/tickets/Ticket1598.java
src/com/itmill/toolkit/tests/tickets/Ticket1659.java
src/com/itmill/toolkit/tests/tickets/Ticket1923.java
src/com/itmill/toolkit/tests/tickets/Ticket2021.java
src/com/itmill/toolkit/ui/AbstractLayout.java
src/com/itmill/toolkit/ui/AbstractSelect.java
src/com/itmill/toolkit/ui/Accordion.java
src/com/itmill/toolkit/ui/BaseFieldFactory.java
src/com/itmill/toolkit/ui/CheckBox.java
src/com/itmill/toolkit/ui/Component.java
src/com/itmill/toolkit/ui/ComponentContainer.java
src/com/itmill/toolkit/ui/CustomComponent.java
src/com/itmill/toolkit/ui/DateField.java
src/com/itmill/toolkit/ui/Embedded.java
src/com/itmill/toolkit/ui/ExpandLayout.java
src/com/itmill/toolkit/ui/Field.java
src/com/itmill/toolkit/ui/FieldFactory.java
src/com/itmill/toolkit/ui/Layout.java
src/com/itmill/toolkit/ui/Link.java
src/com/itmill/toolkit/ui/ListSelect.java
src/com/itmill/toolkit/ui/NativeSelect.java
src/com/itmill/toolkit/ui/OrderedLayout.java
src/com/itmill/toolkit/ui/Panel.java
src/com/itmill/toolkit/ui/ProgressIndicator.java
src/com/itmill/toolkit/ui/Select.java
src/com/itmill/toolkit/ui/SplitPanel.java
src/com/itmill/toolkit/ui/Table.java
src/com/itmill/toolkit/ui/Tree.java
src/com/itmill/toolkit/ui/TwinColSelect.java

index a53f02490414f0bb3ec8a72d9af48631f7c2af4b..ddfe92acd79840155c231d8727ae3c5edfb7cbd9 100644 (file)
@@ -234,13 +234,13 @@ public class TableExample extends CustomComponent implements Action.Handler,
             // loop each selected and copy to "saved" table\r
             final Set selected = (Set) source.getValue();\r
             int s = 0;\r
-            \r
+\r
             // The set can return the items in quite any order, but\r
             // for testing purposes they always have to be in the\r
             // same order.\r
             List ordered = new LinkedList(selected);\r
             java.util.Collections.sort(ordered);\r
-            \r
+\r
             // Now move the items to the other table\r
             for (final Iterator it = ordered.iterator(); it.hasNext();) {\r
                 final Object id = it.next();\r
index f5c0bd5042c2cbb61355b98ec027b2817118683d..496af768425f4f962037cb7af62558d0e0d6f5e5 100644 (file)
@@ -139,9 +139,9 @@ public class TreeExample extends CustomComponent implements Action.Handler,
      * Helper to add an item with specified caption and (optional) parent.
      * 
      * @param caption
-     *                The item caption
+     *            The item caption
      * @param parent
-     *                The (optional) parent item id
+     *            The (optional) parent item id
      * @return the created item's id
      */
     private Object addCaptionedItem(String caption, Object parent) {
index 0556d3e2d27e0562c2558e3d7bd6a5d53b31fb83..fde5ca03d308d3126fe25e3ff8b2f8eb0b368bf7 100644 (file)
@@ -49,9 +49,8 @@ public interface Buffered {
      * when <code>commit</code> is called.
      * 
      * @throws SourceException
-     *                 if the operation fails because of an exception is thrown
-     *                 by the data source. The cause is included in the
-     *                 exception.
+     *             if the operation fails because of an exception is thrown by
+     *             the data source. The cause is included in the exception.
      */
     public void commit() throws SourceException;
 
@@ -60,9 +59,8 @@ public interface Buffered {
      * the data source.
      * 
      * @throws SourceException
-     *                 if the operation fails because of an exception is thrown
-     *                 by the data source. The cause is included in the
-     *                 exception.
+     *             if the operation fails because of an exception is thrown by
+     *             the data source. The cause is included in the exception.
      */
     public void discard() throws SourceException;
 
@@ -82,11 +80,11 @@ public interface Buffered {
      * will be performed.
      * 
      * @param writeThrough
-     *                Boolean value to indicate if the object should be in
-     *                write-through mode after the call.
+     *            Boolean value to indicate if the object should be in
+     *            write-through mode after the call.
      * @throws SourceException
-     *                 If the operation fails because of an exception is thrown
-     *                 by the data source.
+     *             If the operation fails because of an exception is thrown by
+     *             the data source.
      * 
      */
     public void setWriteThrough(boolean writeThrough) throws SourceException;
@@ -113,13 +111,12 @@ public interface Buffered {
      * data source.
      * 
      * @param readThrough
-     *                Boolean value to indicate if the object should be in
-     *                read-through mode after the call.
+     *            Boolean value to indicate if the object should be in
+     *            read-through mode after the call.
      * 
      * @throws SourceException
-     *                 If the operation fails because of an exception is thrown
-     *                 by the data source. The cause is included in the
-     *                 exception.
+     *             If the operation fails because of an exception is thrown by
+     *             the data source. The cause is included in the exception.
      */
     public void setReadThrough(boolean readThrough) throws SourceException;
 
@@ -160,7 +157,7 @@ public interface Buffered {
          * Creates a source exception that does not include a cause.
          * 
          * @param source
-         *                the source object implementing the Buffered interface.
+         *            the source object implementing the Buffered interface.
          */
         public SourceException(Buffered source) {
             this.source = source;
@@ -170,9 +167,9 @@ public interface Buffered {
          * Creates a source exception from a cause exception.
          * 
          * @param source
-         *                the source object implementing the Buffered interface.
+         *            the source object implementing the Buffered interface.
          * @param cause
-         *                the original cause for this exception.
+         *            the original cause for this exception.
          */
         public SourceException(Buffered source, Throwable cause) {
             this.source = source;
@@ -183,9 +180,9 @@ public interface Buffered {
          * Creates a source exception from multiple causes.
          * 
          * @param source
-         *                the source object implementing the Buffered interface.
+         *            the source object implementing the Buffered interface.
          * @param causes
-         *                the original causes for this exception.
+         *            the original causes for this exception.
          */
         public SourceException(Buffered source, Throwable[] causes) {
             this.source = source;
@@ -197,9 +194,9 @@ public interface Buffered {
          * 
          * @return The cause for the exception.
          * @throws MoreThanOneCauseException
-         *                 if there is more than one cause for the exception.
-         *                 This is possible if the commit operation triggers
-         *                 more than one error at the same time.
+         *             if there is more than one cause for the exception. This
+         *             is possible if the commit operation triggers more than
+         *             one error at the same time.
          */
         public final Throwable getCause() {
             if (causes.length == 0) {
index d3b2921d7b3cedd2b8602d952e82fa061f99e776..d21efd48135ea4c2c3157019a8ca14b98d27adef 100644 (file)
@@ -33,8 +33,8 @@ import java.util.Collection;
  * 
  * <p>
  * Note that though uniquely identified, the Items in a Container are not
- * neccessarily {@link Container.Ordered ordered}or
- * {@link Container.Indexed indexed}.
+ * neccessarily {@link Container.Ordered ordered}or {@link Container.Indexed
+ * indexed}.
  * </p>
  * 
  * <p>
@@ -58,7 +58,7 @@ public interface Container {
      * does not contain the requested Item, <code>null</code> is returned.
      * 
      * @param itemId
-     *                ID of the Item to retrieve
+     *            ID of the Item to retrieve
      * @return the Item with the given ID or <code>null</code> if the Item is
      *         not found in the Container
      */
@@ -86,9 +86,9 @@ public interface Container {
      * <code>null</code> is returned.
      * 
      * @param itemId
-     *                ID of the Item which contains the Property
+     *            ID of the Item which contains the Property
      * @param propertyId
-     *                ID of the Property to retrieve
+     *            ID of the Property to retrieve
      * @return Property with the given ID or <code>null</code>
      */
     public Property getContainerProperty(Object itemId, Object propertyId);
@@ -97,7 +97,7 @@ public interface Container {
      * Gets the data type of all Properties identified by the given Property ID.
      * 
      * @param propertyId
-     *                ID identifying the Properties
+     *            ID identifying the Properties
      * @return data type of the Properties
      */
     public Class getType(Object propertyId);
@@ -113,7 +113,7 @@ public interface Container {
      * Tests if the Container contains the specified Item
      * 
      * @param itemId
-     *                ID the of Item to be tested
+     *            ID the of Item to be tested
      * @return boolean indicating if the Container holds the specified Item
      */
     public boolean containsId(Object itemId);
@@ -122,8 +122,8 @@ public interface Container {
      * Creates a new Item with the given ID into the Container. The new
      * <p>
      * Item is returned, and it is ready to have its Properties modified.
-     * Returns <code>null</code> if the operation fails or the Container
-     * already contains a Item with the given ID.
+     * Returns <code>null</code> if the operation fails or the Container already
+     * contains a Item with the given ID.
      * </p>
      * 
      * <p>
@@ -131,7 +131,7 @@ public interface Container {
      * </p>
      * 
      * @param itemId
-     *                ID of the Item to be created
+     *            ID of the Item to be created
      * @return Created new Item, or <code>null</code> in case of a failure
      */
     public Item addItem(Object itemId) throws UnsupportedOperationException;
@@ -141,9 +141,8 @@ public interface Container {
      * 
      * <p>
      * The new ID is returned, or <code>null</code> if the operation fails.
-     * After a successful call you can use the
-     * {@link #getItem(Object ItemId) <code>getItem</code>}method to fetch the
-     * Item.
+     * After a successful call you can use the {@link #getItem(Object ItemId)
+     * <code>getItem</code>}method to fetch the Item.
      * </p>
      * 
      * <p>
@@ -160,9 +159,9 @@ public interface Container {
      * This functionality is optional.
      * 
      * @param itemId
-     *                ID of the Item to remove
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            ID of the Item to remove
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean removeItem(Object itemId)
             throws UnsupportedOperationException;
@@ -174,13 +173,13 @@ public interface Container {
      * This functionality is optional.
      * 
      * @param propertyId
-     *                ID of the Property
+     *            ID of the Property
      * @param type
-     *                Data type of the new Property
+     *            Data type of the new Property
      * @param defaultValue
-     *                The value all created Properties are initialized to
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            The value all created Properties are initialized to
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean addContainerProperty(Object propertyId, Class type,
             Object defaultValue) throws UnsupportedOperationException;
@@ -192,9 +191,9 @@ public interface Container {
      * This functionality is optional.
      * 
      * @param propertyId
-     *                ID of the Property to remove
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            ID of the Property to remove
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean removeContainerProperty(Object propertyId)
             throws UnsupportedOperationException;
@@ -207,8 +206,8 @@ public interface Container {
      * functionality is optional.
      * </p>
      * 
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean removeAllItems() throws UnsupportedOperationException;
 
@@ -223,18 +222,18 @@ public interface Container {
          * the Container, <code>null</code> is returned.
          * 
          * @param itemId
-         *                ID of an Item in the Container
+         *            ID of an Item in the Container
          * @return ID of the next Item or <code>null</code>
          */
         public Object nextItemId(Object itemId);
 
         /**
          * Gets the ID of the Item preceding the Item that corresponds to
-         * <code>itemId</code>. If the given Item is the first or not found
-         * in the Container, <code>null</code> is returned.
+         * <code>itemId</code>. If the given Item is the first or not found in
+         * the Container, <code>null</code> is returned.
          * 
          * @param itemId
-         *                ID of an Item in the Container
+         *            ID of an Item in the Container
          * @return ID of the previous Item or <code>null</code>
          */
         public Object prevItemId(Object itemId);
@@ -258,7 +257,7 @@ public interface Container {
          * Item in the Container.
          * 
          * @param itemId
-         *                ID of an Item in the Container
+         *            ID of an Item in the Container
          * @return <code>true</code> if the Item is first in the Container,
          *         <code>false</code> if not
          */
@@ -281,7 +280,7 @@ public interface Container {
          * </p>
          * 
          * @param previousItemId
-         *                Id of the previous item in ordered container.
+         *            Id of the previous item in ordered container.
          * @return Returns item id the the created new item or null if the
          *         operation fails.
          */
@@ -296,9 +295,9 @@ public interface Container {
          * </p>
          * 
          * @param previousItemId
-         *                Id of the previous item in ordered container.
+         *            Id of the previous item in ordered container.
          * @param newItemId
-         *                Id of the new item to be added.
+         *            Id of the new item to be added.
          * @return Returns new item or null if the operation fails.
          */
         public Item addItemAfter(Object previousItemId, Object newItemId)
@@ -315,18 +314,18 @@ public interface Container {
          * Sorts the container items.
          * 
          * @param propertyId
-         *                Array of container property IDs, which values are used
-         *                to sort the items in container as primary, secondary,
-         *                ... sorting criterion. All of the item IDs must be in
-         *                the collection returned by
-         *                <code>getSortableContainerPropertyIds</code>
+         *            Array of container property IDs, which values are used to
+         *            sort the items in container as primary, secondary, ...
+         *            sorting criterion. All of the item IDs must be in the
+         *            collection returned by
+         *            <code>getSortableContainerPropertyIds</code>
          * @param ascending
-         *                Array of sorting order flags corresponding to each
-         *                property ID used in sorting. If this array is shorter
-         *                than propertyId array, ascending order is assumed for
-         *                items where the order is not specified. Use
-         *                <code>true</code> to sort in ascending order,
-         *                <code>false</code> to use descending order.
+         *            Array of sorting order flags corresponding to each
+         *            property ID used in sorting. If this array is shorter than
+         *            propertyId array, ascending order is assumed for items
+         *            where the order is not specified. Use <code>true</code> to
+         *            sort in ascending order, <code>false</code> to use
+         *            descending order.
          */
         void sort(Object[] propertyId, boolean[] ascending);
 
@@ -347,7 +346,7 @@ public interface Container {
          * is <code>true</code> for the returned index: 0 <= index < size().
          * 
          * @param itemId
-         *                ID of an Item in the Container
+         *            ID of an Item in the Container
          * @return index of the Item, or -1 if the Container does not include
          *         the Item
          */
@@ -357,7 +356,7 @@ public interface Container {
          * Gets the ID of an Item by an index number.
          * 
          * @param index
-         *                Index of the requested id in the Container
+         *            Index of the requested id in the Container
          * @return ID of the Item in the given index
          */
         public Object getIdByIndex(int index);
@@ -370,7 +369,7 @@ public interface Container {
          * </p>
          * 
          * @param index
-         *                Index to add the new item.
+         *            Index to add the new item.
          * @return Returns item id the the created new item or null if the
          *         operation fails.
          */
@@ -384,9 +383,9 @@ public interface Container {
          * </p>
          * 
          * @param index
-         *                Index to add the new item.
+         *            Index to add the new item.
          * @param newItemId
-         *                Id of the new item to be added.
+         *            Id of the new item to be added.
          * @return Returns new item or null if the operation fails.
          */
         public Item addItemAt(int index, Object newItemId)
@@ -396,9 +395,9 @@ public interface Container {
 
     /**
      * <p>
-     * Interface for <code>Container</code> classes whose Items can be
-     * arranged hierarchically. This means that the Items in the container
-     * belong in a tree-like structure, with the following quirks:
+     * Interface for <code>Container</code> classes whose Items can be arranged
+     * hierarchically. This means that the Items in the container belong in a
+     * tree-like structure, with the following quirks:
      * </p>
      * 
      * <ul>
@@ -414,8 +413,7 @@ public interface Container {
          * The returned collection is unmodifiable.
          * 
          * @param itemId
-         *                ID of the Item whose children the caller is interested
-         *                in
+         *            ID of the Item whose children the caller is interested in
          * @return An unmodifiable {@link java.util.Collection collection}
          *         containing the IDs of all other Items that are children in
          *         the container hierarchy
@@ -426,8 +424,7 @@ public interface Container {
          * Gets the ID of the parent Item of the specified Item.
          * 
          * @param itemId
-         *                ID of the Item whose parent the caller wishes to find
-         *                out.
+         *            ID of the Item whose parent the caller wishes to find out.
          * @return the ID of the parent Item. Will be <code>null</code> if the
          *         specified Item is a root element.
          */
@@ -457,11 +454,11 @@ public interface Container {
          * </p>
          * 
          * @param itemId
-         *                ID of the item to be set as the child of the Item
-         *                identified with <code>newParentId</code>
+         *            ID of the item to be set as the child of the Item
+         *            identified with <code>newParentId</code>
          * @param newParentId
-         *                ID of the Item that's to be the new parent of the Item
-         *                identified with <code>itemId</code>
+         *            ID of the Item that's to be the new parent of the Item
+         *            identified with <code>itemId</code>
          * @return <code>true</code> if the operation succeeded,
          *         <code>false</code> if not
          */
@@ -472,8 +469,8 @@ public interface Container {
          * Tests if the Item with given ID can have any children.
          * 
          * @param itemId
-         *                ID of the Item in the container whose child capability
-         *                is to be tested
+         *            ID of the Item in the container whose child capability is
+         *            to be tested
          * @return <code>true</code> if the specified Item exists in the
          *         Container and it can have children, <code>false</code> if
          *         it's not found from the container or it can't have children.
@@ -499,11 +496,11 @@ public interface Container {
          * </p>
          * 
          * @param itemId
-         *                ID of the Item in the container whose child capability
-         *                is to be set
+         *            ID of the Item in the container whose child capability is
+         *            to be set
          * @param areChildrenAllowed
-         *                boolean value specifying if the Item can have children
-         *                or not
+         *            boolean value specifying if the Item can have children or
+         *            not
          * @return <code>true</code> if the operation succeeded,
          *         <code>false</code> if not
          */
@@ -512,14 +509,13 @@ public interface Container {
                 throws UnsupportedOperationException;
 
         /**
-         * Tests if the Item specified with <code>itemId</code> is a root
-         * Item. The hierarchical container can have more than one root and must
-         * have at least one unless it is empty. The
-         * {@link #getParent(Object itemId)}method always returns
-         * <code>null</code> for root Items.
+         * Tests if the Item specified with <code>itemId</code> is a root Item.
+         * The hierarchical container can have more than one root and must have
+         * at least one unless it is empty. The {@link #getParent(Object itemId)}
+         * method always returns <code>null</code> for root Items.
          * 
          * @param itemId
-         *                ID of the Item whose root status is to be tested
+         *            ID of the Item whose root status is to be tested
          * @return <code>true</code> if the specified Item is a root,
          *         <code>false</code> if not
          */
@@ -536,10 +532,11 @@ public interface Container {
          * <p>
          * Note that being a leaf does not imply whether or not an Item is
          * allowed to have children.
-         * </p>.
+         * </p>
+         * .
          * 
          * @param itemId
-         *                ID of the Item whose leaf status is to be tested
+         *            ID of the Item whose leaf status is to be tested
          * @return <code>true</code> if the specified Item is a leaf,
          *         <code>false</code> if not
          */
@@ -568,14 +565,14 @@ public interface Container {
          * starts with given filterString are visible in the container.
          * 
          * @param propertyId
-         *                Property for which the filter is applied to.
+         *            Property for which the filter is applied to.
          * @param filterString
-         *                String that must match contents of the property
+         *            String that must match contents of the property
          * @param ignoreCase
-         *                Determine if the casing can be ignored when comparing
-         *                strings.
+         *            Determine if the casing can be ignored when comparing
+         *            strings.
          * @param onlyMatchPrefix
-         *                Only match prefixes; no other matches are included.
+         *            Only match prefixes; no other matches are included.
          */
         public void addContainerFilter(Object propertyId, String filterString,
                 boolean ignoreCase, boolean onlyMatchPrefix);
@@ -597,7 +594,7 @@ public interface Container {
          * Sets the Container that serves as the data source of the viewer.
          * 
          * @param newDataSource
-         *                The new data source Item
+         *            The new data source Item
          */
         public void setContainerDataSource(Container newDataSource);
 
@@ -626,11 +623,11 @@ public interface Container {
 
     }
 
-    /* Contents change event ******************************************* */
+    /* Contents change event */
 
     /**
-     * An <code>Event</code> object specifying the Container whose Item set
-     * has changed.
+     * An <code>Event</code> object specifying the Container whose Item set has
+     * changed.
      */
     public interface ItemSetChangeEvent {
 
@@ -649,7 +646,7 @@ public interface Container {
          * Lets the listener know a Containers Item set has changed.
          * 
          * @param event
-         *                change event text
+         *            change event text
          */
         public void containerItemSetChange(Container.ItemSetChangeEvent event);
     }
@@ -657,15 +654,15 @@ public interface Container {
     /**
      * The interface for adding and removing <code>ItemSetChangeEvent</code>
      * listeners. By implementing this interface a class explicitly announces
-     * that it will generate a <code>ItemSetChangeEvent</code> when its
-     * contents are modified.
+     * that it will generate a <code>ItemSetChangeEvent</code> when its contents
+     * are modified.
      * <p>
      * Note: The general Java convention is not to explicitly declare that a
      * class generates events, but to directly define the
-     * <code>addListener</code> and <code>removeListener</code> methods.
-     * That way the caller of these methods has no real way of finding out if
-     * the class really will send the events, or if it just defines the methods
-     * to be able to implement an interface.
+     * <code>addListener</code> and <code>removeListener</code> methods. That
+     * way the caller of these methods has no real way of finding out if the
+     * class really will send the events, or if it just defines the methods to
+     * be able to implement an interface.
      * </p>
      */
     public interface ItemSetChangeNotifier {
@@ -674,7 +671,7 @@ public interface Container {
          * Adds an Item set change listener for the object.
          * 
          * @param listener
-         *                listener to be added
+         *            listener to be added
          */
         public void addListener(Container.ItemSetChangeListener listener);
 
@@ -682,16 +679,16 @@ public interface Container {
          * Removes the Item set change listener from the object.
          * 
          * @param listener
-         *                listener to be removed
+         *            listener to be removed
          */
         public void removeListener(Container.ItemSetChangeListener listener);
     }
 
-    /* Property set change event ******************************************** */
+    /* Property set change event */
 
     /**
-     * An <code>Event</code> object specifying the Container whose Property
-     * set has changed.
+     * An <code>Event</code> object specifying the Container whose Property set
+     * has changed.
      */
     public interface PropertySetChangeEvent {
 
@@ -713,7 +710,7 @@ public interface Container {
          * Notifies this listener that the Containers contents has changed.
          * 
          * @param event
-         *                Change event.
+         *            Change event.
          */
         public void containerPropertySetChange(
                 Container.PropertySetChangeEvent event);
@@ -729,10 +726,10 @@ public interface Container {
      * <p>
      * Note that the general Java convention is not to explicitly declare that a
      * class generates events, but to directly define the
-     * <code>addListener</code> and <code>removeListener</code> methods.
-     * That way the caller of these methods has no real way of finding out if
-     * the class really will send the events, or if it just defines the methods
-     * to be able to implement an interface.
+     * <code>addListener</code> and <code>removeListener</code> methods. That
+     * way the caller of these methods has no real way of finding out if the
+     * class really will send the events, or if it just defines the methods to
+     * be able to implement an interface.
      * </p>
      */
     public interface PropertySetChangeNotifier {
@@ -741,7 +738,7 @@ public interface Container {
          * Registers a new Property set change listener for this Container.
          * 
          * @param listener
-         *                The new Listener to be registered
+         *            The new Listener to be registered
          */
         public void addListener(Container.PropertySetChangeListener listener);
 
@@ -749,7 +746,7 @@ public interface Container {
          * Removes a previously registered Property set change listener.
          * 
          * @param listener
-         *                Listener to be removed
+         *            Listener to be removed
          */
         public void removeListener(Container.PropertySetChangeListener listener);
     }
index 21964d29b417bb99ba4d40357676cc0723e89e20..a8ffc3d7c2b1f8acb9996a688acc3207f9b7d693 100644 (file)
@@ -9,8 +9,8 @@ import java.util.Collection;
 /**
  * <p>
  * Provides a mechanism for handling a set of Properties, each associated to a
- * locally unique non-null identifier. The interface is split into subinterfaces to
- * enable a class to implement only the functionalities it needs.
+ * locally unique non-null identifier. The interface is split into subinterfaces
+ * to enable a class to implement only the functionalities it needs.
  * </p>
  * 
  * @author IT Mill Ltd
@@ -26,7 +26,7 @@ public interface Item {
      * returned.
      * 
      * @param id
-     *                identifier of the Property to get
+     *            identifier of the Property to get
      * @return the Property with the given ID or <code>null</code>
      */
     public Property getItemProperty(Object id);
@@ -47,13 +47,13 @@ public interface Item {
      * </p>
      * 
      * @param id
-     *                ID of the new Property
+     *            ID of the new Property
      * @param property
-     *                the Property to be added and associated with the id
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the Property to be added and associated with the id
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the operation is not supported.
+     *             if the operation is not supported.
      */
     public boolean addItemProperty(Object id, Property property)
             throws UnsupportedOperationException;
@@ -66,11 +66,10 @@ public interface Item {
      * </p>
      * 
      * @param id
-     *                ID of the Property to be removed
+     *            ID of the Property to be removed
      * @return <code>true</code> if the operation succeeded
      * @throws UnsupportedOperationException
-     *                 if the operation is not supported. <code>false</code>
-     *                 if not
+     *             if the operation is not supported. <code>false</code> if not
      */
     public boolean removeItemProperty(Object id)
             throws UnsupportedOperationException;
@@ -85,7 +84,7 @@ public interface Item {
          * Sets the Item that serves as the data source of the viewer.
          * 
          * @param newDataSource
-         *                The new data source Item
+         *            The new data source Item
          */
         public void setItemDataSource(Item newDataSource);
 
@@ -110,11 +109,11 @@ public interface Item {
 
     }
 
-    /* Property set change event ******************************************** */
+    /* Property set change event */
 
     /**
-     * An <code>Event</code> object specifying the Item whose contents has
-     * been changed through the <code>Property</code> interface.
+     * An <code>Event</code> object specifying the Item whose contents has been
+     * changed through the <code>Property</code> interface.
      * <p>
      * Note: The values stored in the Properties may change without triggering
      * this event.
@@ -140,7 +139,7 @@ public interface Item {
          * Notifies this listener that the Item's property set has changed.
          * 
          * @param event
-         *                Property set change event object
+         *            Property set change event object
          */
         public void itemPropertySetChange(Item.PropertySetChangeEvent event);
     }
@@ -153,10 +152,10 @@ public interface Item {
      * <p>
      * Note : The general Java convention is not to explicitly declare that a
      * class generates events, but to directly define the
-     * <code>addListener</code> and <code>removeListener</code> methods.
-     * That way the caller of these methods has no real way of finding out if
-     * the class really will send the events, or if it just defines the methods
-     * to be able to implement an interface.
+     * <code>addListener</code> and <code>removeListener</code> methods. That
+     * way the caller of these methods has no real way of finding out if the
+     * class really will send the events, or if it just defines the methods to
+     * be able to implement an interface.
      * </p>
      */
     public interface PropertySetChangeNotifier {
@@ -165,7 +164,7 @@ public interface Item {
          * Registers a new property set change listener for this Item.
          * 
          * @param listener
-         *                The new Listener to be registered.
+         *            The new Listener to be registered.
          */
         public void addListener(Item.PropertySetChangeListener listener);
 
@@ -173,7 +172,7 @@ public interface Item {
          * Removes a previously registered property set change listener.
          * 
          * @param listener
-         *                Listener to be removed.
+         *            Listener to be removed.
          */
         public void removeListener(Item.PropertySetChangeListener listener);
     }
index 2b5543c4d34a3b94b4e2603907f646199cf9de57..2aacdb9a22b8f801de6e597740b7f3d8bd71ce2f 100644 (file)
@@ -13,9 +13,8 @@ package com.itmill.toolkit.data;
  * 
  * <p>
  * The <code>Property</code> also defines the events
- * <code>ReadOnlyStatusChangeEvent</code> and <code>ValueChangeEvent</code>,
- * and the associated <code>listener</code> and <code>notifier</code>
- * interfaces.
+ * <code>ReadOnlyStatusChangeEvent</code> and <code>ValueChangeEvent</code>, and
+ * the associated <code>listener</code> and <code>notifier</code> interfaces.
  * </p>
  * 
  * <p>
@@ -25,8 +24,8 @@ package com.itmill.toolkit.data;
  * </p>
  * 
  * <p>
- * The <code>Property.editor</code> interface should be implemented if the
- * value needs to be changed through the implementing class.
+ * The <code>Property.editor</code> interface should be implemented if the value
+ * needs to be changed through the implementing class.
  * </p>
  * 
  * @author IT Mill Ltd
@@ -51,31 +50,31 @@ public interface Property {
      * throw <code>Property.ReadOnlyException</code> in this function.
      * </p>
      * Note : It is not required, but highly recommended to support setting the
-     * value also as a <code>String</code> in addition to the native type of
-     * the Property (as given by the <code>getType</code> method). If the
-     * <code>String</code> conversion fails or is unsupported, the method
-     * should throw <code>Property.ConversionException</code>. The string
-     * conversion should at least understand the format returned by the
+     * value also as a <code>String</code> in addition to the native type of the
+     * Property (as given by the <code>getType</code> method). If the
+     * <code>String</code> conversion fails or is unsupported, the method should
+     * throw <code>Property.ConversionException</code>. The string conversion
+     * should at least understand the format returned by the
      * <code>toString</code> method of the Property.
      * 
      * @param newValue
-     *                New value of the Property. This should be assignable to
-     *                the type returned by getType, but also String type should
-     *                be supported
+     *            New value of the Property. This should be assignable to the
+     *            type returned by getType, but also String type should be
+     *            supported
      * 
      * @throws Property.ReadOnlyException
-     *                 if the object is in read-only mode
+     *             if the object is in read-only mode
      * @throws Property.ConversionException
-     *                 if newValue can't be converted into the Property's native
-     *                 type directly or through String
+     *             if newValue can't be converted into the Property's native
+     *             type directly or through String
      */
     public void setValue(Object newValue) throws Property.ReadOnlyException,
             Property.ConversionException;
 
     /**
      * Returns the value of the Property in human readable textual format. The
-     * return value should be assignable to the <code>setValue</code> method
-     * if the Property is not in read-only mode.
+     * return value should be assignable to the <code>setValue</code> method if
+     * the Property is not in read-only mode.
      * 
      * @return <code>String</code> representation of the value stored in the
      *         Property
@@ -84,10 +83,10 @@ public interface Property {
 
     /**
      * Returns the type of the Property. The methods <code>getValue</code> and
-     * <code>setValue</code> must be compatible with this type: one must be
-     * able to safely cast the value returned from <code>getValue</code> to
-     * the given type and pass any variable assignable to this type as an
-     * argument to <code>setValue</code>.
+     * <code>setValue</code> must be compatible with this type: one must be able
+     * to safely cast the value returned from <code>getValue</code> to the given
+     * type and pass any variable assignable to this type as an argument to
+     * <code>setValue</code>.
      * 
      * @return type of the Property
      */
@@ -111,7 +110,7 @@ public interface Property {
      * <code>isReadOnly</code> mode query correctly.
      * 
      * @param newStatus
-     *                new read-only status of the Property
+     *            new read-only status of the Property
      */
     public void setReadOnly(boolean newStatus);
 
@@ -143,7 +142,7 @@ public interface Property {
          * detail message.
          * 
          * @param msg
-         *                the detail message
+         *            the detail message
          */
         public ReadOnlyException(String msg) {
             super(msg);
@@ -152,8 +151,8 @@ public interface Property {
 
     /**
      * An exception that signals that the value passed to the
-     * <code>setValue</code> method couldn't be converted to the native type
-     * of the Property.
+     * <code>setValue</code> method couldn't be converted to the native type of
+     * the Property.
      * 
      * @author IT Mill Ltd
      * @version
@@ -175,11 +174,11 @@ public interface Property {
         }
 
         /**
-         * Constructs a new <code>ConversionException</code> with the
-         * specified detail message.
+         * Constructs a new <code>ConversionException</code> with the specified
+         * detail message.
          * 
          * @param msg
-         *                the detail message
+         *            the detail message
          */
         public ConversionException(String msg) {
             super(msg);
@@ -190,7 +189,7 @@ public interface Property {
          * exception.
          * 
          * @param cause
-         *                The cause of the the conversion failure
+         *            The cause of the the conversion failure
          */
         public ConversionException(Throwable cause) {
             super(cause.toString());
@@ -212,7 +211,7 @@ public interface Property {
          * Sets the Property that serves as the data source of the viewer.
          * 
          * @param newDataSource
-         *                the new data source Property
+         *            the new data source Property
          */
         public void setPropertyDataSource(Property newDataSource);
 
@@ -244,11 +243,11 @@ public interface Property {
 
     }
 
-    /* Value change event ******************************************* */
+    /* Value change event */
 
     /**
-     * An <code>Event</code> object specifying the Property whose value has
-     * been changed.
+     * An <code>Event</code> object specifying the Property whose value has been
+     * changed.
      * 
      * @author IT Mill Ltd.
      * @version
@@ -280,7 +279,7 @@ public interface Property {
          * Notifies this listener that the Property's value has changed.
          * 
          * @param event
-         *                value change event object
+         *            value change event object
          */
         public void valueChange(Property.ValueChangeEvent event);
     }
@@ -293,10 +292,10 @@ public interface Property {
      * <p>
      * Note : The general Java convention is not to explicitly declare that a
      * class generates events, but to directly define the
-     * <code>addListener</code> and <code>removeListener</code> methods.
-     * That way the caller of these methods has no real way of finding out if
-     * the class really will send the events, or if it just defines the methods
-     * to be able to implement an interface.
+     * <code>addListener</code> and <code>removeListener</code> methods. That
+     * way the caller of these methods has no real way of finding out if the
+     * class really will send the events, or if it just defines the methods to
+     * be able to implement an interface.
      * </p>
      * 
      * @author IT Mill Ltd.
@@ -310,7 +309,7 @@ public interface Property {
          * Registers a new value change listener for this Property.
          * 
          * @param listener
-         *                the new Listener to be registered
+         *            the new Listener to be registered
          */
         public void addListener(Property.ValueChangeListener listener);
 
@@ -318,12 +317,12 @@ public interface Property {
          * Removes a previously registered value change listener.
          * 
          * @param listener
-         *                listener to be removed
+         *            listener to be removed
          */
         public void removeListener(Property.ValueChangeListener listener);
     }
 
-    /* ReadOnly Status change event ***************************************** */
+    /* ReadOnly Status change event */
 
     /**
      * An <code>Event</code> object specifying the Property whose read-only
@@ -360,7 +359,7 @@ public interface Property {
          * changed.
          * 
          * @param event
-         *                Read-only status change event object
+         *            Read-only status change event object
          */
         public void readOnlyStatusChange(
                 Property.ReadOnlyStatusChangeEvent event);
@@ -368,16 +367,16 @@ public interface Property {
 
     /**
      * The interface for adding and removing
-     * <code>ReadOnlyStatusChangeEvent</code> listeners. If a Property wishes
-     * to allow other objects to receive <code>ReadOnlyStatusChangeEvent</code>
+     * <code>ReadOnlyStatusChangeEvent</code> listeners. If a Property wishes to
+     * allow other objects to receive <code>ReadOnlyStatusChangeEvent</code>
      * generated by it, it must implement this interface.
      * <p>
      * Note : The general Java convention is not to explicitly declare that a
      * class generates events, but to directly define the
-     * <code>addListener</code> and <code>removeListener</code> methods.
-     * That way the caller of these methods has no real way of finding out if
-     * the class really will send the events, or if it just defines the methods
-     * to be able to implement an interface.
+     * <code>addListener</code> and <code>removeListener</code> methods. That
+     * way the caller of these methods has no real way of finding out if the
+     * class really will send the events, or if it just defines the methods to
+     * be able to implement an interface.
      * </p>
      * 
      * @author IT Mill Ltd.
@@ -391,7 +390,7 @@ public interface Property {
          * Registers a new read-only status change listener for this Property.
          * 
          * @param listener
-         *                the new Listener to be registered
+         *            the new Listener to be registered
          */
         public void addListener(Property.ReadOnlyStatusChangeListener listener);
 
@@ -399,7 +398,7 @@ public interface Property {
          * Removes a previously registered read-only status change listener.
          * 
          * @param listener
-         *                listener to be removed
+         *            listener to be removed
          */
         public void removeListener(
                 Property.ReadOnlyStatusChangeListener listener);
index a80ed776b8d877b12ae0e90335bc08512e1233fb..c8f5afb9186f2f9866288ef5977740898f09861b 100644 (file)
@@ -30,19 +30,19 @@ public interface Validatable {
      * </p>
      * 
      * @param validator
-     *                the new validator
+     *            the new validator
      */
     void addValidator(Validator validator);
 
     /**
      * <p>
      * Removes a previously registered validator from the object. The specified
-     * validator is removed from the object and its <code>validate</code>
-     * method is no longer called in {@link #isValid()}.
+     * validator is removed from the object and its <code>validate</code> method
+     * is no longer called in {@link #isValid()}.
      * </p>
      * 
      * @param validator
-     *                the validator to remove
+     *            the validator to remove
      */
     void removeValidator(Validator validator);
 
@@ -78,7 +78,7 @@ public interface Validatable {
      * </p>
      * 
      * @throws Validator.InvalidValueException
-     *                 if the value is not valid
+     *             if the value is not valid
      */
     public void validate() throws Validator.InvalidValueException;
 
@@ -101,7 +101,7 @@ public interface Validatable {
      * @param invalidValueAllowed
      * 
      * @throws UnsupportedOperationException
-     *                 if the setInvalidAllowed is not supported.
+     *             if the setInvalidAllowed is not supported.
      */
     public void setInvalidAllowed(boolean invalidValueAllowed)
             throws UnsupportedOperationException;
index b8381094ac8180003e74ce95bf8701c7faf6b3bd..7f2de6ca13ce1bb0d38a43ee335405ce9a70df6a 100644 (file)
@@ -30,9 +30,9 @@ public interface Validator {
      * <code>Validator.InvalidValueException</code>
      * 
      * @param value
-     *                the value to check
+     *            the value to check
      * @throws Validator.InvalidValueException
-     *                 if the value is not valid
+     *             if the value is not valid
      */
     public void validate(Object value) throws Validator.InvalidValueException;
 
@@ -40,7 +40,7 @@ public interface Validator {
      * Tests if the given value is valid.
      * 
      * @param value
-     *                the value to check
+     *            the value to check
      * @return <code>true</code> for valid value, otherwise <code>false</code>.
      */
     public boolean isValid(Object value);
@@ -70,7 +70,7 @@ public interface Validator {
          * specified detail message.
          * 
          * @param message
-         *                The detail message of the problem.
+         *            The detail message of the problem.
          */
         public InvalidValueException(String message) {
             this(message, new InvalidValueException[] {});
@@ -83,10 +83,10 @@ public interface Validator {
          * validatables.
          * 
          * @param message
-         *                The detail message of the problem.
+         *            The detail message of the problem.
          * @param causes
-         *                Array of validatables whos invalidities are possiblity
-         *                causing the invalidity.
+         *            Array of validatables whos invalidities are possiblity
+         *            causing the invalidity.
          */
         public InvalidValueException(String message,
                 InvalidValueException[] causes) {
@@ -152,10 +152,10 @@ public interface Validator {
          * Serial generated by eclipse.
          */
         private static final long serialVersionUID = -4488988853486652602L;
-    
+
         public EmptyValueException(String message) {
             super(message);
         }
-        
+
     }
 }
index f4ea5b5a5693801eacd4f964a3eef6c0d332cd07..a07d4041f7983a238f5a6ff9349958dcc0639f9e 100644 (file)
@@ -61,7 +61,7 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * <code>Container.Hierarchical</code> interface.
      * 
      * @param toBeWrapped
-     *                the container that needs to be accessed hierarchically
+     *            the container that needs to be accessed hierarchically
      * @see #updateHierarchicalWrapper()
      */
     public ContainerHierarchicalWrapper(Container toBeWrapped) {
@@ -143,7 +143,7 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * </p>
      * 
      * @param itemId
-     *                the ID of the item to remove from the hierarchy.
+     *            the ID of the item to remove from the hierarchy.
      */
     private void removeFromHierarchyWrapper(Object itemId) {
 
@@ -168,7 +168,7 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * modified.
      * 
      * @param itemId
-     *                the ID of the item to add to the hierarchy.
+     *            the ID of the item to add to the hierarchy.
      */
     private void addToHierarchyWrapper(Object itemId) {
         roots.add(itemId);
@@ -278,13 +278,13 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * </p>
      * 
      * @param itemId
-     *                the ID of the Item in the container whose child capability
-     *                is to be set.
+     *            the ID of the Item in the container whose child capability is
+     *            to be set.
      * @param childrenAllowed
-     *                the boolean value specifying if the Item can have children
-     *                or not.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the boolean value specifying if the Item can have children or
+     *            not.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean setChildrenAllowed(Object itemId, boolean childrenAllowed) {
 
@@ -312,19 +312,19 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
     /**
      * <p>
      * Sets the parent of an Item. The new parent item must exist and be able to
-     * have children. (<code>canHaveChildren(newParentId) == true</code>).
-     * It is also possible to detach a node from the hierarchy (and thus make it
-     * root) by setting the parent <code>null</code>.
+     * have children. (<code>canHaveChildren(newParentId) == true</code>). It is
+     * also possible to detach a node from the hierarchy (and thus make it root)
+     * by setting the parent <code>null</code>.
      * </p>
      * 
      * @param itemId
-     *                the ID of the item to be set as the child of the Item
-     *                identified with newParentId.
+     *            the ID of the item to be set as the child of the Item
+     *            identified with newParentId.
      * @param newParentId
-     *                the ID of the Item that's to be the new parent of the Item
-     *                identified with itemId.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the ID of the Item that's to be the new parent of the Item
+     *            identified with itemId.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean setParent(Object itemId, Object newParentId) {
 
@@ -413,10 +413,10 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * Creates a new Item into the Container, assigns it an automatic ID, and
      * adds it to the hierarchy.
      * 
-     * @return the autogenerated ID of the new Item or <code>null</code> if
-     *         the operation failed
+     * @return the autogenerated ID of the new Item or <code>null</code> if the
+     *         operation failed
      * @throws UnsupportedOperationException
-     *                 if the addItem is not supported.
+     *             if the addItem is not supported.
      */
     public Object addItem() throws UnsupportedOperationException {
 
@@ -432,15 +432,16 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * hierarchy.
      * 
      * @param itemId
-     *                the ID of the Item to be created.
+     *            the ID of the Item to be created.
      * @return the added Item or <code>null</code> if the operation failed.
      * @throws UnsupportedOperationException
-     *                 if the addItem is not supported.
+     *             if the addItem is not supported.
      */
     public Item addItem(Object itemId) throws UnsupportedOperationException {
 
-       // Null ids are not accepted
-       if (itemId == null) throw new NullPointerException("Container item id can not be null");
+        // Null ids are not accepted
+        if (itemId == null)
+            throw new NullPointerException("Container item id can not be null");
 
         final Item item = container.addItem(itemId);
         if (!hierarchical && item != null) {
@@ -452,10 +453,10 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
     /**
      * Removes all items from the underlying container and from the hierarcy.
      * 
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the removeAllItems is not supported.
+     *             if the removeAllItems is not supported.
      */
     public boolean removeAllItems() throws UnsupportedOperationException {
 
@@ -475,11 +476,11 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * from the hierarcy.
      * 
      * @param itemId
-     *                the ID of the Item to be removed.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the ID of the Item to be removed.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the removeItem is not supported.
+     *             if the removeItem is not supported.
      */
     public boolean removeItem(Object itemId)
             throws UnsupportedOperationException {
@@ -497,15 +498,15 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * Adds a new Property to all Items in the Container.
      * 
      * @param propertyId
-     *                the ID of the new Property.
+     *            the ID of the new Property.
      * @param type
-     *                the Data type of the new Property.
+     *            the Data type of the new Property.
      * @param defaultValue
-     *                the value all created Properties are initialized to.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the value all created Properties are initialized to.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the addContainerProperty is not supported.
+     *             if the addContainerProperty is not supported.
      */
     public boolean addContainerProperty(Object propertyId, Class type,
             Object defaultValue) throws UnsupportedOperationException {
@@ -521,11 +522,11 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
      * </p>
      * 
      * @param propertyId
-     *                the ID of the Property to remove.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the ID of the Property to remove.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the removeContainerProperty is not supported.
+     *             if the removeContainerProperty is not supported.
      */
     public boolean removeContainerProperty(Object propertyId)
             throws UnsupportedOperationException {
index 94a5974f29f4d6c8815038950573e5c391ff2b82..1753a051c9fb7933ab125845256cc37f61697a63 100644 (file)
@@ -72,7 +72,7 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * interface.
      * 
      * @param toBeWrapped
-     *                the container whose contents need to be ordered.
+     *            the container whose contents need to be ordered.
      */
     public ContainerOrderedWrapper(Container toBeWrapped) {
 
@@ -96,7 +96,7 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * </p>
      * 
      * @param id
-     *                the ID of the Item to be removed from the ordering.
+     *            the ID of the Item to be removed from the ordering.
      */
     private void removeFromOrderWrapper(Object id) {
         if (id != null) {
@@ -124,7 +124,7 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * internal ordering. The underlying container is not modified.
      * 
      * @param id
-     *                the ID of the Item to be added to the ordering.
+     *            the ID of the Item to be added to the ordering.
      */
     private void addToOrderWrapper(Object id) {
 
@@ -144,9 +144,9 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * id must be in the container, or must be null.
      * 
      * @param id
-     *                the ID of the Item to be added to the ordering.
+     *            the ID of the Item to be added to the ordering.
      * @param previousItemId
-     *                the Id of the previous item.
+     *            the Id of the previous item.
      */
     private void addToOrderWrapper(Object id, Object previousItemId) {
 
@@ -290,13 +290,13 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * Registers a new Property to all Items in the Container.
      * 
      * @param propertyId
-     *                the ID of the new Property.
+     *            the ID of the new Property.
      * @param type
-     *                the Data type of the new Property.
+     *            the Data type of the new Property.
      * @param defaultValue
-     *                the value all created Properties are initialized to.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the value all created Properties are initialized to.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean addContainerProperty(Object propertyId, Class type,
             Object defaultValue) throws UnsupportedOperationException {
@@ -308,10 +308,10 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * Creates a new Item into the Container, assigns it an automatic ID, and
      * adds it to the ordering.
      * 
-     * @return the autogenerated ID of the new Item or <code>null</code> if
-     *         the operation failed
+     * @return the autogenerated ID of the new Item or <code>null</code> if the
+     *         operation failed
      * @throws UnsupportedOperationException
-     *                 if the addItem is not supported.
+     *             if the addItem is not supported.
      */
     public Object addItem() throws UnsupportedOperationException {
 
@@ -327,10 +327,10 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * ordering.
      * 
      * @param itemId
-     *                the ID of the Item to be created.
+     *            the ID of the Item to be created.
      * @return the added Item or <code>null</code> if the operation failed
      * @throws UnsupportedOperationException
-     *                 if the addItem is not supported.
+     *             if the addItem is not supported.
      */
     public Item addItem(Object itemId) throws UnsupportedOperationException {
         final Item item = container.addItem(itemId);
@@ -346,7 +346,7 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * @return <code>true</code> if the operation succeeded, otherwise
      *         <code>false</code>
      * @throws UnsupportedOperationException
-     *                 if the removeAllItems is not supported.
+     *             if the removeAllItems is not supported.
      */
     public boolean removeAllItems() throws UnsupportedOperationException {
         final boolean success = container.removeAllItems();
@@ -363,11 +363,11 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * from the ordering.
      * 
      * @param itemId
-     *                the ID of the Item to be removed.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the ID of the Item to be removed.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the removeItem is not supported.
+     *             if the removeItem is not supported.
      */
     public boolean removeItem(Object itemId)
             throws UnsupportedOperationException {
@@ -387,11 +387,11 @@ public class ContainerOrderedWrapper implements Container.Ordered,
      * </p>
      * 
      * @param propertyId
-     *                the ID of the Property to remove.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the ID of the Property to remove.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      * @throws UnsupportedOperationException
-     *                 if the removeContainerProperty is not supported.
+     *             if the removeContainerProperty is not supported.
      */
     public boolean removeContainerProperty(Object propertyId)
             throws UnsupportedOperationException {
@@ -510,8 +510,9 @@ public class ContainerOrderedWrapper implements Container.Ordered,
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.data.Container.Ordered#addItemAfter(java.lang.Object,
-     *      java.lang.Object)
+     * @see
+     * com.itmill.toolkit.data.Container.Ordered#addItemAfter(java.lang.Object,
+     * java.lang.Object)
      */
     public Item addItemAfter(Object previousItemId, Object newItemId)
             throws UnsupportedOperationException {
@@ -535,7 +536,8 @@ public class ContainerOrderedWrapper implements Container.Ordered,
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.data.Container.Ordered#addItemAfter(java.lang.Object)
+     * @see
+     * com.itmill.toolkit.data.Container.Ordered#addItemAfter(java.lang.Object)
      */
     public Object addItemAfter(Object previousItemId)
             throws UnsupportedOperationException {
index 81aadc94e45c0495c7dc6b17f5a3af0733691dd6..4af097e5bb7096533515f28ef83e6b51def2eafd 100644 (file)
@@ -113,13 +113,13 @@ public class HierarchicalContainer extends IndexedContainer implements
      * </p>
      * 
      * @param itemId
-     *                the ID of the Item in the container whose child capability
-     *                is to be set.
+     *            the ID of the Item in the container whose child capability is
+     *            to be set.
      * @param childrenAllowed
-     *                the boolean value specifying if the Item can have children
-     *                or not.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the boolean value specifying if the Item can have children or
+     *            not.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean setChildrenAllowed(Object itemId, boolean childrenAllowed) {
 
@@ -141,19 +141,19 @@ public class HierarchicalContainer extends IndexedContainer implements
     /**
      * <p>
      * Sets the parent of an Item. The new parent item must exist and be able to
-     * have children. (<code>canHaveChildren(newParentId) == true</code>).
-     * It is also possible to detach a node from the hierarchy (and thus make it
-     * root) by setting the parent <code>null</code>.
+     * have children. (<code>canHaveChildren(newParentId) == true</code>). It is
+     * also possible to detach a node from the hierarchy (and thus make it root)
+     * by setting the parent <code>null</code>.
      * </p>
      * 
      * @param itemId
-     *                the ID of the item to be set as the child of the Item
-     *                identified with newParentId.
+     *            the ID of the item to be set as the child of the Item
+     *            identified with newParentId.
      * @param newParentId
-     *                the ID of the Item that's to be the new parent of the Item
-     *                identified with itemId.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the ID of the Item that's to be the new parent of the Item
+     *            identified with itemId.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean setParent(Object itemId, Object newParentId) {
 
@@ -249,7 +249,8 @@ public class HierarchicalContainer extends IndexedContainer implements
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.data.util.IndexedContainer#addItem(java.lang.Object)
+     * @see
+     * com.itmill.toolkit.data.util.IndexedContainer#addItem(java.lang.Object)
      */
     public Item addItem(Object itemId) {
         final Item item = super.addItem(itemId);
@@ -279,7 +280,9 @@ public class HierarchicalContainer extends IndexedContainer implements
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.data.util.IndexedContainer#removeItem(java.lang.Object)
+     * @see
+     * com.itmill.toolkit.data.util.IndexedContainer#removeItem(java.lang.Object
+     * )
      */
     public boolean removeItem(Object itemId) {
         final boolean success = super.removeItem(itemId);
index f5ed070960f8cab01c8161ba332e5105207cd4f7..e151b57780e1d7632982e77b3a900ac041f46909 100644 (file)
@@ -98,9 +98,9 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * property.
      * </p>
      * <p>
-     * The getter method of a <code>MethodProperty</code> instantiated with
-     * this constructor will be called with no arguments, and the setter method
-     * with only the new value as the sole argument.
+     * The getter method of a <code>MethodProperty</code> instantiated with this
+     * constructor will be called with no arguments, and the setter method with
+     * only the new value as the sole argument.
      * </p>
      * 
      * <p>
@@ -116,9 +116,9 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * </p>
      * 
      * @param instance
-     *                the object that includes the property.
+     *            the object that includes the property.
      * @param beanPropertyName
-     *                the name of the property to bind to.
+     *            the name of the property to bind to.
      */
     public MethodProperty(Object instance, String beanPropertyName) {
 
@@ -204,13 +204,13 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * </p>
      * 
      * @param type
-     *                the type of the property.
+     *            the type of the property.
      * @param instance
-     *                the object that includes the property.
+     *            the object that includes the property.
      * @param getMethodName
-     *                the name of the getter method.
+     *            the name of the getter method.
      * @param setMethodName
-     *                the name of the setter method.
+     *            the name of the setter method.
      * 
      */
     public MethodProperty(Class type, Object instance, String getMethodName,
@@ -221,8 +221,8 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * <p>
-     * Creates a new instance of <code>MethodProperty</code> with the getter
-     * and setter methods. The getter method of a <code>MethodProperty</code>
+     * Creates a new instance of <code>MethodProperty</code> with the getter and
+     * setter methods. The getter method of a <code>MethodProperty</code>
      * instantiated with this constructor will be called with no arguments, and
      * the setter method with only the new value as the sole argument.
      * </p>
@@ -234,13 +234,13 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * </p>
      * 
      * @param type
-     *                the type of the property.
+     *            the type of the property.
      * @param instance
-     *                the object that includes the property.
+     *            the object that includes the property.
      * @param getMethod
-     *                the getter method.
+     *            the getter method.
      * @param setMethod
-     *                the setter method.
+     *            the setter method.
      */
     public MethodProperty(Class type, Object instance, Method getMethod,
             Method setMethod) {
@@ -262,28 +262,27 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * <p>
      * For example, if the <code>setArgs</code> contains <code>A</code>,
      * <code>B</code> and <code>C</code>, and <code>setArgumentIndex =
-     * 1</code>,
-     * the call <code>methodProperty.setValue(X)</code> would result in the
-     * setter method to be called with the parameter set of
+     * 1</code>, the call <code>methodProperty.setValue(X)</code> would result
+     * in the setter method to be called with the parameter set of
      * <code>{A, X, C}</code>
      * </p>
      * 
      * @param type
-     *                the type of the property.
+     *            the type of the property.
      * @param instance
-     *                the object that includes the property.
+     *            the object that includes the property.
      * @param getMethodName
-     *                the name of the getter method.
+     *            the name of the getter method.
      * @param setMethodName
-     *                the name of the setter method.
+     *            the name of the setter method.
      * @param getArgs
-     *                the fixed argument list to be passed to the getter method.
+     *            the fixed argument list to be passed to the getter method.
      * @param setArgs
-     *                the fixed argument list to be passed to the setter method.
+     *            the fixed argument list to be passed to the setter method.
      * @param setArgumentIndex
-     *                the index of the argument in <code>setArgs</code> to be
-     *                replaced with <code>newValue</code> when
-     *                {@link #setValue(Object newValue)} is called.
+     *            the index of the argument in <code>setArgs</code> to be
+     *            replaced with <code>newValue</code> when
+     *            {@link #setValue(Object newValue)} is called.
      */
     public MethodProperty(Class type, Object instance, String getMethodName,
             String setMethodName, Object[] getArgs, Object[] setArgs,
@@ -438,33 +437,32 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * <p>
-     * Creates a new instance of <code>MethodProperty</code> from the getter
-     * and setter methods, and argument lists.
+     * Creates a new instance of <code>MethodProperty</code> from the getter and
+     * setter methods, and argument lists.
      * </p>
      * <p>
      * This constructor behaves exactly like
-     * {@link #MethodProperty(Class type, Object instance, String getMethodName,
-     * String setMethodName, Object [] getArgs, Object [] setArgs, int
-     * setArgumentIndex)} except that instead of names of the getter and setter
-     * methods this constructor is given the actual methods themselves.
+     * {@link #MethodProperty(Class type, Object instance, String getMethodName, String setMethodName, Object [] getArgs, Object [] setArgs, int setArgumentIndex)}
+     * except that instead of names of the getter and setter methods this
+     * constructor is given the actual methods themselves.
      * </p>
      * 
      * @param type
-     *                the type of the property.
+     *            the type of the property.
      * @param instance
-     *                the object that includes the property.
+     *            the object that includes the property.
      * @param getMethod
-     *                the getter method.
+     *            the getter method.
      * @param setMethod
-     *                the setter method.
+     *            the setter method.
      * @param getArgs
-     *                the fixed argument list to be passed to the getter method.
+     *            the fixed argument list to be passed to the getter method.
      * @param setArgs
-     *                the fixed argument list to be passed to the setter method.
+     *            the fixed argument list to be passed to the setter method.
      * @param setArgumentIndex
-     *                the index of the argument in <code>setArgs</code> to be
-     *                replaced with <code>newValue</code> when
-     *                {@link #setValue(Object newValue)} is called.
+     *            the index of the argument in <code>setArgs</code> to be
+     *            replaced with <code>newValue</code> when
+     *            {@link #setValue(Object newValue)} is called.
      */
     public MethodProperty(Class type, Object instance, Method getMethod,
             Method setMethod, Object[] getArgs, Object[] setArgs,
@@ -517,10 +515,10 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * Returns the type of the Property. The methods <code>getValue</code> and
-     * <code>setValue</code> must be compatible with this type: one must be
-     * able to safely cast the value returned from <code>getValue</code> to
-     * the given type and pass any variable assignable to this type as an
-     * argument to <code>setValue</code>.
+     * <code>setValue</code> must be compatible with this type: one must be able
+     * to safely cast the value returned from <code>getValue</code> to the given
+     * type and pass any variable assignable to this type as an argument to
+     * <code>setValue</code>.
      * 
      * @return type of the Property
      */
@@ -530,8 +528,8 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * Tests if the object is in read-only mode. In read-only mode calls to
-     * <code>setValue</code> will throw <code>ReadOnlyException</code> and
-     * will not modify the value of the Property.
+     * <code>setValue</code> will throw <code>ReadOnlyException</code> and will
+     * not modify the value of the Property.
      * 
      * @return <code>true</code> if the object is in read-only mode,
      *         <code>false</code> if it's not
@@ -575,13 +573,13 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * </p>
      * 
      * @param getArgs
-     *                the fixed argument list to be passed to the getter method.
+     *            the fixed argument list to be passed to the getter method.
      * @param setArgs
-     *                the fixed argument list to be passed to the setter method.
+     *            the fixed argument list to be passed to the setter method.
      * @param setArgumentIndex
-     *                the index of the argument in <code>setArgs</code> to be
-     *                replaced with <code>newValue</code> when
-     *                {@link #setValue(Object newValue)} is called.
+     *            the index of the argument in <code>setArgs</code> to be
+     *            replaced with <code>newValue</code> when
+     *            {@link #setValue(Object newValue)} is called.
      */
     public void setArguments(Object[] getArgs, Object[] setArgs,
             int setArgumentIndex) {
@@ -598,18 +596,16 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * Sets the value of the property. This method supports setting from
-     * <code>String</code>s if either <code>String</code> is directly
-     * assignable to property type, or the type class contains a string
-     * constructor.
+     * <code>String</code>s if either <code>String</code> is directly assignable
+     * to property type, or the type class contains a string constructor.
      * 
      * @param newValue
-     *                the New value of the property.
+     *            the New value of the property.
      * @throws <code>Property.ReadOnlyException</code> if the object is in
-     *                 read-only mode.
+     *         read-only mode.
      * @throws <code>Property.ConversionException</code> if
-     *                 <code>newValue</code> can't be converted into the
-     *                 Property's native type directly or through
-     *                 <code>String</code>.
+     *         <code>newValue</code> can't be converted into the Property's
+     *         native type directly or through <code>String</code>.
      * @see #invokeSetMethod(Object)
      */
     public void setValue(Object newValue) throws Property.ReadOnlyException,
@@ -678,7 +674,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * Sets the Property's read-only mode to the specified status.
      * 
      * @param newStatus
-     *                the new read-only status of the Property.
+     *            the new read-only status of the Property.
      */
     public void setReadOnly(boolean newStatus) {
         final boolean prevStatus = readOnly;
@@ -719,18 +715,17 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
          * detail message.
          * 
          * @param msg
-         *                the detail message.
+         *            the detail message.
          */
         public MethodException(String msg) {
             super(msg);
         }
 
         /**
-         * Constructs a new <code>MethodException</code> from another
-         * exception.
+         * Constructs a new <code>MethodException</code> from another exception.
          * 
          * @param cause
-         *                the cause of the exception.
+         *            the cause of the exception.
          */
         public MethodException(Throwable cause) {
             this.cause = cause;
@@ -751,7 +746,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
         }
     }
 
-    /* Events *************************************************************** */
+    /* Events */
 
     /**
      * An <code>Event</code> object specifying the Property whose read-only
@@ -774,7 +769,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
          * Constructs a new read-only status change event for this object.
          * 
          * @param source
-         *                source object of the event.
+         *            source object of the event.
          */
         protected ReadOnlyStatusChangeEvent(MethodProperty source) {
             super(source);
@@ -795,7 +790,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * Registers a new read-only status change listener for this Property.
      * 
      * @param listener
-     *                the new Listener to be registered.
+     *            the new Listener to be registered.
      */
     public void addListener(Property.ReadOnlyStatusChangeListener listener) {
         if (readOnlyStatusChangeListeners == null) {
@@ -808,7 +803,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
      * Removes a previously registered read-only status change listener.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      */
     public void removeListener(Property.ReadOnlyStatusChangeListener listener) {
         if (readOnlyStatusChangeListeners != null) {
@@ -832,8 +827,8 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
     }
 
     /**
-     * An <code>Event</code> object specifying the Property whose value has
-     * been changed.
+     * An <code>Event</code> object specifying the Property whose value has been
+     * changed.
      * 
      * @author IT Mill Ltd.
      * @version
@@ -847,7 +842,7 @@ public class MethodProperty implements Property, Property.ValueChangeNotifier,
          * Constructs a new value change event for this object.
          * 
          * @param source
-         *                source object of the event.
+         *            source object of the event.
          */
         protected ValueChangeEvent(MethodProperty source) {
             super(source);
index 503eabeffe0099ff60bcf1eee9fe1c68f163dc90..c89d1f5cc98faa3d8dcc09dd98d68cee19f8bf52 100644 (file)
@@ -53,7 +53,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * value.
      * 
      * @param value
-     *                the Initial value of the Property.
+     *            the Initial value of the Property.
      */
     public ObjectProperty(Object value) {
         this(value, value.getClass());
@@ -63,10 +63,10 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * Creates a new instance of ObjectProperty with the given value and type.
      * 
      * @param value
-     *                the Initial value of the Property.
+     *            the Initial value of the Property.
      * @param type
-     *                the type of the value. The value must be assignable to
-     *                given type.
+     *            the type of the value. The value must be assignable to given
+     *            type.
      */
     public ObjectProperty(Object value, Class type) {
 
@@ -80,12 +80,12 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * read-only mode status.
      * 
      * @param value
-     *                the Initial value of the property.
+     *            the Initial value of the property.
      * @param type
-     *                the type of the value. <code>value</code> must be
-     *                assignable to this type.
+     *            the type of the value. <code>value</code> must be assignable
+     *            to this type.
      * @param readOnly
-     *                Sets the read-only mode.
+     *            Sets the read-only mode.
      */
     public ObjectProperty(Object value, Class type, boolean readOnly) {
         this(value, type);
@@ -94,10 +94,10 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * Returns the type of the ObjectProperty. The methods <code>getValue</code>
-     * and <code>setValue</code> must be compatible with this type: one must
-     * be able to safely cast the value returned from <code>getValue</code> to
-     * the given type and pass any variable assignable to this type as an
-     * argument to <code>setValue</code>.
+     * and <code>setValue</code> must be compatible with this type: one must be
+     * able to safely cast the value returned from <code>getValue</code> to the
+     * given type and pass any variable assignable to this type as an argument
+     * to <code>setValue</code>.
      * 
      * @return type of the Property
      */
@@ -116,8 +116,8 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * Returns the value of the ObjectProperty in human readable textual format.
-     * The return value should be assignable to the <code>setValue</code>
-     * method if the Property is not in read-only mode.
+     * The return value should be assignable to the <code>setValue</code> method
+     * if the Property is not in read-only mode.
      * 
      * @return <code>String</code> representation of the value stored in the
      *         ObjectProperty
@@ -148,7 +148,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * Sets the Property's read-only mode to the specified status.
      * 
      * @param newStatus
-     *                the new read-only status of the Property.
+     *            the new read-only status of the Property.
      */
     public void setReadOnly(boolean newStatus) {
         if (newStatus != readOnly) {
@@ -159,17 +159,16 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
 
     /**
      * Sets the value of the property. This method supports setting from
-     * <code>String</code> if either <code>String</code> is directly
-     * assignable to property type, or the type class contains a string
-     * constructor.
+     * <code>String</code> if either <code>String</code> is directly assignable
+     * to property type, or the type class contains a string constructor.
      * 
      * @param newValue
-     *                the New value of the property.
+     *            the New value of the property.
      * @throws <code>Property.ReadOnlyException</code> if the object is in
-     *                 read-only mode
-     * @throws <code>Property.ConversionException</code> if the newValue
-     *                 can't be converted into the Property's native type
-     *                 directly or through <code>String</code>
+     *         read-only mode
+     * @throws <code>Property.ConversionException</code> if the newValue can't
+     *         be converted into the Property's native type directly or through
+     *         <code>String</code>
      */
     public void setValue(Object newValue) throws Property.ReadOnlyException,
             Property.ConversionException {
@@ -201,7 +200,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
         fireValueChange();
     }
 
-    /* Events *************************************************************** */
+    /* Events */
 
     /**
      * An <code>Event</code> object specifying the ObjectProperty whose value
@@ -224,7 +223,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
          * Constructs a new value change event for this object.
          * 
          * @param source
-         *                the source object of the event.
+         *            the source object of the event.
          */
         protected ValueChangeEvent(ObjectProperty source) {
             super(source);
@@ -261,7 +260,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
          * Constructs a new read-only status change event for this object.
          * 
          * @param source
-         *                source object of the event
+         *            source object of the event
          */
         protected ReadOnlyStatusChangeEvent(ObjectProperty source) {
             super(source);
@@ -281,7 +280,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * Removes a previously registered value change listener.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      */
     public void removeListener(Property.ValueChangeListener listener) {
         if (valueChangeListeners != null) {
@@ -293,7 +292,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * Registers a new value change listener for this ObjectProperty.
      * 
      * @param listener
-     *                the new Listener to be registered
+     *            the new Listener to be registered
      */
     public void addListener(Property.ValueChangeListener listener) {
         if (valueChangeListeners == null) {
@@ -306,7 +305,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * Registers a new read-only status change listener for this Property.
      * 
      * @param listener
-     *                the new Listener to be registered
+     *            the new Listener to be registered
      */
     public void addListener(Property.ReadOnlyStatusChangeListener listener) {
         if (readOnlyStatusChangeListeners == null) {
@@ -319,7 +318,7 @@ public class ObjectProperty implements Property, Property.ValueChangeNotifier,
      * Removes a previously registered read-only status change listener.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      */
     public void removeListener(Property.ReadOnlyStatusChangeListener listener) {
         if (readOnlyStatusChangeListeners != null) {
index b191520a0fb382ebcd8f30742346c9bea85939df..fd60121ebc2f97d46e3b669437c12bdb343f036a 100644 (file)
@@ -28,7 +28,7 @@ import com.itmill.toolkit.data.Property;
 public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
         Cloneable {
 
-    /* Private representation of the item *********************************** */
+    /* Private representation of the item */
 
     /**
      * Mapping from property id to property.
@@ -45,7 +45,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      */
     private LinkedList propertySetChangeListeners = null;
 
-    /* Item methods ******************************************************** */
+    /* Item methods */
 
     /**
      * Gets the Property corresponding to the given Property ID stored in the
@@ -53,7 +53,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * returned.
      * 
      * @param id
-     *                the identifier of the Property to get.
+     *            the identifier of the Property to get.
      * @return the Property with the given ID or <code>null</code>
      */
     public Property getItemProperty(Object id) {
@@ -70,7 +70,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
         return Collections.unmodifiableCollection(list);
     }
 
-    /* Item.Managed methods ************************************************* */
+    /* Item.Managed methods */
 
     /**
      * Removes the Property identified by ID from the Item. This functionality
@@ -78,7 +78,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * <code>false</code>.
      * 
      * @param id
-     *                the ID of the Property to be removed.
+     *            the ID of the Property to be removed.
      * @return <code>true</code> if the operation succeeded <code>false</code>
      *         if not
      */
@@ -100,16 +100,17 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * Tries to add a new Property into the Item.
      * 
      * @param id
-     *                the ID of the new Property.
+     *            the ID of the new Property.
      * @param property
-     *                the Property to be added and associated with the id.
-     * @return <code>true</code> if the operation succeeded,
-     *         <code>false</code> if not
+     *            the Property to be added and associated with the id.
+     * @return <code>true</code> if the operation succeeded, <code>false</code>
+     *         if not
      */
     public boolean addItemProperty(Object id, Property property) {
 
-       // Null ids are not accepted
-       if (id == null) throw new NullPointerException("Item property id can not be null");
+        // Null ids are not accepted
+        if (id == null)
+            throw new NullPointerException("Item property id can not be null");
 
         // Cant add a property twice
         if (map.containsKey(id)) {
@@ -127,8 +128,8 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
     }
 
     /**
-     * Gets the <code>String</code> representation of the contents of the
-     * Item. The format of the string is a space separated catenation of the
+     * Gets the <code>String</code> representation of the contents of the Item.
+     * The format of the string is a space separated catenation of the
      * <code>String</code> representations of the Properties contained by the
      * Item.
      * 
@@ -148,7 +149,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
         return retValue;
     }
 
-    /* Notifiers ************************************************************ */
+    /* Notifiers */
 
     /**
      * An <code>event</code> object specifying an Item whose Property set has
@@ -185,7 +186,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * Registers a new property set change listener for this Item.
      * 
      * @param listener
-     *                the new Listener to be registered.
+     *            the new Listener to be registered.
      */
     public void addListener(Item.PropertySetChangeListener listener) {
         if (propertySetChangeListeners == null) {
@@ -198,7 +199,7 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * Removes a previously registered property set change listener.
      * 
      * @param listener
-     *                the Listener to be removed.
+     *            the Listener to be removed.
      */
     public void removeListener(Item.PropertySetChangeListener listener) {
         if (propertySetChangeListeners != null) {
@@ -237,8 +238,8 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * </p>
      * 
      * @throws CloneNotSupportedException
-     *                 if the object's class does not support the Cloneable
-     *                 interface.
+     *             if the object's class does not support the Cloneable
+     *             interface.
      * 
      * @see java.lang.Object#clone()
      */
@@ -261,9 +262,9 @@ public class PropertysetItem implements Item, Item.PropertySetChangeNotifier,
      * boolean value as this object.
      * 
      * @param obj
-     *                the object to compare with.
-     * @return <code>true</code> if the Boolean objects represent the same
-     *         value otherwise <code>false</code>.
+     *            the object to compare with.
+     * @return <code>true</code> if the Boolean objects represent the same value
+     *         otherwise <code>false</code>.
      * @see java.lang.Object#equals(java.lang.Object)
      */
     public boolean equals(Object obj) {
index 9f8704e9339b9955385af4b18b296e106c2055d2..b22064dbdb2717484afc22bde2b8be292a0e6010 100644 (file)
@@ -20,8 +20,8 @@ import com.itmill.toolkit.data.Property;
 
 /**
  * <p>
- * The <code>QueryContainer</code> is the specialized form of Container which
- * is Ordered and Indexed. This is used to represent the contents of relational
+ * The <code>QueryContainer</code> is the specialized form of Container which is
+ * Ordered and Indexed. This is used to represent the contents of relational
  * database tables accessed through the JDBC Connection in the Toolkit Table.
  * This creates Items based on the queryStatement provided to the container.
  * </p>
@@ -78,13 +78,13 @@ public class QueryContainer implements Container, Container.Ordered,
      * <code>queryStatement</code>.
      * 
      * @param queryStatement
-     *                Database query
+     *            Database query
      * @param connection
-     *                Connection object
+     *            Connection object
      * @param resultSetType
      * @param resultSetConcurrency
      * @throws SQLException
-     *                 when database operation fails
+     *             when database operation fails
      */
     public QueryContainer(String queryStatement, Connection connection,
             int resultSetType, int resultSetConcurrency) throws SQLException {
@@ -101,13 +101,13 @@ public class QueryContainer implements Container, Container.Ordered,
      * concurrency.
      * 
      * @param queryStatement
-     *                Database query
+     *            Database query
      * @param connection
-     *                Connection object
+     *            Connection object
      * @see QueryContainer#DEFAULT_RESULTSET_TYPE
      * @see QueryContainer#DEFAULT_RESULTSET_CONCURRENCY
      * @throws SQLException
-     *                 when database operation fails
+     *             when database operation fails
      */
     public QueryContainer(String queryStatement, Connection connection)
             throws SQLException {
@@ -120,7 +120,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * constructor.
      * 
      * @throws SQLException
-     *                 when parameter initialization fails.
+     *             when parameter initialization fails.
      * @see QueryContainer#QueryContainer(String, Connection, int, int).
      */
     private void init() throws SQLException {
@@ -148,7 +148,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * items.
      * 
      * @throws SQLException
-     *                 when database operation fails
+     *             when database operation fails
      * 
      */
 
@@ -165,7 +165,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Releases and nullifies the <code>statement</code>.
      * 
      * @throws SQLException
-     *                 when database operation fails
+     *             when database operation fails
      */
 
     public void close() throws SQLException {
@@ -179,7 +179,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Gets the Item with the given Item ID from the Container.
      * 
      * @param id
-     *                ID of the Item to retrieve
+     *            ID of the Item to retrieve
      * @return Item Id.
      */
 
@@ -216,9 +216,9 @@ public class QueryContainer implements Container, Container.Ordered,
      * <code>null</code> is returned.
      * 
      * @param itemId
-     *                ID of the Item which contains the Property
+     *            ID of the Item which contains the Property
      * @param propertyId
-     *                ID of the Property to retrieve
+     *            ID of the Property to retrieve
      * 
      * @return Property with the given ID if exists; <code>null</code>
      *         otherwise.
@@ -245,7 +245,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Gets the data type of all properties identified by the given type ID.
      * 
      * @param id
-     *                ID identifying the Properties
+     *            ID identifying the Properties
      * 
      * @return data type of the Properties
      */
@@ -267,7 +267,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Tests if the list contains the specified Item.
      * 
      * @param id
-     *                ID the of Item to be tested.
+     *            ID the of Item to be tested.
      * @return <code>true</code> if given id is in the container;
      *         <code>false</code> otherwise.
      */
@@ -289,12 +289,12 @@ public class QueryContainer implements Container, Container.Ordered,
      * Creates new Item with the given ID into the Container.
      * 
      * @param itemId
-     *                ID of the Item to be created.
+     *            ID of the Item to be created.
      * 
      * @return Created new Item, or <code>null</code> if it fails.
      * 
      * @throws UnsupportedOperationException
-     *                 if the addItem method is not supported.
+     *             if the addItem method is not supported.
      */
     public Item addItem(Object itemId) throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
@@ -305,7 +305,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * 
      * @return ID of the newly created Item, or <code>null</code> if it fails.
      * @throws UnsupportedOperationException
-     *                 if the addItem method is not supported.
+     *             if the addItem method is not supported.
      */
     public Object addItem() throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
@@ -315,11 +315,11 @@ public class QueryContainer implements Container, Container.Ordered,
      * Removes the Item identified by ItemId from the Container.
      * 
      * @param itemId
-     *                ID of the Item to remove.
-     * @return <code>true</code> if the operation succeeded;
-     *         <code>false</code> otherwise.
+     *            ID of the Item to remove.
+     * @return <code>true</code> if the operation succeeded; <code>false</code>
+     *         otherwise.
      * @throws UnsupportedOperationException
-     *                 if the removeItem method is not supported.
+     *             if the removeItem method is not supported.
      */
     public boolean removeItem(Object itemId)
             throws UnsupportedOperationException {
@@ -330,15 +330,15 @@ public class QueryContainer implements Container, Container.Ordered,
      * Adds new Property to all Items in the Container.
      * 
      * @param propertyId
-     *                ID of the Property
+     *            ID of the Property
      * @param type
-     *                Data type of the new Property
+     *            Data type of the new Property
      * @param defaultValue
-     *                The value all created Properties are initialized to.
-     * @return <code>true</code> if the operation succeeded;
-     *         <code>false</code> otherwise.
+     *            The value all created Properties are initialized to.
+     * @return <code>true</code> if the operation succeeded; <code>false</code>
+     *         otherwise.
      * @throws UnsupportedOperationException
-     *                 if the addContainerProperty method is not supported.
+     *             if the addContainerProperty method is not supported.
      */
     public boolean addContainerProperty(Object propertyId, Class type,
             Object defaultValue) throws UnsupportedOperationException {
@@ -349,11 +349,11 @@ public class QueryContainer implements Container, Container.Ordered,
      * Removes a Property specified by the given Property ID from the Container.
      * 
      * @param propertyId
-     *                ID of the Property to remove
-     * @return <code>true</code> if the operation succeeded;
-     *         <code>false</code> otherwise.
+     *            ID of the Property to remove
+     * @return <code>true</code> if the operation succeeded; <code>false</code>
+     *         otherwise.
      * @throws UnsupportedOperationException
-     *                 if the removeContainerProperty method is not supported.
+     *             if the removeContainerProperty method is not supported.
      */
     public boolean removeContainerProperty(Object propertyId)
             throws UnsupportedOperationException {
@@ -363,10 +363,10 @@ public class QueryContainer implements Container, Container.Ordered,
     /**
      * Removes all Items from the Container.
      * 
-     * @return <code>true</code> if the operation succeeded;
-     *         <code>false</code> otherwise.
+     * @return <code>true</code> if the operation succeeded; <code>false</code>
+     *         otherwise.
      * @throws UnsupportedOperationException
-     *                 if the removeAllItems method is not supported.
+     *             if the removeAllItems method is not supported.
      */
     public boolean removeAllItems() throws UnsupportedOperationException {
         throw new UnsupportedOperationException();
@@ -376,12 +376,12 @@ public class QueryContainer implements Container, Container.Ordered,
      * Adds new item after the given item.
      * 
      * @param previousItemId
-     *                Id of the previous item in ordered container.
+     *            Id of the previous item in ordered container.
      * @param newItemId
-     *                Id of the new item to be added.
+     *            Id of the new item to be added.
      * @return Returns new item or <code>null</code> if the operation fails.
      * @throws UnsupportedOperationException
-     *                 if the addItemAfter method is not supported.
+     *             if the addItemAfter method is not supported.
      */
     public Item addItemAfter(Object previousItemId, Object newItemId)
             throws UnsupportedOperationException {
@@ -392,11 +392,11 @@ public class QueryContainer implements Container, Container.Ordered,
      * Adds new item after the given item.
      * 
      * @param previousItemId
-     *                Id of the previous item in ordered container.
+     *            Id of the previous item in ordered container.
      * @return Returns item id created new item or <code>null</code> if the
      *         operation fails.
      * @throws UnsupportedOperationException
-     *                 if the addItemAfter method is not supported.
+     *             if the addItemAfter method is not supported.
      */
     public Object addItemAfter(Object previousItemId)
             throws UnsupportedOperationException {
@@ -419,7 +419,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Returns <code>true</code> if given id is first id at first index.
      * 
      * @param id
-     *                ID of an Item in the Container.
+     *            ID of an Item in the Container.
      */
     public boolean isFirstId(Object id) {
         return size > 0 && (id instanceof Integer)
@@ -430,7 +430,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Returns <code>true</code> if given id is last id at last index.
      * 
      * @param id
-     *                ID of an Item in the Container
+     *            ID of an Item in the Container
      * 
      */
     public boolean isLastId(Object id) {
@@ -454,7 +454,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Returns id of next item in container at next index.
      * 
      * @param id
-     *                ID of an Item in the Container.
+     *            ID of an Item in the Container.
      * @return ID of the next Item or null.
      */
     public Object nextItemId(Object id) {
@@ -472,7 +472,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Returns id of previous item in container at previous index.
      * 
      * @param id
-     *                ID of an Item in the Container.
+     *            ID of an Item in the Container.
      * @return ID of the previous Item or null.
      */
     public Object prevItemId(Object id) {
@@ -505,13 +505,13 @@ public class QueryContainer implements Container, Container.Ordered,
          * Adds the item property.
          * 
          * @param id
-         *                ID of the new Property.
+         *            ID of the new Property.
          * @param property
-         *                Property to be added and associated with ID.
+         *            Property to be added and associated with ID.
          * @return <code>true</code> if the operation succeeded;
          *         <code>false</code> otherwise.
          * @throws UnsupportedOperationException
-         *                 if the addItemProperty method is not supported.
+         *             if the addItemProperty method is not supported.
          */
         public boolean addItemProperty(Object id, Property property)
                 throws UnsupportedOperationException {
@@ -523,7 +523,7 @@ public class QueryContainer implements Container, Container.Ordered,
          * the Item.
          * 
          * @param propertyId
-         *                identifier of the Property to get
+         *            identifier of the Property to get
          * @return the Property with the given ID or <code>null</code>
          */
         public Property getItemProperty(Object propertyId) {
@@ -544,11 +544,11 @@ public class QueryContainer implements Container, Container.Ordered,
          * Removes given item property.
          * 
          * @param id
-         *                ID of the Property to be removed.
+         *            ID of the Property to be removed.
          * @return <code>true</code> if the item property is removed;
          *         <code>false</code> otherwise.
          * @throws UnsupportedOperationException
-         *                 if the removeItemProperty is not supported.
+         *             if the removeItemProperty is not supported.
          */
         public boolean removeItemProperty(Object id)
                 throws UnsupportedOperationException {
@@ -574,12 +574,12 @@ public class QueryContainer implements Container, Container.Ordered,
      * Adds the given item at the position of given index.
      * 
      * @param index
-     *                Index to add the new item.
+     *            Index to add the new item.
      * @param newItemId
-     *                Id of the new item to be added.
+     *            Id of the new item to be added.
      * @return new item or <code>null</code> if the operation fails.
      * @throws UnsupportedOperationException
-     *                 if the addItemAt is not supported.
+     *             if the addItemAt is not supported.
      */
     public Item addItemAt(int index, Object newItemId)
             throws UnsupportedOperationException {
@@ -590,12 +590,12 @@ public class QueryContainer implements Container, Container.Ordered,
      * Adds item at the position of provided index in the container.
      * 
      * @param index
-     *                Index to add the new item.
+     *            Index to add the new item.
      * @return item id created new item or <code>null</code> if the operation
      *         fails.
      * 
      * @throws UnsupportedOperationException
-     *                 if the addItemAt is not supported.
+     *             if the addItemAt is not supported.
      */
 
     public Object addItemAt(int index) throws UnsupportedOperationException {
@@ -606,7 +606,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Gets the Index id in the container.
      * 
      * @param index
-     *                Index Id.
+     *            Index Id.
      * @return ID in the given index.
      */
     public Object getIdByIndex(int index) {
@@ -620,7 +620,7 @@ public class QueryContainer implements Container, Container.Ordered,
      * Gets the index of the Item corresponding to id in the container.
      * 
      * @param id
-     *                ID of an Item in the Container
+     *            ID of an Item in the Container
      * @return index of the Item, or -1 if the Container does not include the
      *         Item
      */
index be16c2633ed651d0d33087da6ae89628c1618fd7..f8ac2fc7eb447ced3f3cb7483755a6ed5622653a 100644 (file)
@@ -26,15 +26,15 @@ import com.itmill.toolkit.data.Validator;
 public class CompositeValidator implements Validator {
 
     /**
-     * The validators are combined with <code>AND</code> clause: validity of
-     * the composite implies validity of the all validators it is composed of
-     * must be valid.
+     * The validators are combined with <code>AND</code> clause: validity of the
+     * composite implies validity of the all validators it is composed of must
+     * be valid.
      */
     public static final int MODE_AND = 0;
 
     /**
-     * The validators are combined with <code>OR</code> clause: validity of
-     * the composite implies that some of validators it is composed of must be
+     * The validators are combined with <code>OR</code> clause: validity of the
+     * composite implies that some of validators it is composed of must be
      * valid.
      */
     public static final int MODE_OR = 1;
@@ -90,9 +90,9 @@ public class CompositeValidator implements Validator {
      * </p>
      * 
      * @param value
-     *                the value to check.
+     *            the value to check.
      * @throws Validator.InvalidValueException
-     *                 if the value is not valid.
+     *             if the value is not valid.
      */
     public void validate(Object value) throws Validator.InvalidValueException {
         switch (mode) {
@@ -136,7 +136,7 @@ public class CompositeValidator implements Validator {
      * </ul>
      * 
      * @param value
-     *                the value to check.
+     *            the value to check.
      */
     public boolean isValid(Object value) {
         switch (mode) {
@@ -180,7 +180,7 @@ public class CompositeValidator implements Validator {
      * </ul>
      * 
      * @param mode
-     *                the mode to set.
+     *            the mode to set.
      */
     public void setMode(int mode) {
         if (mode != MODE_AND && mode != MODE_OR) {
@@ -208,7 +208,7 @@ public class CompositeValidator implements Validator {
      * is null, original error messages of the sub-validators are used instead.
      * 
      * @param errorMessage
-     *                the Error Message to set.
+     *            the Error Message to set.
      */
     public void setErrorMessage(String errorMessage) {
         this.errorMessage = errorMessage;
@@ -218,8 +218,8 @@ public class CompositeValidator implements Validator {
      * Adds validator to the interface.
      * 
      * @param validator
-     *                the Validator object which performs validation checks on
-     *                this set of data field values.
+     *            the Validator object which performs validation checks on this
+     *            set of data field values.
      */
     public void addValidator(Validator validator) {
         if (validator == null) {
@@ -232,8 +232,8 @@ public class CompositeValidator implements Validator {
      * Removes a validator from the composite.
      * 
      * @param validator
-     *                the Validator object which performs validation checks on
-     *                this set of data field values.
+     *            the Validator object which performs validation checks on this
+     *            set of data field values.
      */
     public void removeValidator(Validator validator) {
         validators.remove(validator);
index 9b4c987b8df913ed8b13bd17db1fb096a8138d83..e2038d9017fd4ba7737233fdab6935a49b50e190 100644 (file)
@@ -25,9 +25,9 @@ public class NullValidator implements Validator {
      * Creates a new NullValidator.
      * 
      * @param errorMessage
-     *                the error message to display on invalidation.
+     *            the error message to display on invalidation.
      * @param onlyNullAllowed
-     *                Are only nulls allowed?
+     *            Are only nulls allowed?
      */
     public NullValidator(String errorMessage, boolean onlyNullAllowed) {
         setErrorMessage(errorMessage);
@@ -38,9 +38,9 @@ public class NullValidator implements Validator {
      * Validates the data given in value.
      * 
      * @param value
-     *                the value to validate.
+     *            the value to validate.
      * @throws Validator.InvalidValueException
-     *                 if the value was invalid.
+     *             if the value was invalid.
      */
     public void validate(Object value) throws Validator.InvalidValueException {
         if ((onlyNullAllowed && value != null)
@@ -53,9 +53,8 @@ public class NullValidator implements Validator {
      * Tests if the given value is valid.
      * 
      * @param value
-     *                the value to validate.
-     * @returns <code>true</code> for valid value, otherwise
-     *          <code>false</code>.
+     *            the value to validate.
+     * @returns <code>true</code> for valid value, otherwise <code>false</code>.
      */
     public boolean isValid(Object value) {
         return onlyNullAllowed ? value == null : value != null;
@@ -73,8 +72,8 @@ public class NullValidator implements Validator {
      * Sets if nulls (and only nulls) are to be allowed.
      * 
      * @param onlyNullAllowed
-     *                If true, only nulls are allowed. If false only non-nulls
-     *                are allowed. Do we allow nulls?
+     *            If true, only nulls are allowed. If false only non-nulls are
+     *            allowed. Do we allow nulls?
      */
     public void setNullAllowed(boolean onlyNullAllowed) {
         this.onlyNullAllowed = onlyNullAllowed;
@@ -93,7 +92,7 @@ public class NullValidator implements Validator {
      * Sets the error message to be displayed on invalid value.
      * 
      * @param errorMessage
-     *                the Error Message to set.
+     *            the Error Message to set.
      */
     public void setErrorMessage(String errorMessage) {
         this.errorMessage = errorMessage;
index 05fc6b610cf5cc29f9189a40237a7c6eeae88ea2..df702cfea4ee290c8a2470276bbdb04456b8cc86 100644 (file)
@@ -29,8 +29,7 @@ public class StringLengthValidator implements Validator {
      * Creates a new StringLengthValidator with a given error message.
      * 
      * @param errorMessage
-     *                the message to display in case the value does not
-     *                validate.
+     *            the message to display in case the value does not validate.
      */
     public StringLengthValidator(String errorMessage) {
         setErrorMessage(errorMessage);
@@ -41,14 +40,13 @@ public class StringLengthValidator implements Validator {
      * permissable lengths and null-string allowance.
      * 
      * @param errorMessage
-     *                the message to display in case the value does not
-     *                validate.
+     *            the message to display in case the value does not validate.
      * @param minLength
-     *                the minimum permissable length of the string.
+     *            the minimum permissable length of the string.
      * @param maxLength
-     *                the maximum permissable length of the string.
+     *            the maximum permissable length of the string.
      * @param allowNull
-     *                Are null strings permissable?
+     *            Are null strings permissable?
      */
     public StringLengthValidator(String errorMessage, int minLength,
             int maxLength, boolean allowNull) {
@@ -62,9 +60,9 @@ public class StringLengthValidator implements Validator {
      * Validates the value.
      * 
      * @param value
-     *                the value to validate.
+     *            the value to validate.
      * @throws Validator.InvalidValueException
-     *                 if the value was invalid.
+     *             if the value was invalid.
      */
     public void validate(Object value) throws Validator.InvalidValueException {
         if (value == null) {
@@ -93,7 +91,7 @@ public class StringLengthValidator implements Validator {
      * Checks if the given value is valid.
      * 
      * @param value
-     *                the value to validate.
+     *            the value to validate.
      * @return <code>true</code> for valid value, otherwise <code>false</code>.
      */
     public boolean isValid(Object value) {
@@ -151,7 +149,7 @@ public class StringLengthValidator implements Validator {
      * Sets the maximum permissable length of the string.
      * 
      * @param maxLength
-     *                the length to set.
+     *            the length to set.
      */
     public void setMaxLength(int maxLength) {
         if (maxLength < -1) {
@@ -164,7 +162,7 @@ public class StringLengthValidator implements Validator {
      * Sets the minimum permissable length.
      * 
      * @param minLength
-     *                the length to set.
+     *            the length to set.
      */
     public void setMinLength(int minLength) {
         if (minLength < -1) {
@@ -186,7 +184,7 @@ public class StringLengthValidator implements Validator {
      * Sets the message to be displayer in case the value does not validate.
      * 
      * @param errorMessage
-     *                the Error Message to set.
+     *            the Error Message to set.
      */
     public void setErrorMessage(String errorMessage) {
         this.errorMessage = errorMessage;
index 561b8fd78010129dd26997c54386cafb0c4e71c6..8d64945e72b07eb979a7e17baa475180c4910050 100644 (file)
@@ -104,7 +104,7 @@ public class Calc extends com.itmill.toolkit.Application implements
      * </p>
      * 
      * @param event
-     *                the button click event specifying which button was pressed
+     *            the button click event specifying which button was pressed
      */
     public void buttonClick(Button.ClickEvent event) {
 
index 01e42609c2e05fb94cc26441a7be644cb855a74c..7cf86f4c11af92034cd83ddef594bf009769ea05 100644 (file)
@@ -135,9 +135,9 @@ public class LayoutDemo extends com.itmill.toolkit.Application {
      * Add multiple demo component to given layout.
      * 
      * @param layout
-     *                where components are added
+     *            where components are added
      * @param numberOfComponents
-     *                to add
+     *            to add
      */
     private void fillLayout(Layout layout, int numberOfComponents) {
         for (int i = 1; i <= numberOfComponents; i++) {
index c378375cfce3745987774ddb8bfe94f2429216d0..ef7a8ca5a9af63efbed96cb30a4b83d5d64fd344 100644 (file)
@@ -20,9 +20,9 @@ import com.itmill.toolkit.ui.Window;
  * Containers. QueryContainer is used to bind SQL table rows into Toolkit UI
  * components. Table has few example actions added. Also embedding XHTML through
  * Label components is used. Demonstrates: how to create
- * <code>com.itmill.toolkit.data.Container</code> and set it as datasource to
- * UI components <code>com.itmill.toolkit.ui.Component.Tree</code>, how to
- * receive ExpandEvent and implement
+ * <code>com.itmill.toolkit.data.Container</code> and set it as datasource to UI
+ * components <code>com.itmill.toolkit.ui.Component.Tree</code>, how to receive
+ * ExpandEvent and implement
  * <code>com.itmill.toolkit.ui.Tree.ExpandListener</code>, how to use
  * <code>com.itmill.toolkit.event.Action</code>.
  * 
index 7fa1f3a1f4f8c0636bfb4f3972cfdba1e5171297..25eeee64bc490bf16e4949ea718aad9750a2c2d3 100644 (file)
@@ -17,9 +17,8 @@ import com.itmill.toolkit.ui.Tree.ExpandEvent;
 /**
  * Browsable file explorer using Toolkit Tree component. Demonstrates: how to
  * add items hierarchially into
- * <code>com.itmill.toolkit.ui.Component.Tree</code>, how to receive
- * ExpandEvent and implement
- * <code>com.itmill.toolkit.ui.Tree.ExpandListener</code>.
+ * <code>com.itmill.toolkit.ui.Component.Tree</code>, how to receive ExpandEvent
+ * and implement <code>com.itmill.toolkit.ui.Tree.ExpandListener</code>.
  * 
  * @since 4.0.0
  * 
@@ -73,10 +72,9 @@ public class TreeFilesystem extends com.itmill.toolkit.Application implements
      * parent and children properties are updated.
      * 
      * @param file
-     *                path which contents are added to tree
+     *            path which contents are added to tree
      * @param parent
-     *                for added nodes, if null then new nodes are added to root
-     *                node
+     *            for added nodes, if null then new nodes are added to root node
      */
     private void populateNode(String file, Object parent) {
         final File subdir = new File(file);
index 4367e09cf2629deb470afa7c27489d335adefc75..8b4f06ca2da5edec959bd308fca9b33e1f8e86e2 100644 (file)
@@ -70,7 +70,7 @@ public class WindowedDemos extends com.itmill.toolkit.Application {
      * the demo has not been shown already, re-uses old window otherwise.
      * 
      * @param demoName
-     *                the name of the demo to be shown
+     *            the name of the demo to be shown
      */
     private void show(String demoName) {
         Window w = (Window) windows.get(demoName);
index 82e601e42c19fa8f609052d6c20f33f6d0fe57bc..67334a74cf926d16e00b0e51796d04601e8a1fc7 100644 (file)
@@ -1,15 +1,14 @@
 package com.itmill.toolkit.demo.featurebrowser;
 
 import com.itmill.toolkit.ui.Accordion;
-import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CustomComponent;
 import com.itmill.toolkit.ui.Label;
 import com.itmill.toolkit.ui.OrderedLayout;
 import com.itmill.toolkit.ui.TextField;
 
 /**
- * Accordion is a derivative of TabSheet, a vertical tabbed layout
- * that places the tab contents between the vertical tabs. 
+ * Accordion is a derivative of TabSheet, a vertical tabbed layout that places
+ * the tab contents between the vertical tabs.
  */
 public class AccordionExample extends CustomComponent {
     public AccordionExample() {
@@ -18,19 +17,20 @@ public class AccordionExample extends CustomComponent {
         setCompositionRoot(accordion);
 
         // Add a few tabs to the accordion.
-        for (int i=0; i<5; i++) {
+        for (int i = 0; i < 5; i++) {
             // Create a root component for a accordion tab
             OrderedLayout layout = new OrderedLayout();
             accordion.addComponent(layout);
-            
+
             // The accordion tab label is taken from the caption of the root
             // component. Notice that layouts can have a caption too.
-            layout.setCaption("Tab "+(i+1));
+            layout.setCaption("Tab " + (i + 1));
 
             // Add some components in each accordion tab
-            Label label = new Label("These are the contents of Tab "+(i+1)+".");
+            Label label = new Label("These are the contents of Tab " + (i + 1)
+                    + ".");
             layout.addComponent(label);
-            
+
             TextField textfield = new TextField("Some text field");
             layout.addComponent(textfield);
         }
index 8f1d8edc94697f83aea2db3b92a164d5064bb746..1b571caafa6717c3804dafcef3061dab723dca20 100644 (file)
@@ -164,11 +164,12 @@ public class FeatureBrowser extends com.itmill.toolkit.Application implements
         tree.addListener(this);
         tree.setImmediate(true);
         tree.expandItemsRecursively(rootId);
-        for (Iterator i=container.getItemIds().iterator(); i.hasNext();) {
-               Object id = i.next();
-               if (container.getChildren(id)==null) tree.setChildrenAllowed(id, false);
+        for (Iterator i = container.getItemIds().iterator(); i.hasNext();) {
+            Object id = i.next();
+            if (container.getChildren(id) == null)
+                tree.setChildrenAllowed(id, false);
         }
-        
+
         split.addComponent(tree);
 
         final SplitPanel split2 = new SplitPanel();
@@ -308,7 +309,8 @@ public class FeatureBrowser extends com.itmill.toolkit.Application implements
     public void valueChange(ValueChangeEvent event) {
         if (event.getProperty() == tree) {
             final Object id = tree.getValue();
-            if (id == null) return; 
+            if (id == null)
+                return;
             final Item item = tree.getItem(id);
             //
             String newSection;
index 465e11f05d80d5e41a136126ef83b1d4896a696a..cc8465b43d98d29a9787da38bd3d3f596a725bfc 100644 (file)
@@ -2,16 +2,11 @@ package com.itmill.toolkit.demo.featurebrowser;
 
 import java.util.Vector;
 
-import org.apache.commons.digester.SetRootRule;
-
 import com.itmill.toolkit.data.Container;
 import com.itmill.toolkit.data.Item;
 import com.itmill.toolkit.data.Property;
 import com.itmill.toolkit.data.Validator;
-import com.itmill.toolkit.data.Item.PropertySetChangeEvent;
-import com.itmill.toolkit.data.Item.PropertySetChangeListener;
 import com.itmill.toolkit.data.util.BeanItem;
-import com.itmill.toolkit.data.util.ObjectProperty;
 import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.Component;
 import com.itmill.toolkit.ui.CustomComponent;
@@ -19,12 +14,9 @@ import com.itmill.toolkit.ui.ExpandLayout;
 import com.itmill.toolkit.ui.Field;
 import com.itmill.toolkit.ui.FieldFactory;
 import com.itmill.toolkit.ui.Form;
-import com.itmill.toolkit.ui.FormLayout;
 import com.itmill.toolkit.ui.Label;
 import com.itmill.toolkit.ui.OrderedLayout;
-import com.itmill.toolkit.ui.Panel;
 import com.itmill.toolkit.ui.Select;
-import com.itmill.toolkit.ui.Table;
 import com.itmill.toolkit.ui.TextField;
 import com.itmill.toolkit.ui.Button.ClickEvent;
 
@@ -40,9 +32,9 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 public class FormExample extends CustomComponent {
     /** Contact information data model. */
     public class Contact {
-        String name       = "";
-        String address    = "";
-        int    postalCode = 0;
+        String name = "";
+        String address = "";
+        int postalCode = 0;
         String city;
     }
 
@@ -114,10 +106,10 @@ public class FormExample extends CustomComponent {
 
             if (pid.equals("name"))
                 return new TextField("Name");
-            
+
             if (pid.equals("address"))
                 return new TextField("Street Address");
-            
+
             if (pid.equals("postalCode")) {
                 TextField field = new TextField("Postal Code");
                 field.setColumns(5);
@@ -131,7 +123,8 @@ public class FormExample extends CustomComponent {
                         return ((String) value).matches("[0-9]{5}");
                     }
 
-                    public void validate(Object value) throws InvalidValueException {
+                    public void validate(Object value)
+                            throws InvalidValueException {
                         if (!isValid(value)) {
                             throw new InvalidValueException(
                                     "Postal code must be a number 10000-99999.");
@@ -141,7 +134,7 @@ public class FormExample extends CustomComponent {
                 field.addValidator(postalCodeValidator);
                 return field;
             }
-            
+
             if (pid.equals("city")) {
                 Select select = new Select("City");
                 final String cities[] = new String[] { "Amsterdam", "Berlin",
@@ -171,22 +164,23 @@ public class FormExample extends CustomComponent {
      **/
     public class ContactDisplay extends CustomComponent {
         ContactBean contact;
-        Label       name;
-        Label       address;
-        Label       postalCode;
-        Label       city;
+        Label name;
+        Label address;
+        Label postalCode;
+        Label city;
 
-        public ContactDisplay (ContactBean contact) {
+        public ContactDisplay(ContactBean contact) {
             this.contact = contact;
-            
+
             // Use a Form merely as a layout component. The CSS will add
             // a border to the form.
             Form layout = new Form();
             setCompositionRoot(layout);
             layout.setCaption("Data Model State");
-            layout.setDescription("Below is the state of the actual stored data. "+
-                    "It is updated only when the form is committed successfully. "+
-                    "Discarding the form input reverts the form to this state.");
+            layout
+                    .setDescription("Below is the state of the actual stored data. "
+                            + "It is updated only when the form is committed successfully. "
+                            + "Discarding the form input reverts the form to this state.");
             layout.setWidth("400px");
 
             // Manually create read-only components for each of the fields.
@@ -198,7 +192,7 @@ public class FormExample extends CustomComponent {
             postalCode.setCaption("Postal Code:");
             city = new Label(contact.getCity());
             city.setCaption("City:");
-            
+
             layout.getLayout().addComponent(name);
             layout.getLayout().addComponent(address);
             layout.getLayout().addComponent(postalCode);
@@ -219,10 +213,11 @@ public class FormExample extends CustomComponent {
 
     public FormExample() {
         // The root layout of the custom component.
-        OrderedLayout root = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+        OrderedLayout root = new OrderedLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
         root.addStyleName("formroot");
         setCompositionRoot(root);
-        
+
         // Create a form. It will use FormLayout as its layout by default.
         final Form form = new Form();
         root.addComponent(form);
@@ -233,9 +228,10 @@ public class FormExample extends CustomComponent {
         form.setCaption("Contact Information");
 
         // Set description that will appear on top of the form.
-        form.setDescription("Please enter valid name and address. Fields marked with * are required. "+
-                "If you try to commit with invalid values, a form error message is displayed. " +
-                "(Address is required but failing to give it a value does not display an error.)");
+        form
+                .setDescription("Please enter valid name and address. Fields marked with * are required. "
+                        + "If you try to commit with invalid values, a form error message is displayed. "
+                        + "(Address is required but failing to give it a value does not display an error.)");
 
         // Use custom field factory to create the fields in the form.
         form.setFieldFactory(new MyFieldFactory());
@@ -269,23 +265,25 @@ public class FormExample extends CustomComponent {
         // necessary for the validation of the fields to occur immediately when
         // the input focus changes and not just on commit.
         form.setImmediate(true);
-        
+
         // Set buffering so that commit() must be called for the form
         // before input is written to the data. (Form input is not written
         // immediately through to the underlying object.)
         form.setWriteThrough(false);
-        
+
         // If the state of the bound data source changes, the changes are shown
-        // immediately in the form, so there is no buffering. (This is the default.)
+        // immediately in the form, so there is no buffering. (This is the
+        // default.)
         form.setReadThrough(true);
 
         // Have a read-only component to display the actual current state
         // of the bean (POJO).
         final ContactDisplay display = new ContactDisplay(bean);
         root.addComponent(display);
-        
+
         // Add Commit and Discard controls to the form.
-        ExpandLayout footer = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+        ExpandLayout footer = new ExpandLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
 
         // The Commit button calls form.commit().
         Button commit = new Button("Commit", new Button.ClickListener() {
@@ -299,7 +297,7 @@ public class FormExample extends CustomComponent {
         Button discard = new Button("Discard", form, "discard");
         footer.addComponent(commit);
         footer.setComponentAlignment(commit, ExpandLayout.ALIGNMENT_RIGHT,
-                                     ExpandLayout.ALIGNMENT_TOP);
+                ExpandLayout.ALIGNMENT_TOP);
         footer.setHeight("25px"); // Has to be set explicitly for ExpandLayout.
         footer.addComponent(discard);
         form.setFooter(footer);
index 8d9dd3abf7916bdc9acf9d89602fffaefb6f2f4f..90a5eb925c8f58a69d62785504d66fe1bdaa2c59 100644 (file)
@@ -27,12 +27,12 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 import com.itmill.toolkit.ui.Button.ClickListener;
 
 /**
- * This example demonstrates the use of generated columns in a table.
- * Generated columns can be used for formatting values or calculating
- * them from other columns (or properties of the items).
+ * This example demonstrates the use of generated columns in a table. Generated
+ * columns can be used for formatting values or calculating them from other
+ * columns (or properties of the items).
  * 
- * For the data model, we use POJOs bound to a custom Container
- * with BeanItem items.
+ * For the data model, we use POJOs bound to a custom Container with BeanItem
+ * items.
  * 
  * @author magi
  */
@@ -48,8 +48,9 @@ public class GeneratedColumnExample extends CustomComponent {
         public FillUp() {
         }
 
-        public FillUp(int day, int month, int year, double quantity, double total) {
-            date = new GregorianCalendar(year, month-1, day).getTime();
+        public FillUp(int day, int month, int year, double quantity,
+                double total) {
+            date = new GregorianCalendar(year, month - 1, day).getTime();
             this.quantity = quantity;
             this.total = total;
         }
@@ -67,7 +68,8 @@ public class GeneratedColumnExample extends CustomComponent {
             double difference_ms = date.getTime() - other.date.getTime();
             double days = difference_ms / 1000 / 3600 / 24;
             if (days < 0.5)
-                days = 1.0; // Avoid division by zero if two fill-ups on the same day.
+                days = 1.0; // Avoid division by zero if two fill-ups on the
+                            // same day.
             return quantity / days;
         }
 
@@ -111,10 +113,10 @@ public class GeneratedColumnExample extends CustomComponent {
      * Most of the interface methods are implemented with just dummy
      * implementations, as they are not needed in this example.
      */
-    public class MySimpleIndexedContainer implements Container,Indexed {
+    public class MySimpleIndexedContainer implements Container, Indexed {
         Vector items;
         Object itemtemplate;
-        
+
         public MySimpleIndexedContainer(Object itemtemplate) {
             this.itemtemplate = itemtemplate;
             items = new Vector(); // Yeah this is just a test
@@ -160,7 +162,7 @@ public class GeneratedColumnExample extends CustomComponent {
                 int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < items.size()) {
                     Item item = (Item) items.get(pos);
-                    
+
                     // The BeanItem provides the property objects for the items.
                     return item.getItemProperty(propertyId);
                 }
@@ -178,7 +180,7 @@ public class GeneratedColumnExample extends CustomComponent {
 
         public Item getItem(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < items.size())
                     return (Item) items.get(pos);
             }
@@ -254,25 +256,25 @@ public class GeneratedColumnExample extends CustomComponent {
         }
 
         public boolean isLastId(Object itemId) {
-            return ((Integer) itemId).intValue() == (items.size()-1);
+            return ((Integer) itemId).intValue() == (items.size() - 1);
         }
 
         public Object lastItemId() {
-            return new Integer(items.size()-1);
+            return new Integer(items.size() - 1);
         }
 
         public Object nextItemId(Object itemId) {
             int pos = indexOfId(itemId);
-            if (pos >= items.size()-1)
+            if (pos >= items.size() - 1)
                 return null;
-            return getIdByIndex(pos+1);
+            return getIdByIndex(pos + 1);
         }
 
         public Object prevItemId(Object itemId) {
             int pos = indexOfId(itemId);
             if (pos <= 0)
                 return null;
-            return getIdByIndex(pos-1);
+            return getIdByIndex(pos - 1);
         }
     }
 
@@ -282,7 +284,8 @@ public class GeneratedColumnExample extends CustomComponent {
          * Generates the cell containing the Date value. The column is
          * irrelevant in this use case.
          */
-        public Component generateCell(Table source, Object itemId, Object columnId) {
+        public Component generateCell(Table source, Object itemId,
+                Object columnId) {
             Property prop = source.getItem(itemId).getItemProperty(columnId);
             if (prop.getType().equals(Date.class)) {
                 Label label = new Label(String.format("%tF",
@@ -298,24 +301,27 @@ public class GeneratedColumnExample extends CustomComponent {
     /** Formats the value in a column containing Double objects. */
     class ValueColumnGenerator implements Table.ColumnGenerator {
         String format; /* Format string for the Double values. */
-    
+
         /** Creates double value column formatter with the given format string. */
         public ValueColumnGenerator(String format) {
             this.format = format;
         }
-    
+
         /**
          * Generates the cell containing the Double value. The column is
          * irrelevant in this use case.
          */
-        public Component generateCell(Table source, Object itemId, Object columnId) {
+        public Component generateCell(Table source, Object itemId,
+                Object columnId) {
             Property prop = source.getItem(itemId).getItemProperty(columnId);
             if (prop.getType().equals(Double.class)) {
                 Label label = new Label(String.format(format,
                         new Object[] { (Double) prop.getValue() }));
-                
-                // Set styles for the column: one indicating that it's a value and a more
-                // specific one with the column name in it. This assumes that the column
+
+                // Set styles for the column: one indicating that it's a value
+                // and a more
+                // specific one with the column name in it. This assumes that
+                // the column
                 // name is proper for CSS.
                 label.addStyleName("column-type-value");
                 label.addStyleName("column-" + (String) columnId);
@@ -327,7 +333,8 @@ public class GeneratedColumnExample extends CustomComponent {
 
     /** Table column generator for calculating price column. */
     class PriceColumnGenerator implements Table.ColumnGenerator {
-        public Component generateCell(Table source, Object itemId, Object columnId) {
+        public Component generateCell(Table source, Object itemId,
+                Object columnId) {
             // Retrieve the item.
             BeanItem item = (BeanItem) source.getItem(itemId);
 
@@ -354,7 +361,8 @@ public class GeneratedColumnExample extends CustomComponent {
         /**
          * Generates a cell containing value calculated from the item.
          */
-        public Component generateCell(Table source, Object itemId, Object columnId) {
+        public Component generateCell(Table source, Object itemId,
+                Object columnId) {
             Indexed indexedSource = (Indexed) source.getContainerDataSource();
 
             // Can not calculate consumption for the first item.
@@ -368,8 +376,10 @@ public class GeneratedColumnExample extends CustomComponent {
             Object prevItemId = indexedSource.prevItemId(itemId);
 
             // Retrieve the POJOs.
-            FillUp fillup = (FillUp) ((BeanItem) indexedSource.getItem(itemId)).getBean();
-            FillUp prev   = (FillUp) ((BeanItem) source.getItem(prevItemId)).getBean();
+            FillUp fillup = (FillUp) ((BeanItem) indexedSource.getItem(itemId))
+                    .getBean();
+            FillUp prev = (FillUp) ((BeanItem) source.getItem(prevItemId))
+                    .getBean();
 
             // Do the business logic
             return generateCell(fillup, prev);
@@ -412,10 +422,10 @@ public class GeneratedColumnExample extends CustomComponent {
         public Field createField(Class type, Component uiContext) {
             // Let the BaseFieldFactory create the fields
             Field field = super.createField(type, uiContext);
-            
+
             // ...and just set them as immediate
-            ((AbstractField)field).setImmediate(true);
-            
+            ((AbstractField) field).setImmediate(true);
+
             return field;
         }
     }
@@ -426,76 +436,93 @@ public class GeneratedColumnExample extends CustomComponent {
         // Define table columns. These include also the column for the generated
         // column, because we want to set the column label to something
         // different than the property ID.
-        table.addContainerProperty("date",        Date.class,   null, "Date",                null, null);
-        table.addContainerProperty("quantity",    Double.class, null, "Quantity (l)",        null, null);
-        table.addContainerProperty("price",       Double.class, null, "Price (€/l)",         null, null);
-        table.addContainerProperty("total",       Double.class, null, "Total (€)",           null, null);
-        table.addContainerProperty("consumption", Double.class, null, "Consumption (l/day)", null, null);
-        table.addContainerProperty("dailycost",   Double.class, null, "Daily Cost (€/day)",  null, null);
+        table
+                .addContainerProperty("date", Date.class, null, "Date", null,
+                        null);
+        table.addContainerProperty("quantity", Double.class, null,
+                "Quantity (l)", null, null);
+        table.addContainerProperty("price", Double.class, null, "Price (€/l)",
+                null, null);
+        table.addContainerProperty("total", Double.class, null, "Total (€)",
+                null, null);
+        table.addContainerProperty("consumption", Double.class, null,
+                "Consumption (l/day)", null, null);
+        table.addContainerProperty("dailycost", Double.class, null,
+                "Daily Cost (€/day)", null, null);
 
         // Define the generated columns and their generators.
-        table.addGeneratedColumn("date",        new DateColumnGenerator());
-        table.addGeneratedColumn("quantity",    new ValueColumnGenerator("%.2f l"));
-        table.addGeneratedColumn("price",       new PriceColumnGenerator());
-        table.addGeneratedColumn("total",       new ValueColumnGenerator("%.2f â‚¬"));
-        table.addGeneratedColumn("consumption", new ConsumptionColumnGenerator());
-        table.addGeneratedColumn("dailycost",   new DailyCostColumnGenerator());
+        table.addGeneratedColumn("date", new DateColumnGenerator());
+        table
+                .addGeneratedColumn("quantity", new ValueColumnGenerator(
+                        "%.2f l"));
+        table.addGeneratedColumn("price", new PriceColumnGenerator());
+        table.addGeneratedColumn("total", new ValueColumnGenerator("%.2f â‚¬"));
+        table.addGeneratedColumn("consumption",
+                new ConsumptionColumnGenerator());
+        table.addGeneratedColumn("dailycost", new DailyCostColumnGenerator());
 
         // Create a data source and bind it to the table.
-        MySimpleIndexedContainer data = new MySimpleIndexedContainer(new FillUp());
+        MySimpleIndexedContainer data = new MySimpleIndexedContainer(
+                new FillUp());
         table.setContainerDataSource(data);
 
         // Generated columns are automatically placed after property columns, so
         // we have to set the order of the columns explicitly.
-        table.setVisibleColumns(new Object[] { "date", "quantity", "price", "total", "consumption", "dailycost" });
+        table.setVisibleColumns(new Object[] { "date", "quantity", "price",
+                "total", "consumption", "dailycost" });
 
         // Add some data.
-        data.addItem(new BeanItem(new FillUp(19, 2,  2005, 44.96, 51.21)));
-        data.addItem(new BeanItem(new FillUp(30, 3,  2005, 44.91, 53.67)));
-        data.addItem(new BeanItem(new FillUp(20, 4,  2005, 42.96, 49.06)));
-        data.addItem(new BeanItem(new FillUp(23, 5,  2005, 47.37, 55.28)));
-        data.addItem(new BeanItem(new FillUp(6,  6,  2005, 35.34, 41.52)));
-        data.addItem(new BeanItem(new FillUp(30, 6,  2005, 16.07, 20.00)));
-        data.addItem(new BeanItem(new FillUp(2,  7,  2005, 36.40, 36.19)));
-        data.addItem(new BeanItem(new FillUp(6,  7,  2005, 39.17, 50.90)));
-        data.addItem(new BeanItem(new FillUp(27, 7,  2005, 43.43, 53.03)));
-        data.addItem(new BeanItem(new FillUp(17, 8,  2005, 20,    29.18)));
-        data.addItem(new BeanItem(new FillUp(30, 8,  2005, 46.06, 59.09)));
-        data.addItem(new BeanItem(new FillUp(22, 9,  2005, 46.11, 60.36)));
+        data.addItem(new BeanItem(new FillUp(19, 2, 2005, 44.96, 51.21)));
+        data.addItem(new BeanItem(new FillUp(30, 3, 2005, 44.91, 53.67)));
+        data.addItem(new BeanItem(new FillUp(20, 4, 2005, 42.96, 49.06)));
+        data.addItem(new BeanItem(new FillUp(23, 5, 2005, 47.37, 55.28)));
+        data.addItem(new BeanItem(new FillUp(6, 6, 2005, 35.34, 41.52)));
+        data.addItem(new BeanItem(new FillUp(30, 6, 2005, 16.07, 20.00)));
+        data.addItem(new BeanItem(new FillUp(2, 7, 2005, 36.40, 36.19)));
+        data.addItem(new BeanItem(new FillUp(6, 7, 2005, 39.17, 50.90)));
+        data.addItem(new BeanItem(new FillUp(27, 7, 2005, 43.43, 53.03)));
+        data.addItem(new BeanItem(new FillUp(17, 8, 2005, 20, 29.18)));
+        data.addItem(new BeanItem(new FillUp(30, 8, 2005, 46.06, 59.09)));
+        data.addItem(new BeanItem(new FillUp(22, 9, 2005, 46.11, 60.36)));
         data.addItem(new BeanItem(new FillUp(14, 10, 2005, 41.51, 50.19)));
         data.addItem(new BeanItem(new FillUp(12, 11, 2005, 35.24, 40.00)));
         data.addItem(new BeanItem(new FillUp(28, 11, 2005, 45.26, 53.27)));
 
         // Have a check box that allows the user to make the quantity
         // and total columns editable.
-        final CheckBox editable = new CheckBox("Edit the input values - calculated columns are regenerated");
+        final CheckBox editable = new CheckBox(
+                "Edit the input values - calculated columns are regenerated");
         editable.setImmediate(true);
         editable.addListener(new ClickListener() {
             public void buttonClick(ClickEvent event) {
                 table.setEditable(editable.booleanValue());
-                
+
                 // The columns may not be generated when we want to have them
                 // editable.
                 if (editable.booleanValue()) {
                     table.removeGeneratedColumn("quantity");
                     table.removeGeneratedColumn("total");
                 } else {
-                    // In non-editable mode we want to show the formatted values.
-                    table.addGeneratedColumn("quantity", new ValueColumnGenerator("%.2f l"));
-                    table.addGeneratedColumn("total",    new ValueColumnGenerator("%.2f â‚¬"));
+                    // In non-editable mode we want to show the formatted
+                    // values.
+                    table.addGeneratedColumn("quantity",
+                            new ValueColumnGenerator("%.2f l"));
+                    table.addGeneratedColumn("total", new ValueColumnGenerator(
+                            "%.2f â‚¬"));
                 }
                 // The visible columns are affected by removal and addition of
                 // generated columns so we have to redefine them.
-                table.setVisibleColumns(
-                        new Object[] { "date","quantity","price","total","consumption", "dailycost" });
+                table.setVisibleColumns(new Object[] { "date", "quantity",
+                        "price", "total", "consumption", "dailycost" });
             }
         });
-        
+
         // Use a custom field factory to set the edit fields as immediate.
         // This is used when the table is in editable mode.
         table.setFieldFactory(new ImmediateFieldFactory());
-        
-        // Setting the table itself as immediate has no relevance in this example,
+
+        // Setting the table itself as immediate has no relevance in this
+        // example,
         // because it is relevant only if the table is selectable and we want to
         // get the selection changes immediately.
         table.setImmediate(true);
@@ -503,11 +530,14 @@ public class GeneratedColumnExample extends CustomComponent {
         table.setHeight("100%");
 
         ExpandLayout layout = new ExpandLayout();
-        layout.addComponent(new Label("Table with column generators that format and calculate cell values."));
+        layout
+                .addComponent(new Label(
+                        "Table with column generators that format and calculate cell values."));
         layout.addComponent(table);
         layout.addComponent(editable);
-        layout.addComponent(new Label("Columns displayed in blue are calculated from Quantity and Total. "+
-                                      "Others are simply formatted."));
+        layout.addComponent(new Label(
+                "Columns displayed in blue are calculated from Quantity and Total. "
+                        + "Others are simply formatted."));
         layout.expand(table);
         layout.setSizeFull();
         setCompositionRoot(layout);
index cb87e799b07e89fe9312fe2050e99002f83ce2b5..751f0bbd5b7efa01ea4b47108558d60d54ab6962 100644 (file)
@@ -55,7 +55,7 @@ public class TableExample extends CustomComponent implements Action.Handler,
         root.setSizeFull();\r
         setCompositionRoot(root);\r
         setSizeFull();\r
-        \r
+\r
         // main layout\r
         final OrderedLayout main = new OrderedLayout();\r
         root.addComponent(main);\r
index 8ba9b99474465149443ada11067cebaa784f0d08..215bb88ba032a1adae03716f744f0da237c33a94 100644 (file)
@@ -137,9 +137,9 @@ public class TreeExample extends CustomComponent implements Action.Handler,
      * Helper to add an item with specified caption and (optional) parent.
      * 
      * @param caption
-     *                The item caption
+     *            The item caption
      * @param parent
-     *                The (optional) parent item id
+     *            The (optional) parent item id
      * @return the created item's id
      */
     private Object addCaptionedItem(String caption, Object parent) {
index 4a2be6c878d81934dc0de72e828738edb396d43a..e983c963c47b360e8bfab2e46d8c4503566db33c 100644 (file)
@@ -98,18 +98,21 @@ public class CalendarDemo extends com.itmill.toolkit.Application {
             e.printStackTrace();
         }
         /*
-         * // Calendar will use the first date property as start if you do not //
-         * explicitly specify the property id. Our start -property will be the //
-         * first one, so it's intentionally left out. // Start is the only
-         * mandatory property, but you'll probably want to // specify title as
-         * well.
+         * // Calendar will use the first date property as start if you do not
+         * // explicitly specify the property id. Our start -property will be
+         * the // first one, so it's intentionally left out. // Start is the
+         * only mandatory property, but you'll probably want to // specify title
+         * as well.
          * from.setItemEndPropertyId(SampleCalendarDatabase.PROPERTY_ID_END);
-         * from.setItemTitlePropertyId(SampleCalendarDatabase.PROPERTY_ID_TITLE);
-         * from.setItemNotimePropertyId(SampleCalendarDatabase.PROPERTY_ID_NOTIME);
+         * from
+         * .setItemTitlePropertyId(SampleCalendarDatabase.PROPERTY_ID_TITLE);
+         * from
+         * .setItemNotimePropertyId(SampleCalendarDatabase.PROPERTY_ID_NOTIME);
          * 
          * to.setItemEndPropertyId(SampleCalendarDatabase.PROPERTY_ID_END);
          * to.setItemTitlePropertyId(SampleCalendarDatabase.PROPERTY_ID_TITLE);
-         * to.setItemNotimePropertyId(SampleCalendarDatabase.PROPERTY_ID_NOTIME);
+         * to
+         * .setItemNotimePropertyId(SampleCalendarDatabase.PROPERTY_ID_NOTIME);
          */
     }
 
index 95d86de4a4f5d6f594b2b910bf27e58d8860bf73..2895182c3fd5370d8ab29add79485acd7b67f77c 100644 (file)
@@ -77,7 +77,7 @@ public class CalendarField extends DateField implements Container.Viewer {
      * RESOLUTION_HOUR are supported.\r
      * \r
      * @param resolution\r
-     *                the resolution to set.\r
+     *            the resolution to set.\r
      * @see com.itmill.toolkit.ui.DateField#setResolution(int)\r
      */\r
     public void setResolution(int resolution) {\r
@@ -228,9 +228,9 @@ public class CalendarField extends DateField implements Container.Viewer {
      * Paints the content of this component.\r
      * \r
      * @param target\r
-     *                the Paint Event.\r
+     *            the Paint Event.\r
      * @throws PaintException\r
-     *                 if the paint operation failed.\r
+     *             if the paint operation failed.\r
      */\r
     public void paintContent(PaintTarget target) throws PaintException {\r
         super.paintContent(target);\r
index 6e80e504b623ce5dee068ad533f5de93103679a9..3657a95c28c0917633756f9b2f92752f92a2fd1b 100644 (file)
@@ -32,7 +32,7 @@ public class Action {
      * Constructs a new action with the given caption.
      * 
      * @param caption
-     *                the caption for the new action.
+     *            the caption for the new action.
      */
     public Action(String caption) {
         this.caption = caption;
@@ -42,9 +42,9 @@ public class Action {
      * Constructs a new action with the given caption string and icon.
      * 
      * @param caption
-     *                the caption for the new action.
+     *            the caption for the new action.
      * @param icon
-     *                the icon for the new action.
+     *            the icon for the new action.
      */
     public Action(String caption, Resource icon) {
         this.caption = caption;
@@ -83,11 +83,11 @@ public class Action {
          * Gets the list of actions applicable to this handler.
          * 
          * @param target
-         *                the target handler to list actions for. For item
-         *                containers this is the item id.
+         *            the target handler to list actions for. For item
+         *            containers this is the item id.
          * @param sender
-         *                the party that would be sending the actions. Most of
-         *                this is the action container.
+         *            the party that would be sending the actions. Most of this
+         *            is the action container.
          * @return the list of Action
          */
         public Action[] getActions(Object target, Object sender);
@@ -97,13 +97,13 @@ public class Action {
          * discard the action if it's not suitable.
          * 
          * @param action
-         *                the action to be handled.
+         *            the action to be handled.
          * @param sender
-         *                the sender of the action. This is most often the
-         *                action container.
+         *            the sender of the action. This is most often the action
+         *            container.
          * @param target
-         *                the target of the action. For item containers this is
-         *                the item id.
+         *            the target of the action. For item containers this is the
+         *            item id.
          */
         public void handleAction(Action action, Object sender, Object target);
     }
@@ -126,7 +126,7 @@ public class Action {
          * Registers a new action handler for this container
          * 
          * @param actionHandler
-         *                the new handler to be added.
+         *            the new handler to be added.
          */
         public void addActionHandler(Action.Handler actionHandler);
 
@@ -135,7 +135,7 @@ public class Action {
          * this container.
          * 
          * @param actionHandler
-         *                the handler to be removed.
+         *            the handler to be removed.
          */
         public void removeActionHandler(Action.Handler actionHandler);
     }
@@ -144,7 +144,7 @@ public class Action {
      * Sets the caption.
      * 
      * @param caption
-     *                the caption to set.
+     *            the caption to set.
      */
     public void setCaption(String caption) {
         this.caption = caption;
@@ -154,7 +154,7 @@ public class Action {
      * Sets the icon.
      * 
      * @param icon
-     *                the icon to set.
+     *            the icon to set.
      */
     public void setIcon(Resource icon) {
         this.icon = icon;
index 782aa990ca1c8ad3cbfe9842231c2885964c045e..62d109b5836a7540ba98b0ba4ebb5f9e8e05958f 100644 (file)
@@ -23,8 +23,8 @@ import com.itmill.toolkit.ui.Component.Event;
  * 
  * @since 5.3
  * 
- * TODO extract generic super class/interfaces if we implement some other click
- * events.
+ *        TODO extract generic super class/interfaces if we implement some other
+ *        click events.
  */
 public class ItemClickEvent extends Event {
     public static final int BUTTON_LEFT = MouseEventDetails.BUTTON_LEFT;
@@ -143,7 +143,7 @@ public class ItemClickEvent extends Event {
          * This feature is EXPERIMENTAL
          * 
          * @param listener
-         *                ItemClickListener to be registered
+         *            ItemClickListener to be registered
          */
         public void addListener(ItemClickListener listener);
 
index 689028a342c61f468357bad099b9865e38e62382..42b298b0ce4543f4f4ee4e950e58f9773c881d53 100644 (file)
@@ -423,7 +423,7 @@ public class ListenerMethod implements EventListener {
             } catch (final java.lang.IllegalAccessException e) {
                 // This should never happen
                 throw new java.lang.RuntimeException(
-                        "Internal error - please report",e);
+                        "Internal error - please report", e);
             } catch (final java.lang.reflect.InvocationTargetException e) {
                 // This should never happen
                 throw new MethodException("Invocation of method " + method
index e80cf80fcf107a41db76385d838f87bf2f57a9e6..8b5d9d797fc65cb40be6921420a5118dd1694985 100644 (file)
@@ -13,7 +13,8 @@ import java.lang.reflect.Method;
  * 
  * <p>
  * For more information on the inheritable event mechanism see the
- * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.
+ * {@link com.itmill.toolkit.event com.itmill.toolkit.event package
+ * documentation}.
  * </p>
  * 
  * @author IT Mill Ltd.
@@ -33,19 +34,20 @@ public interface MethodEventSource {
      * 
      * <p>
      * For more information on the inheritable event mechanism see the
-     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.
+     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package
+     * documentation}.
      * </p>
      * 
      * @param eventType
-     *                the type of the listened event. Events of this type or its
-     *                subclasses activate the listener.
+     *            the type of the listened event. Events of this type or its
+     *            subclasses activate the listener.
      * @param object
-     *                the object instance who owns the activation method.
+     *            the object instance who owns the activation method.
      * @param method
-     *                the activation method.
+     *            the activation method.
      * @throws java.lang.IllegalArgumentException
-     *                 unless <code>method</code> has exactly one match in
-     *                 <code>object</code>
+     *             unless <code>method</code> has exactly one match in
+     *             <code>object</code>
      */
     public void addListener(Class eventType, Object object, Method method);
 
@@ -58,47 +60,49 @@ public interface MethodEventSource {
      * </p>
      * 
      * <p>
-     * This version of <code>addListener</code> gets the name of the
-     * activation method as a parameter. The actual method is reflected from
+     * This version of <code>addListener</code> gets the name of the activation
+     * method as a parameter. The actual method is reflected from
      * <code>object</code>, and unless exactly one match is found,
      * <code>java.lang.IllegalArgumentException</code> is thrown.
      * </p>
      * 
      * <p>
      * For more information on the inheritable event mechanism see the
-     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.
+     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package
+     * documentation}.
      * </p>
      * 
      * @param eventType
-     *                the type of the listened event. Events of this type or its
-     *                subclasses activate the listener.
+     *            the type of the listened event. Events of this type or its
+     *            subclasses activate the listener.
      * @param object
-     *                the object instance who owns the activation method.
+     *            the object instance who owns the activation method.
      * @param methodName
-     *                the name of the activation method.
+     *            the name of the activation method.
      * @throws java.lang.IllegalArgumentException
-     *                 unless <code>method</code> has exactly one match in
-     *                 <code>object</code>
+     *             unless <code>method</code> has exactly one match in
+     *             <code>object</code>
      */
     public void addListener(Class eventType, Object object, String methodName);
 
     /**
      * Removes all registered listeners matching the given parameters. Since
      * this method receives the event type and the listener object as
-     * parameters, it will unregister all <code>object</code>'s methods that
-     * are registered to listen to events of type <code>eventType</code>
-     * generated by this component.
+     * parameters, it will unregister all <code>object</code>'s methods that are
+     * registered to listen to events of type <code>eventType</code> generated
+     * by this component.
      * 
      * <p>
      * For more information on the inheritable event mechanism see the
-     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.
+     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package
+     * documentation}.
      * </p>
      * 
      * @param eventType
-     *                the exact event type the <code>object</code> listens to.
+     *            the exact event type the <code>object</code> listens to.
      * @param target
-     *                the target object that has registered to listen to events
-     *                of type <code>eventType</code> with one or more methods.
+     *            the target object that has registered to listen to events of
+     *            type <code>eventType</code> with one or more methods.
      */
     public void removeListener(Class eventType, Object target);
 
@@ -109,17 +113,18 @@ public interface MethodEventSource {
      * 
      * <p>
      * For more information on the inheritable event mechanism see the
-     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.
+     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package
+     * documentation}.
      * </p>
      * 
      * @param eventType
-     *                the exact event type the <code>object</code> listens to.
+     *            the exact event type the <code>object</code> listens to.
      * @param target
-     *                the target object that has registered to listen to events
-     *                of type eventType with one or more methods.
+     *            the target object that has registered to listen to events of
+     *            type eventType with one or more methods.
      * @param method
-     *                the method owned by the target that's registered to listen
-     *                to events of type eventType.
+     *            the method owned by the target that's registered to listen to
+     *            events of type eventType.
      */
     public void removeListener(Class eventType, Object target, Method method);
 
@@ -139,18 +144,18 @@ public interface MethodEventSource {
      * 
      * <p>
      * For more information on the inheritable event mechanism see the
-     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package documentation}.
+     * {@link com.itmill.toolkit.event com.itmill.toolkit.event package
+     * documentation}.
      * </p>
      * 
      * @param eventType
-     *                the exact event type the <code>object</code> listens to.
+     *            the exact event type the <code>object</code> listens to.
      * @param target
-     *                the target object that has registered to listen to events
-     *                of type <code>eventType</code> with one or more methods.
+     *            the target object that has registered to listen to events of
+     *            type <code>eventType</code> with one or more methods.
      * @param methodName
-     *                the name of the method owned by <code>target</code>
-     *                that's registered to listen to events of type
-     *                <code>eventType</code>.
+     *            the name of the method owned by <code>target</code> that's
+     *            registered to listen to events of type <code>eventType</code>.
      */
     public void removeListener(Class eventType, Object target, String methodName);
 }
index 5cce4308bca7b11fb84b1682549e8f101d41fa37..80ccf42449408a557ee52cd89607867541eefed4 100644 (file)
@@ -83,7 +83,7 @@ public class ITMillToolkitDesktopMode {
      * Open a control dialog for embedded server.
      * 
      * @param applicationUrl
-     *                Application URL
+     *            Application URL
      */
     private static void openServerControlDialog(final String applicationUrl) {
 
index fea221416d31dc9a77eff6e9cf63cd069f71efdf..0fc76c13cd74a724985f7608017a508d93e6d290 100644 (file)
@@ -48,7 +48,7 @@ public interface ApplicationContext {
      * Adds transaction listener to this context.
      * 
      * @param listener
-     *                the listener to be added.
+     *            the listener to be added.
      * @see TransactionListener
      */
     public void addTransactionListener(TransactionListener listener);
@@ -57,7 +57,7 @@ public interface ApplicationContext {
      * Removes transaction listener from this context.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      * @see TransactionListener
      */
     public void removeTransactionListener(TransactionListener listener);
@@ -74,9 +74,9 @@ public interface ApplicationContext {
          * Invoked at the beginning of every transaction.
          * 
          * @param application
-         *                the Application object.
+         *            the Application object.
          * @param transactionData
-         *                the Data identifying the transaction.
+         *            the Data identifying the transaction.
          */
         public void transactionStart(Application application,
                 Object transactionData);
@@ -85,9 +85,9 @@ public interface ApplicationContext {
          * Invoked at the end of every transaction.
          * 
          * @param applcation
-         *                the Application object.
+         *            the Application object.
          * @param transactionData
-         *                the Data identifying the transaction.
+         *            the Data identifying the transaction.
          */
         public void transactionEnd(Application application,
                 Object transactionData);
index 277e4327497336d16c3bfce67e6237bcba22c595..7c57fece6f3083eaa6bf395484253a0217b4d5c6 100644 (file)
@@ -224,7 +224,7 @@ public class FileTypeResolver {
      * only on the file name extension.
      * 
      * @param fileName
-     *                the name of the file whose mime-type is requested.
+     *            the name of the file whose mime-type is requested.
      * @return mime-type <code>String</code> for the given filename
      */
     public static String getMIMEType(String fileName) {
@@ -261,7 +261,7 @@ public class FileTypeResolver {
      * not found the default icon is returned.
      * 
      * @param fileName
-     *                the name of the file whose icon is requested.
+     *            the name of the file whose icon is requested.
      * @return the icon corresponding to the given file
      */
     public static Resource getIcon(String fileName) {
@@ -284,7 +284,7 @@ public class FileTypeResolver {
      * icon is returned.
      * 
      * @param file
-     *                the file whose icon is requested.
+     *            the file whose icon is requested.
      * @return the icon corresponding to the given file
      */
     public static Resource getIcon(File file) {
@@ -305,7 +305,7 @@ public class FileTypeResolver {
      * resolved by the filename extension only.
      * 
      * @param file
-     *                the file whose mime-type is requested.
+     *            the file whose mime-type is requested.
      * @return the files mime-type <code>String</code>
      */
     public static String getMIMEType(File file) {
@@ -334,10 +334,10 @@ public class FileTypeResolver {
      * extension is already in the internal mapping it is overwritten.
      * 
      * @param extension
-     *                the filename extension to be associated with
-     *                <code>MIMEType</code>.
+     *            the filename extension to be associated with
+     *            <code>MIMEType</code>.
      * @param MIMEType
-     *                the new mime-type for <code>extension</code>.
+     *            the new mime-type for <code>extension</code>.
      */
     public static void addExtension(String extension, String MIMEType) {
         extToMIMEMap.put(extension, MIMEType);
@@ -348,9 +348,9 @@ public class FileTypeResolver {
      * corresponding icon, it is replaced with the new icon.
      * 
      * @param MIMEType
-     *                the mime-type whose icon is to be changed.
+     *            the mime-type whose icon is to be changed.
      * @param icon
-     *                the new icon to be associated with <code>MIMEType</code>.
+     *            the new icon to be associated with <code>MIMEType</code>.
      */
     public static void addIcon(String MIMEType, Resource icon) {
         MIMEToIconMap.put(MIMEType, icon);
index cd8498bc1d91e9bcbba78270d6407dd956ba13a9..60ac7e311ffecb6545fc40a8b097d64d000b903d 100644 (file)
@@ -52,10 +52,9 @@ public class ClassResource implements ApplicationResource {
      * to the location of the application class.
      * 
      * @param resourceName
-     *                the Unique identifier of the resource within the
-     *                application.
+     *            the Unique identifier of the resource within the application.
      * @param application
-     *                the application this resource will be added to.
+     *            the application this resource will be added to.
      */
     public ClassResource(String resourceName, Application application) {
         associatedClass = application.getClass();
@@ -71,12 +70,11 @@ public class ClassResource implements ApplicationResource {
      * Creates a new application resource instance.
      * 
      * @param associatedClass
-     *                the class of the which the resource is associated.
+     *            the class of the which the resource is associated.
      * @param resourceName
-     *                the Unique identifier of the resource within the
-     *                application.
+     *            the Unique identifier of the resource within the application.
      * @param application
-     *                the application this resource will be added to.
+     *            the application this resource will be added to.
      */
     public ClassResource(Class associatedClass, String resourceName,
             Application application) {
@@ -146,7 +144,7 @@ public class ClassResource implements ApplicationResource {
      * Sets the size of the download buffer used for this resource.
      * 
      * @param bufferSize
-     *                the size of the buffer in bytes.
+     *            the size of the buffer in bytes.
      */
     public void setBufferSize(int bufferSize) {
         this.bufferSize = bufferSize;
@@ -168,7 +166,7 @@ public class ClassResource implements ApplicationResource {
      * </p>
      * 
      * @param cacheTime
-     *                the cache time in milliseconds.
+     *            the cache time in milliseconds.
      * 
      */
     public void setCacheTime(long cacheTime) {
index 1de5938ddc3d6f8ca11edcb53ee1000e880049ae..4ae769e90bbd27d99cda795e91bf8fbd2b71b4e3 100644 (file)
@@ -33,8 +33,8 @@ public class CompositeErrorMessage implements ErrorMessage {
      * Constructor for CompositeErrorMessage.
      * 
      * @param errorMessages
-     *                the Array of error messages that are listed togeter. Nulls
-     *                are ignored, but at least one message is required.
+     *            the Array of error messages that are listed togeter. Nulls are
+     *            ignored, but at least one message is required.
      */
     public CompositeErrorMessage(ErrorMessage[] errorMessages) {
         errors = new ArrayList(errorMessages.length);
@@ -55,8 +55,8 @@ public class CompositeErrorMessage implements ErrorMessage {
      * Constructor for CompositeErrorMessage.
      * 
      * @param errorMessages
-     *                the Collection of error messages that are listed togeter.
-     *                At least one message is required.
+     *            the Collection of error messages that are listed togeter. At
+     *            least one message is required.
      */
     public CompositeErrorMessage(Collection errorMessages) {
         errors = new ArrayList(errorMessages.size());
@@ -86,8 +86,7 @@ public class CompositeErrorMessage implements ErrorMessage {
      * field.
      * 
      * @param error
-     *                the error message to be added. Duplicate errors are
-     *                ignored.
+     *            the error message to be added. Duplicate errors are ignored.
      */
     private void addErrorMessage(ErrorMessage error) {
         if (error != null && !errors.contains(error)) {
@@ -107,7 +106,7 @@ public class CompositeErrorMessage implements ErrorMessage {
     public Iterator iterator() {
         return errors.iterator();
     }
-    
+
     /**
      * @see com.itmill.toolkit.terminal.Paintable#paint(com.itmill.toolkit.terminal.PaintTarget)
      */
index e8eaef8f5f781ae7dbb51d403ae5bfd695247dde..1703dc2b92858b451bae255074349699a318c379 100644 (file)
@@ -64,7 +64,7 @@ public class DownloadStream {
      * Sets the stream.
      * 
      * @param stream
-     *                The stream to set
+     *            The stream to set
      */
     public void setStream(InputStream stream) {
         this.stream = stream;
@@ -83,7 +83,7 @@ public class DownloadStream {
      * Sets stream content type.
      * 
      * @param contentType
-     *                the contentType to set
+     *            the contentType to set
      */
     public void setContentType(String contentType) {
         this.contentType = contentType;
@@ -102,7 +102,7 @@ public class DownloadStream {
      * Sets the file name.
      * 
      * @param fileName
-     *                the file name to set.
+     *            the file name to set.
      */
     public void setFileName(String fileName) {
         this.fileName = fileName;
@@ -117,9 +117,9 @@ public class DownloadStream {
      * If the parameters by this name exists, the old value is replaced.
      * 
      * @param name
-     *                the Name of the parameter to set.
+     *            the Name of the parameter to set.
      * @param value
-     *                the Value of the parameter to set.
+     *            the Value of the parameter to set.
      */
     public void setParameter(String name, String value) {
         if (params == null) {
@@ -135,7 +135,7 @@ public class DownloadStream {
      * headers.
      * 
      * @param name
-     *                the Name of the parameter to set.
+     *            the Name of the parameter to set.
      * @return Value of the parameter or null if the parameter does not exist.
      */
     public String getParameter(String name) {
@@ -176,7 +176,7 @@ public class DownloadStream {
      * value disbales the caching of this stream.
      * 
      * @param cacheTime
-     *                the cache time in milliseconds.
+     *            the cache time in milliseconds.
      */
     public void setCacheTime(long cacheTime) {
         this.cacheTime = cacheTime;
@@ -195,7 +195,7 @@ public class DownloadStream {
      * Sets the size of the download buffer.
      * 
      * @param bufferSize
-     *                the size of the buffer in bytes.
+     *            the size of the buffer in bytes.
      */
     public void setBufferSize(int bufferSize) {
         this.bufferSize = bufferSize;
index 8c3a256dabc519a6d443d723b6d34756b44d1eef..d3cf40ba6dfedc3b06333bf978257a695708f0f3 100644 (file)
@@ -52,7 +52,7 @@ public interface ErrorMessage extends Paintable {
      * method should be implemented as empty.
      * 
      * @param listener
-     *                the listener to be added.
+     *            the listener to be added.
      * @see com.itmill.toolkit.terminal.Paintable#addListener(Paintable.RepaintRequestListener)
      */
     public void addListener(RepaintRequestListener listener);
@@ -62,7 +62,7 @@ public interface ErrorMessage extends Paintable {
      * method should be implemented as empty.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      * @see com.itmill.toolkit.terminal.Paintable#removeListener(Paintable.RepaintRequestListener)
      */
     public void removeListener(RepaintRequestListener listener);
index 356d3f14a1829ddbf043fec400739bc327365f82..1a210a059e533ae48afd7ebfa9b5fc6abe015b00 100644 (file)
@@ -29,7 +29,7 @@ public class ExternalResource implements Resource {
      * Creates a new download component for downloading directly from given URL.
      * 
      * @param sourceURL
-     *                the source URL.
+     *            the source URL.
      */
     public ExternalResource(URL sourceURL) {
         if (sourceURL == null) {
@@ -43,7 +43,7 @@ public class ExternalResource implements Resource {
      * Creates a new download component for downloading directly from given URL.
      * 
      * @param sourceURL
-     *                the source URL.
+     *            the source URL.
      */
     public ExternalResource(String sourceURL) {
         if (sourceURL == null) {
index eaa7061caa7e524d8e34789cb92e46fd9ddb4f50..571d22ecfb587fd5be26de855ef2050196e9f527 100644 (file)
@@ -12,8 +12,8 @@ import com.itmill.toolkit.Application;
 import com.itmill.toolkit.service.FileTypeResolver;
 
 /**
- * <code>FileResources</code> are files or directories on local filesystem.
- * The files and directories are served through URI:s to the client terminal and
+ * <code>FileResources</code> are files or directories on local filesystem. The
+ * files and directories are served through URI:s to the client terminal and
  * thus must be registered to an URI context before they can be used. The
  * resource is automatically registered to the application when it is created.
  * 
@@ -84,7 +84,7 @@ public class FileResource implements ApplicationResource {
      * Sets the source file.
      * 
      * @param sourceFile
-     *                the source file to set.
+     *            the source file to set.
      */
     public void setSourceFile(File sourceFile) {
         this.sourceFile = sourceFile;
@@ -130,7 +130,7 @@ public class FileResource implements ApplicationResource {
      * value disbales the caching of this stream.
      * 
      * @param cacheTime
-     *                the cache time in milliseconds.
+     *            the cache time in milliseconds.
      */
     public void setCacheTime(long cacheTime) {
         this.cacheTime = cacheTime;
@@ -145,7 +145,7 @@ public class FileResource implements ApplicationResource {
      * Sets the size of the download buffer used for this resource.
      * 
      * @param bufferSize
-     *                the size of the buffer in bytes.
+     *            the size of the buffer in bytes.
      */
     public void setBufferSize(int bufferSize) {
         this.bufferSize = bufferSize;
index f516ac9103a67f03b78dc64fe1da73ac4445e6a9..de6fbd27ba4026c57ec779ec63da4bf0bc89cc96 100644 (file)
@@ -7,8 +7,8 @@ package com.itmill.toolkit.terminal;
 import java.util.Hashtable;
 
 /**
- * <code>KeyMapper</code> is the simple two-way map for generating textual
- * keys for objects and retrieving the objects later with the key.
+ * <code>KeyMapper</code> is the simple two-way map for generating textual keys
+ * for objects and retrieving the objects later with the key.
  * 
  * @author IT Mill Ltd.
  * @version
@@ -27,7 +27,7 @@ public class KeyMapper {
      * Gets key for an object.
      * 
      * @param o
-     *                the object.
+     *            the object.
      */
     public String key(Object o) {
 
@@ -53,7 +53,7 @@ public class KeyMapper {
      * Retrieves object with the key.
      * 
      * @param key
-     *                the name with the desired value.
+     *            the name with the desired value.
      * @return the object with the key.
      */
     public Object get(String key) {
@@ -65,7 +65,7 @@ public class KeyMapper {
      * Removes object from the mapper.
      * 
      * @param removeobj
-     *                the object to be removed.
+     *            the object to be removed.
      */
     public void remove(Object removeobj) {
         final String key = (String) objectKeyMap.get(removeobj);
index 1c0287e026afe190f2dae75f46b474c4cd11ffa8..c421edf94ab54f1a0ea5fdfb55f5ffa97c752b51 100644 (file)
@@ -22,22 +22,21 @@ public class PaintException extends IOException {
     private static final long serialVersionUID = 3762535607221891897L;
 
     /**
-     * Constructs an instance of <code>PaintExeception</code> with the
-     * specified detail message.
+     * Constructs an instance of <code>PaintExeception</code> with the specified
+     * detail message.
      * 
      * @param msg
-     *                the detail message.
+     *            the detail message.
      */
     public PaintException(String msg) {
         super(msg);
     }
 
     /**
-     * Constructs an instance of <code>PaintExeception</code> from
-     * IOException.
+     * Constructs an instance of <code>PaintExeception</code> from IOException.
      * 
      * @param exception
-     *                the original exception.
+     *            the original exception.
      */
     public PaintException(IOException exception) {
         super(exception.getMessage());
index a62407473df8b9c02b96f4cea1150989f177b729..43f134bfd84f026473c8e624308bb0891521b621 100644 (file)
@@ -21,11 +21,11 @@ public interface PaintTarget {
      * surrounded by XML start and end-tags.
      * 
      * @param sectionTagName
-     *                the name of the tag.
+     *            the name of the tag.
      * @param sectionData
-     *                the scetion data.
+     *            the scetion data.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addSection(String sectionTagName, String sectionData)
             throws PaintException;
@@ -42,13 +42,13 @@ public interface PaintTarget {
      * </p>
      * 
      * @param paintable
-     *                the paintable to start.
+     *            the paintable to start.
      * @param tag
-     *                the name of the start tag.
-     * @return <code>true</code> if paintable found in cache,
-     *         <code>false</code> otherwise.
+     *            the name of the start tag.
+     * @return <code>true</code> if paintable found in cache, <code>false</code>
+     *         otherwise.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      * @see #startTag(String)
      * @since 3.1
      */
@@ -64,7 +64,7 @@ public interface PaintTarget {
      * in future.
      * 
      * @param paintable
-     *                the Paintable to reference
+     *            the Paintable to reference
      * @param referenceName
      * @throws PaintException
      * 
@@ -82,9 +82,9 @@ public interface PaintTarget {
      * </pre>
      * 
      * @param tagName
-     *                the name of the start tag.
+     *            the name of the start tag.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void startTag(String tagName) throws PaintException;
 
@@ -95,9 +95,9 @@ public interface PaintTarget {
      * PaintException is raised.
      * 
      * @param tagName
-     *                the name of the end tag.
+     *            the name of the end tag.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void endTag(String tagName) throws PaintException;
 
@@ -106,12 +106,12 @@ public interface PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, boolean value) throws PaintException;
 
@@ -120,12 +120,12 @@ public interface PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, int value) throws PaintException;
 
@@ -134,12 +134,12 @@ public interface PaintTarget {
      * any content is written.
      * 
      * @param name
-     *                the Attribute name
+     *            the Attribute name
      * @param value
-     *                the Attribute value
+     *            the Attribute value
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, Resource value) throws PaintException;
 
@@ -148,12 +148,12 @@ public interface PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, long value) throws PaintException;
 
@@ -162,12 +162,12 @@ public interface PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, float value) throws PaintException;
 
@@ -176,12 +176,12 @@ public interface PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, double value) throws PaintException;
 
@@ -190,12 +190,12 @@ public interface PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Boolean attribute name.
+     *            the Boolean attribute name.
      * @param value
-     *                the Boolean attribute value.
+     *            the Boolean attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, String value) throws PaintException;
 
@@ -203,14 +203,14 @@ public interface PaintTarget {
      * Adds a string type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, String value)
             throws PaintException;
@@ -219,14 +219,14 @@ public interface PaintTarget {
      * Adds a int type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, int value)
             throws PaintException;
@@ -235,14 +235,14 @@ public interface PaintTarget {
      * Adds a long type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, long value)
             throws PaintException;
@@ -251,14 +251,14 @@ public interface PaintTarget {
      * Adds a float type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, float value)
             throws PaintException;
@@ -267,14 +267,14 @@ public interface PaintTarget {
      * Adds a double type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, double value)
             throws PaintException;
@@ -283,14 +283,14 @@ public interface PaintTarget {
      * Adds a boolean type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, boolean value)
             throws PaintException;
@@ -299,14 +299,14 @@ public interface PaintTarget {
      * Adds a string array type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, String[] value)
             throws PaintException;
@@ -315,12 +315,12 @@ public interface PaintTarget {
      * Adds a upload stream type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addUploadStreamVariable(VariableOwner owner, String name)
             throws PaintException;
@@ -333,13 +333,13 @@ public interface PaintTarget {
      * </p>
      * 
      * @param sectionTagName
-     *                the tag name.
+     *            the tag name.
      * @param sectionData
-     *                the section data to be printed.
+     *            the section data to be printed.
      * @param namespace
-     *                the namespace.
+     *            the namespace.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addXMLSection(String sectionTagName, String sectionData,
             String namespace) throws PaintException;
@@ -349,9 +349,9 @@ public interface PaintTarget {
      * UIDL.dtd
      * 
      * @param uidl
-     *                the UIDL to be added.
+     *            the UIDL to be added.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addUIDL(java.lang.String uidl) throws PaintException;
 
@@ -359,9 +359,9 @@ public interface PaintTarget {
      * Adds text node. All the contents of the text are XML-escaped.
      * 
      * @param text
-     *                the Text to add
+     *            the Text to add
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     void addText(String text) throws PaintException;
 
@@ -369,9 +369,9 @@ public interface PaintTarget {
      * Adds CDATA node to target UIDL-tree.
      * 
      * @param text
-     *                the Character data to add
+     *            the Character data to add
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      * @since 3.1
      */
     void addCharacterData(String text) throws PaintException;
index 687199cea954adffc4fab8531f839b339f21d150..61dbc27fc5f9b1b1be2f3b517a6c831e86aa3657 100644 (file)
@@ -31,10 +31,10 @@ public interface Paintable extends java.util.EventListener {
      * </p>
      * 
      * @param target
-     *                the target UIDL stream where the component should paint
-     *                itself to.
+     *            the target UIDL stream where the component should paint itself
+     *            to.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paint(PaintTarget target) throws PaintException;
 
@@ -49,7 +49,7 @@ public interface Paintable extends java.util.EventListener {
      * instance is on programmers responsibility.
      * 
      * @param id
-     *                A short (< 20 chars) alphanumeric id
+     *            A short (< 20 chars) alphanumeric id
      */
     public void setDebugId(String id);
 
@@ -76,7 +76,7 @@ public interface Paintable extends java.util.EventListener {
          * Constructs a new event.
          * 
          * @param source
-         *                the paintable needing repaint.
+         *            the paintable needing repaint.
          */
         public RepaintRequestEvent(Paintable source) {
             super(source);
@@ -85,8 +85,8 @@ public interface Paintable extends java.util.EventListener {
         /**
          * Gets the paintable needing repainting.
          * 
-         * @return Paintable for which the <code>paint</code> method will
-         *         return dissimilar UIDL from the previous call of the method.
+         * @return Paintable for which the <code>paint</code> method will return
+         *         dissimilar UIDL from the previous call of the method.
          */
         public Paintable getPaintable() {
             return (Paintable) getSource();
@@ -96,8 +96,8 @@ public interface Paintable extends java.util.EventListener {
     /**
      * Listens repaint requests. The <code>repaintRequested</code> method is
      * called when the paintable needs to be repainted. This is typically done
-     * when the <code>paint</code> method would return dissimilar UIDL from
-     * the previous call of the method.
+     * when the <code>paint</code> method would return dissimilar UIDL from the
+     * previous call of the method.
      */
     public interface RepaintRequestListener {
 
@@ -105,8 +105,7 @@ public interface Paintable extends java.util.EventListener {
          * Receives repaint request events.
          * 
          * @param event
-         *                the repaint request event specifying the paintable
-         *                source.
+         *            the repaint request event specifying the paintable source.
          */
         public void repaintRequested(RepaintRequestEvent event);
     }
@@ -117,7 +116,7 @@ public interface Paintable extends java.util.EventListener {
      * right after adding itself as listener.
      * 
      * @param listener
-     *                the listener to be added.
+     *            the listener to be added.
      */
     public void addListener(RepaintRequestListener listener);
 
@@ -125,7 +124,7 @@ public interface Paintable extends java.util.EventListener {
      * Removes repaint request listener.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      */
     public void removeListener(RepaintRequestListener listener);
 
index fb8c86ec72bb0079ff7633f8b2ce1c8fec2c0469..640292bc97ed211d215829a3f53d8f294ba18a25 100644 (file)
@@ -30,12 +30,11 @@ public interface ParameterHandler {
      * <p>
      * Handles the given parameters. The parameters are given as inmodifieable
      * name to value map. All parameters names are of type:
-     * {@link java.lang.String}. All the parameter values are arrays of
-     * strings.
+     * {@link java.lang.String}. All the parameter values are arrays of strings.
      * </p>
      * 
      * @param parameters
-     *                the Inmodifiable name to value[] mapping.
+     *            the Inmodifiable name to value[] mapping.
      * 
      */
     public void handleParameters(Map parameters);
index e1301d751a82343c656c85787a0b17a3adedcaa7..4b9260c70d055cf3a5dfc0f831667194b6c40bc2 100644 (file)
@@ -38,7 +38,7 @@ public interface Scrollable {
      * </p>
      * 
      * @param pixelsScrolled
-     *                the xOffset.
+     *            the xOffset.
      */
     public void setScrollLeft(int pixelsScrolled);
 
@@ -63,7 +63,7 @@ public interface Scrollable {
      * </p>
      * 
      * @param pixelsScrolled
-     *                the yOffset.
+     *            the yOffset.
      */
     public void setScrollTop(int pixelsScrolled);
 
@@ -89,7 +89,7 @@ public interface Scrollable {
      * </p>
      * 
      * @param isScrollingEnabled
-     *                true if the scrolling is allowed.
+     *            true if the scrolling is allowed.
      */
     public void setScrollable(boolean isScrollingEnabled);
 
index 4d467d77847def32aa51fb1939cd1bae7ffede52..f707b6eb7df803ab11d47f0c989b11d31abfffce 100644 (file)
@@ -103,8 +103,8 @@ public interface Sizeable {
      * (terminal is free to set the size).
      * 
      * @param width
-     *                the width of the object in units specified by widthUnits
-     *                property.
+     *            the width of the object in units specified by widthUnits
+     *            property.
      */
     public void setWidth(int width);
 
@@ -121,8 +121,8 @@ public interface Sizeable {
      * (terminal is free to set the size).
      * 
      * @param height
-     *                the height of the object in units specified by heightUnits
-     *                property.
+     *            the height of the object in units specified by heightUnits
+     *            property.
      */
     public void setHeight(int height);
 
@@ -137,7 +137,7 @@ public interface Sizeable {
      * Sets the width property units.
      * 
      * @param units
-     *                the units used in width property.
+     *            the units used in width property.
      */
     public void setWidthUnits(int units);
 
@@ -152,7 +152,7 @@ public interface Sizeable {
      * Sets the height property units.
      * 
      * @param units
-     *                the units used in height property.
+     *            the units used in height property.
      */
     public void setHeightUnits(int units);
 
@@ -167,7 +167,7 @@ public interface Sizeable {
      * spesification</a> for more details.
      * 
      * @param height
-     *                in CSS style string representation
+     *            in CSS style string representation
      */
     public void setHeight(String height);
 
@@ -182,7 +182,7 @@ public interface Sizeable {
      * spesification</a> for more details.
      * 
      * @param width
-     *                in CSS style string representation
+     *            in CSS style string representation
      */
     public void setWidth(String width);
 
index 08a39f41cd6bd9160e986785ddc946ba01082a5d..b1ad8f9c1527986046376386e7f6cdb33f9e90d2 100644 (file)
@@ -10,10 +10,10 @@ import com.itmill.toolkit.Application;
 import com.itmill.toolkit.service.FileTypeResolver;
 
 /**
- * <code>StreamResource</code> is a resource provided to the client directly
- * by the application. The strean resource is fetched from URI that is most
- * often in the context of the application or window. The resource is
- * automatically registered to window in creation.
+ * <code>StreamResource</code> is a resource provided to the client directly by
+ * the application. The strean resource is fetched from URI that is most often
+ * in the context of the application or window. The resource is automatically
+ * registered to window in creation.
  * 
  * @author IT Mill Ltd.
  * @version
@@ -56,11 +56,11 @@ public class StreamResource implements ApplicationResource {
      * Creates a new stream resource for downloading from stream.
      * 
      * @param streamSource
-     *                the source Stream.
+     *            the source Stream.
      * @param filename
-     *                the name of the file.
+     *            the name of the file.
      * @param application
-     *                the Application object.
+     *            the Application object.
      */
     public StreamResource(StreamSource streamSource, String filename,
             Application application) {
@@ -88,15 +88,15 @@ public class StreamResource implements ApplicationResource {
      * Sets the mime type of the resource.
      * 
      * @param MIMEType
-     *                the MIME type to be set.
+     *            the MIME type to be set.
      */
     public void setMIMEType(String MIMEType) {
         this.MIMEType = MIMEType;
     }
 
     /**
-     * Returns the source for this <code>StreamResource</code>. StreamSource
-     * is queried when the resource is about to be streamed to the client.
+     * Returns the source for this <code>StreamResource</code>. StreamSource is
+     * queried when the resource is about to be streamed to the client.
      * 
      * @return Source of the StreamResource.
      */
@@ -110,7 +110,7 @@ public class StreamResource implements ApplicationResource {
      * streamed to the client.
      * 
      * @param streamSource
-     *                the source to set.
+     *            the source to set.
      */
     public void setStreamSource(StreamSource streamSource) {
         this.streamSource = streamSource;
@@ -129,7 +129,7 @@ public class StreamResource implements ApplicationResource {
      * Sets the filename.
      * 
      * @param filename
-     *                the filename to set.
+     *            the filename to set.
      */
     public void setFilename(String filename) {
         this.filename = filename;
@@ -182,7 +182,7 @@ public class StreamResource implements ApplicationResource {
      * Sets the size of the download buffer used for this resource.
      * 
      * @param bufferSize
-     *                the size of the buffer in bytes.
+     *            the size of the buffer in bytes.
      */
     public void setBufferSize(int bufferSize) {
         this.bufferSize = bufferSize;
@@ -204,7 +204,7 @@ public class StreamResource implements ApplicationResource {
      * </p>
      * 
      * @param cacheTime
-     *                the cache time in milliseconds.
+     *            the cache time in milliseconds.
      * 
      */
     public void setCacheTime(long cacheTime) {
index d82aa4d5bcaf995bfbcbf133b53a888281c96be3..019f8c252110fa235a26e01b69a6f39dae56743a 100644 (file)
@@ -10,8 +10,8 @@ import java.io.StringWriter;
 /**
  * <code>SystemError</code> is a runtime exception caused by error in system.
  * The system error can be shown to the user as it implements
- * <code>ErrorMessage</code> interface, but contains technical information
- * such as stack trace and exception.
+ * <code>ErrorMessage</code> interface, but contains technical information such
+ * as stack trace and exception.
  * 
  * @author IT Mill Ltd.
  * @version
@@ -35,7 +35,7 @@ public class SystemError extends RuntimeException implements ErrorMessage {
      * Constructor for SystemError with error message specified.
      * 
      * @param message
-     *                the Textual error description.
+     *            the Textual error description.
      */
     public SystemError(String message) {
         super(message);
@@ -45,9 +45,9 @@ public class SystemError extends RuntimeException implements ErrorMessage {
      * Constructor for SystemError with causing exception and error message.
      * 
      * @param message
-     *                the Textual error description.
+     *            the Textual error description.
      * @param cause
-     *                the throwable causing the system error.
+     *            the throwable causing the system error.
      */
     public SystemError(String message, Throwable cause) {
         super(message);
@@ -58,7 +58,7 @@ public class SystemError extends RuntimeException implements ErrorMessage {
      * Constructor for SystemError with cause.
      * 
      * @param cause
-     *                the throwable causing the system error.
+     *            the throwable causing the system error.
      */
     public SystemError(Throwable cause) {
         this.cause = cause;
index 573130dee43a3d40ba5e4463c592aec102e8010a..e7a61b6457e0d497895562e867f74a3028172ea1 100644 (file)
@@ -56,7 +56,7 @@ public interface Terminal {
          * Invoked when terminal error occurs.
          * 
          * @param event
-         *                the fired event.
+         *            the fired event.
          */
         public void terminalError(Terminal.ErrorEvent event);
     }
index 1b9995dc7c119fc28c67354003f6ae50809a09c5..bdce49a521ae0aa2157d76ac197770e8ccc486ee 100644 (file)
@@ -28,7 +28,7 @@ public class ThemeResource implements Resource {
      * Creates a resource.
      * 
      * @param resourceId
-     *                the Id of the resource.
+     *            the Id of the resource.
      */
     public ThemeResource(String resourceId) {
         if (resourceId == null) {
@@ -49,7 +49,7 @@ public class ThemeResource implements Resource {
      * Tests if the given object equals this Resource.
      * 
      * @param obj
-     *                the object to be tested for equality.
+     *            the object to be tested for equality.
      * @return <code>true</code> if the given object equals this Icon,
      *         <code>false</code> if not.
      * @see java.lang.Object#equals(Object)
index ef1fc76e069efc20a49ba14657371caf541e9c28..fc72c0c2041329aa229fbe8e681733fbbfb57b34 100644 (file)
@@ -27,9 +27,9 @@ public interface URIHandler {
      * stream is necessary, null should be returned instead.
      * 
      * @param context
-     *                the URl.
+     *            the URl.
      * @param relativeUri
-     *                the relative uri.
+     *            the relative uri.
      * @return the download stream object.
      */
     public DownloadStream handleURI(URL context, String relativeUri);
index 182867bef0df94815abc6a27275c8a51f5f31674..1443d812f5effb43f3a4a49f83b09868797198b4 100644 (file)
@@ -50,7 +50,7 @@ public class UserError implements ErrorMessage {
      * Creates a textual error message of level ERROR.
      * 
      * @param textErrorMessage
-     *                the text of the error message.
+     *            the text of the error message.
      */
     public UserError(String textErrorMessage) {
         msg = textErrorMessage;
@@ -60,11 +60,11 @@ public class UserError implements ErrorMessage {
      * Creates a error message with level and content mode.
      * 
      * @param message
-     *                the error message.
+     *            the error message.
      * @param contentMode
-     *                the content Mode.
+     *            the content Mode.
      * @param errorLevel
-     *                the level of error.
+     *            the level of error.
      */
     public UserError(String message, int contentMode, int errorLevel) {
 
index cdb3321ba0d1fedf85d7a983e555f3080fcdfd3b..c97497aedef4d5ea9dc9f7879cc4ec20a1f9c721 100644 (file)
@@ -27,10 +27,10 @@ public interface VariableOwner {
      * changed.
      * 
      * @param source
-     *                the Source of the variable change. This is the origin of
-     *                the event. For example in Web Adapter this is the request.
+     *            the Source of the variable change. This is the origin of the
+     *            event. For example in Web Adapter this is the request.
      * @param variables
-     *                the Mapping from variable names to new variable values.
+     *            the Mapping from variable names to new variable values.
      */
     public void changeVariables(Object source, Map variables);
 
@@ -53,8 +53,8 @@ public interface VariableOwner {
      * </p>
      * 
      * <p>
-     * <strong>Note:</strong> <code>VariableOwner</code> does not include a
-     * set- method for the immediateness property. This is because not all
+     * <strong>Note:</strong> <code>VariableOwner</code> does not include a set-
+     * method for the immediateness property. This is because not all
      * VariableOwners wish to offer the functionality. Such VariableOwners are
      * never in the immediate mode, thus they always return <code>false</code>
      * in {@link #isImmediate()}.
index ef73ff90e5e706a222c9f0a3662cdca9d512e4c2..507b3861266ea57063b0bd055ec7cc41b5f647bf 100755 (executable)
@@ -512,7 +512,7 @@ public class ApplicationConnection {
                 }
 
                 if (html.length() != 0) {
-                    INotification n = new INotification(1000 * 60 * 45); // 45min
+                    INotification n = new INotification(1000 * 60 * 45); //45min
                     n.addEventListener(new NotificationRedirect(url));
                     n.show(html, INotification.CENTERED_TOP, "system");
                 } else {
@@ -572,7 +572,7 @@ public class ApplicationConnection {
      * Returns Paintable element by its id
      * 
      * @param id
-     *                Paintable ID
+     *            Paintable ID
      */
     public Paintable getPaintable(String id) {
         return (Paintable) idToPaintable.get(id);
@@ -716,13 +716,13 @@ public class ApplicationConnection {
      * when needed.
      * 
      * @param component
-     *                Widget to be updated, expected to implement an instance of
-     *                Paintable
+     *            Widget to be updated, expected to implement an instance of
+     *            Paintable
      * @param uidl
-     *                UIDL to be painted
+     *            UIDL to be painted
      * @param manageCaption
-     *                True if you want to delegate caption, icon, description
-     *                and error message management to parent.
+     *            True if you want to delegate caption, icon, description and
+     *            error message management to parent.
      * 
      * @return Returns true iff no further painting is needed by caller
      */
@@ -858,7 +858,7 @@ public class ApplicationConnection {
      * parent.
      * 
      * @param uidl
-     *                UIDL to create Paintable from.
+     *            UIDL to create Paintable from.
      * @return Either existing or new Paintable corresponding to UIDL.
      */
     public Paintable getPaintable(UIDL uidl) {
@@ -898,7 +898,7 @@ public class ApplicationConnection {
      * to browser due URI's in UIDL may contain custom protocols like theme://.
      * 
      * @param toolkitUri
-     *                toolkit URI from uidl
+     *            toolkit URI from uidl
      * @return translated URI ready for browser
      */
     public String translateToolkitUri(String toolkitUri) {
@@ -978,7 +978,7 @@ public class ApplicationConnection {
      * Adds PNG-fix conditionally (only for IE6) to the specified IMG -element.
      * 
      * @param el
-     *                the IMG element to fix
+     *            the IMG element to fix
      */
     public void addPngFix(Element el) {
         BrowserInfo b = BrowserInfo.get();
index d7cca245dc091f0c573889b1b79d4c202a12827a..2d918b81b713a20fedff3d6af363d19f2e653eb3 100644 (file)
@@ -64,6 +64,7 @@ public class CSSRule {
 
     /**
      * Returns a specific property value from this CSS rule.
+     * 
      * @param propertyName
      * @return
      */
index b73ad05f0378d48d2e2986c69a3bdb0f2101fd79..b79fe2c6063e1e079163039252a40f7caa872edf 100644 (file)
@@ -17,9 +17,9 @@ public interface Container extends Paintable {
      * is responsible is for unregistering it.
      * 
      * @param oldComponent
-     *                Child to be replaced
+     *            Child to be replaced
      * @param newComponent
-     *                Child that replaces the oldComponent
+     *            Child that replaces the oldComponent
      */
     void replaceChildComponent(Widget oldComponent, Widget newComponent);
 
@@ -27,7 +27,7 @@ public interface Container extends Paintable {
      * Is a given component child of this layout.
      * 
      * @param component
-     *                Component to test.
+     *            Component to test.
      * @return true iff component is a child of this layout.
      */
     boolean hasChildComponent(Widget component);
@@ -43,9 +43,9 @@ public interface Container extends Paintable {
      * </p>
      * 
      * @param component
-     *                Child component for which service is requested.
+     *            Child component for which service is requested.
      * @param uidl
-     *                UIDL of the child component.
+     *            UIDL of the child component.
      */
     void updateCaption(Paintable component, UIDL uidl);
 
index b4d5499172bc7bdd8f3c4e234c5b627562d1c367..ddf89e95317042401e42db8a1ae4a302f005c354 100644 (file)
@@ -10,7 +10,7 @@ public class StyleConstants {
     public static final String MARGIN_RIGHT = "margin-right";
     public static final String MARGIN_BOTTOM = "margin-bottom";
     public static final String MARGIN_LEFT = "margin-left";
-    
+
     public static final String VERTICAL_SPACING = "vspacing";
     public static final String HORIZONTAL_SPACING = "hspacing";
 
index 0e1249c33f4f807897e7925523f9a42cf42c411b..b3fb7260e3a1e6ca34a8dc21fcc507ca8c4ff07b 100644 (file)
@@ -129,9 +129,9 @@ public class Util {
      * Adds transparent PNG fix to image element; only use for IE6.
      * 
      * @param el
-     *                IMG element
+     *            IMG element
      * @param blankImageUrl
-     *                URL to transparent one-pixel gif
+     *            URL to transparent one-pixel gif
      */
     public native static void addPngFix(Element el, String blankImageUrl)
     /*-{
@@ -154,7 +154,7 @@ public class Util {
      * 
      * @param element
      * @param deep
-     *                clone child tree also
+     *            clone child tree also
      * @return
      */
     public static native Element cloneNode(Element element, boolean deep)
index 8583e34cf4d41362711bba9291ae0fc17396676b..67b4e119a13379b600dc589972ab059a6137badd 100644 (file)
@@ -14,7 +14,7 @@ public interface WidgetSet extends EntryPoint {
      * component must be a {@link Widget} that implements {@link Paintable}.
      * 
      * @param uidl
-     *                UIDL to be painted with returned component.
+     *            UIDL to be painted with returned component.
      * @return New uninitialized and unregistered component that can paint given
      *         UIDL.
      */
@@ -24,9 +24,9 @@ public interface WidgetSet extends EntryPoint {
      * Test if the given component implementation conforms to UIDL.
      * 
      * @param currentWidget
-     *                Current implementation of the component
+     *            Current implementation of the component
      * @param uidl
-     *                UIDL to test against
+     *            UIDL to test against
      * @return true iff createWidget would return a new component of the same
      *         class than currentWidget
      */
index bb11a084ddc33d098c8bc9d445ac58ad5d6dbaf1..ef50c7b950782014e5209af26a6988e3f6ba4d9b 100644 (file)
@@ -14,8 +14,8 @@ import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
 import com.itmill.toolkit.terminal.gwt.client.BrowserInfo;
-import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
+import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 import com.itmill.toolkit.terminal.gwt.client.Util;
index 16276d98b4fe943343cbca5a759c3d667349abe8..2d0c569daa33f4b9173274889f7a3c037efa4f2b 100644 (file)
@@ -12,8 +12,8 @@ import com.google.gwt.user.client.ui.ClickListener;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
 import com.itmill.toolkit.terminal.gwt.client.BrowserInfo;
-import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.ITooltip;
+import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 
 public class IButton extends Button implements Paintable {
index 026ee9d6fc9cefa632935731c274149f237b1b0a..74bad0bfb9f6f8e8daf657129af0da150132cc7d 100644 (file)
@@ -10,8 +10,8 @@ import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.ClickListener;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
-import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.ITooltip;
+import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 
 public class ICheckBox extends com.google.gwt.user.client.ui.CheckBox implements
index 1884c7c8fd0898d75ed4195cb0bf9946caca7bc5..a01f387546c0fde230c5dfeeaa93c5e16169169d 100644 (file)
@@ -14,10 +14,10 @@ import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
-import com.itmill.toolkit.terminal.gwt.client.ICaption;
-import com.itmill.toolkit.terminal.gwt.client.ICaptionWrapper;
 import com.itmill.toolkit.terminal.gwt.client.Container;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
+import com.itmill.toolkit.terminal.gwt.client.ICaption;
+import com.itmill.toolkit.terminal.gwt.client.ICaptionWrapper;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 import com.itmill.toolkit.terminal.gwt.client.Util;
@@ -71,12 +71,12 @@ public class ICustomLayout extends ComplexPanel implements Paintable,
      * If location already contains a widget it will be removed.
      * 
      * @param widget
-     *                Widget to be set into location.
+     *            Widget to be set into location.
      * @param location
-     *                location name where widget will be added
+     *            location name where widget will be added
      * 
      * @throws IllegalArgumentException
-     *                 if no such location is found in the layout.
+     *             if no such location is found in the layout.
      */
     public void setWidget(Widget widget, String location) {
 
@@ -287,7 +287,7 @@ public class ICustomLayout extends ComplexPanel implements Paintable,
      * all _UID_ tags with an unique id-string.
      * 
      * @param html
-     *                Original HTML-template received from server
+     *            Original HTML-template received from server
      * @return html that is used to create the HTMLPanel.
      */
     private String extractBodyAndScriptsFromTemplate(String html) {
index 9b814b41e2ed7221cc0a07e16a8f226c8be34617..e9f910048ccf3a0ee94c10b4b7d57dbb632377df 100644 (file)
@@ -11,9 +11,9 @@ import com.google.gwt.user.client.ui.FlowPanel;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;\r
 import com.itmill.toolkit.terminal.gwt.client.ClientExceptionHandler;\r
 import com.itmill.toolkit.terminal.gwt.client.DateTimeService;\r
+import com.itmill.toolkit.terminal.gwt.client.ITooltip;\r
 import com.itmill.toolkit.terminal.gwt.client.LocaleNotLoadedException;\r
 import com.itmill.toolkit.terminal.gwt.client.Paintable;\r
-import com.itmill.toolkit.terminal.gwt.client.ITooltip;\r
 import com.itmill.toolkit.terminal.gwt.client.UIDL;\r
 \r
 public class IDateField extends FlowPanel implements Paintable, Field {\r
index 00bf144d731e1e842dcfdf2ceb26a7f8fcfd1c5a..a77e9001d0b80c44b6809d70fa2949a202270a7d 100644 (file)
@@ -18,9 +18,9 @@ import com.google.gwt.user.client.ui.UIObject;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
 import com.itmill.toolkit.terminal.gwt.client.BrowserInfo;
-import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Container;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
+import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.StyleConstants;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
@@ -433,7 +433,7 @@ public class IExpandLayout extends ComplexPanel implements
         final Iterator it = iterator();
         while (it.hasNext()) {
             final Widget w = (Widget) it.next();
-            
+
             if (w instanceof Paintable && w != expandedWidget) {
                 final WidgetWrapper wr = getWidgetWrapperFor(w);
                 if (orientationMode == ORIENTATION_VERTICAL) {
index 786d3b04ef072192ac62a8a3375c4baf075194be..1cf54693b9d3889ba2b7dafc5ef6141666bdd798 100644 (file)
@@ -29,8 +29,8 @@ import com.google.gwt.user.client.ui.PopupPanel.PositionCallback;
 import com.google.gwt.user.client.ui.SuggestOracle.Suggestion;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
 import com.itmill.toolkit.terminal.gwt.client.Focusable;
-import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.ITooltip;
+import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 import com.itmill.toolkit.terminal.gwt.client.Util;
 
@@ -272,8 +272,9 @@ public class IFilterSelect extends Composite implements Paintable, Field,
         /*
          * (non-Javadoc)
          * 
-         * @see com.google.gwt.user.client.ui.PopupPanel$PositionCallback#setPosition(int,
-         *      int)
+         * @see
+         * com.google.gwt.user.client.ui.PopupPanel$PositionCallback#setPosition
+         * (int, int)
          */
         public void setPosition(int offsetWidth, int offsetHeight) {
 
index 39680c9ab471b15b52e6d646eb77eb52435a05ae..e9e2343a2ebdc65c160b06191c56b618275b3ec6 100644 (file)
@@ -159,8 +159,8 @@ public class IFormLayout extends FlexTable implements Container {
         /**
          * 
          * @param component
-         *                optional owner of caption. If not set, getOwner will
-         *                return null
+         *            optional owner of caption. If not set, getOwner will
+         *            return null
          * @param client
          */
         public Caption(Paintable component, ApplicationConnection client) {
index ad1fcf461b1dd6588105ba7c681c92b900db2da8..88a6ad1f466693072de540112e90b0b34b4dd86d 100644 (file)
@@ -21,9 +21,9 @@ import com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentC
 import com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
 import com.itmill.toolkit.terminal.gwt.client.BrowserInfo;
-import com.itmill.toolkit.terminal.gwt.client.ICaptionWrapper;
 import com.itmill.toolkit.terminal.gwt.client.Container;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
+import com.itmill.toolkit.terminal.gwt.client.ICaptionWrapper;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.StyleConstants;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
index ddeda05a8aebe010dd610138d27ad0743a78078b..4b7a3a0477191ae86b61418dbb75e07880c32f9b 100644 (file)
@@ -11,8 +11,8 @@ import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.ListBox;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
-import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.ITooltip;
+import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 
 public class IListSelect extends IOptionGroupBase {
index b1e9f5d9192c82979221c95b7b0a065b7ebef748..71258c192e5ceea4aa7927cf17afbe3efb4f511f 100644 (file)
@@ -117,8 +117,8 @@ public class IOrderedLayout extends Panel implements Container,
      * <p>
      * There are two modes - vertical and horizontal.
      * <ul>
-     * <li>Vertical mode uses structure: div-root ( div-wrap ( child ) div-wrap (
-     * child ))).</li>
+     * <li>Vertical mode uses structure: div-root ( div-wrap ( child ) div-wrap
+     * child ))).</li>
      * <li>Horizontal mode uses structure: table ( tbody ( tr-childcontainer (
      * td-wrap ( child ) td-wrap ( child) )) )</li>
      * </ul>
@@ -574,7 +574,7 @@ public class IOrderedLayout extends Panel implements Container,
      * without letting root element to affect the calculation.
      * 
      * @param offset
-     *                offsetWidth or offsetHeight
+     *            offsetWidth or offsetHeight
      */
     private int rootOffsetMeasure(String offset) {
         // TODO This method must be optimized!
index eded7610ad3eb3607b3efa82f11359418f03a0bb..1fb53a68c07720e6a62f7a8feb110e914e2f4547 100644 (file)
@@ -167,10 +167,10 @@ public class IPopupView extends HTML implements Paintable {
     }
 
     public static native void nativeBlur(Element e) /*-{ 
-                         if(e.focus) {
-                         e.blur();
-                         }
-                         }-*/;
+                            if(e.focus) {
+                            e.blur();
+                            }
+                            }-*/;
 
     private class CustomPopup extends IToolkitOverlay implements Container {
 
index 6dab67ccd64dcf975acb1f32fdeb80caf621488f..0d576af198c1ac0884ffc1809c8407dfe2e0e015 100644 (file)
@@ -322,11 +322,11 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
 
     /**
      * @param uidl
-     *                which contains row data
+     *            which contains row data
      * @param firstRow
-     *                first row in data set
+     *            first row in data set
      * @param reqRows
-     *                amount of rows in data set
+     *            amount of rows in data set
      */
     private void updateBody(UIDL uidl, int firstRow, int reqRows) {
         if (uidl == null || reqRows < 1) {
@@ -506,7 +506,6 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
          * divide extra space relatively to each column which has not width set.
          * 
          * Overflow pixels are added to last column.
-         * 
          */
 
         Iterator headCells = tHead.iterator();
@@ -1416,7 +1415,7 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
          * Note that this returns HeaderCell even if it is currently collapsed.
          * 
          * @param cid
-         *                Column key of accessed HeaderCell
+         *            Column key of accessed HeaderCell
          * @return HeaderCell
          */
         public HeaderCell getHeaderCell(String cid) {
@@ -1959,7 +1958,7 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
              * handler fires showContextMenu function.
              * 
              * @param el
-             *                element where to attach contenxt menu event
+             *            element where to attach contenxt menu event
              */
             private native void attachContextMenuEvent(Element el)
             /*-{
@@ -2172,7 +2171,9 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
             /*
              * (non-Javadoc)
              * 
-             * @see com.itmill.toolkit.terminal.gwt.client.ui.IActionOwner#getActions()
+             * @see
+             * com.itmill.toolkit.terminal.gwt.client.ui.IActionOwner#getActions
+             * ()
              */
             public Action[] getActions() {
                 if (actionKeys == null) {
@@ -2306,7 +2307,7 @@ public class IScrollTable extends Composite implements Table, ScrollListener,
      * Helper function to build html snippet for column or row headers
      * 
      * @param uidl
-     *                possibly with values caption and icon
+     *            possibly with values caption and icon
      * @return html snippet containing possibly an icon + caption text
      */
     private String buildCaptionHtmlSnippet(UIDL uidl) {
index baf194d93911d658928e85a301938115cdc57c73..5378fc261f538c64fd1c71b39a60996cf2a356e1 100644 (file)
@@ -103,7 +103,6 @@ public class ISplitPanel extends ComplexPanel implements Paintable,
              * 
              * With IE7 one will sometimes get scrollbars with overflow auto
              * even though there is nothing to scroll (content fits into area).
-             * 
              */
             DOM.setStyleAttribute(firstContainer, "overflow", "hidden");
             DOM.setStyleAttribute(secondContainer, "overflow", "hidden");
index e1dbf37e43b97452e4c689c7c13f43e038551484..90bd763f79a5602ac6bc0f7d5012d96aa4a9a484 100644 (file)
@@ -173,7 +173,7 @@ public class ITablePaging extends Composite implements Table, Paintable,
      * can be initial row data, scroll up, scroll down...
      * 
      * @param uidl
-     *                which contains row data
+     *            which contains row data
      */
     private void updateBody(UIDL uidl) {
         final Iterator it = uidl.getChildIterator();
@@ -395,8 +395,8 @@ public class ITablePaging extends Composite implements Table, Paintable,
          * Shows context menu for this row.
          * 
          * @param event
-         *                Event which triggered context menu. Correct place for
-         *                context menu can be determined with it.
+         *            Event which triggered context menu. Correct place for
+         *            context menu can be determined with it.
          */
         public void showContextMenu(Event event) {
             System.out.println("TODO: Show context menu");
index 7fbf3809181f78af205e0e6a7c9f7bc23fefd946..fc2f6b12aeba7b3666110a32d7b6fe0c0bd32146 100644 (file)
@@ -17,8 +17,8 @@ import com.google.gwt.user.client.ui.ComplexPanel;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
-import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
+import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 import com.itmill.toolkit.terminal.gwt.client.Util;
index 6c3afbd77888b8d64726361f94ab2d1813810081..dad58d5d7af4b0f2ab6cc1b499f80ccd4ee91743 100644 (file)
@@ -34,7 +34,7 @@ public class ITabsheetPanel extends ComplexPanel {
      * Adds the specified widget to the deck.\r
      * \r
      * @param w\r
-     *                the widget to be added\r
+     *            the widget to be added\r
      */\r
     public void add(Widget w) {\r
         Element el = createContainerElement();\r
@@ -64,11 +64,11 @@ public class ITabsheetPanel extends ComplexPanel {
      * Inserts a widget before the specified index.\r
      * \r
      * @param w\r
-     *                the widget to be inserted\r
+     *            the widget to be inserted\r
      * @param beforeIndex\r
-     *                the index before which it will be inserted\r
+     *            the index before which it will be inserted\r
      * @throws IndexOutOfBoundsException\r
-     *                 if <code>beforeIndex</code> is out of range\r
+     *             if <code>beforeIndex</code> is out of range\r
      */\r
     public void insert(Widget w, int beforeIndex) {\r
         Element el = createContainerElement();\r
@@ -95,7 +95,7 @@ public class ITabsheetPanel extends ComplexPanel {
      * visible widget to be hidden.\r
      * \r
      * @param index\r
-     *                the index of the widget to be shown\r
+     *            the index of the widget to be shown\r
      */\r
     public void showWidget(int index) {\r
         checkIndexBoundsForAccess(index);\r
index 3862b7ca8e67c28e521472af72427f97d451421a..9cc2ff6932c4aadd84c90badd01f009890d9775c 100644 (file)
@@ -13,8 +13,8 @@ import com.google.gwt.user.client.ui.TextBoxBase;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
-import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.ITooltip;
+import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 import com.itmill.toolkit.terminal.gwt.client.Util;
 
index ec14f95aafb3d1dfb24e7603635038dfbba09f70..c71756ad43a92839f5c5414ea69239de46b54d33 100644 (file)
@@ -32,9 +32,9 @@ public class ShortcutActionHandler {
     /**
      * 
      * @param pid
-     *                Paintable id
+     *            Paintable id
      * @param c
-     *                reference to application connections
+     *            reference to application connections
      */
     public ShortcutActionHandler(String pid, ApplicationConnection c) {
         paintableId = pid;
@@ -45,7 +45,7 @@ public class ShortcutActionHandler {
      * Updates list of actions this handler listens to.
      * 
      * @param c
-     *                UIDL snippet containing actions
+     *            UIDL snippet containing actions
      */
     public void updateActionMap(UIDL c) {
         actions.clear();
index 83e0e4c57ffce8103ef76add45eaa08162dfebb9..94b89fb59a6a7828d786b35cfbc915fd0101cb05 100644 (file)
@@ -12,7 +12,9 @@ public interface TreeImages extends com.google.gwt.user.client.ui.TreeImages {
      * An image indicating an open branch.\r
      * \r
      * @return a prototype of this image\r
-     * @gwt.resource com/itmill/toolkit/terminal/gwt/public/default/tree/img/expanded.png\r
+     * @gwt.resource \r
+     *               com/itmill/toolkit/terminal/gwt/public/default/tree/img/expanded\r
+     *               .png\r
      */\r
     AbstractImagePrototype treeOpen();\r
 \r
@@ -20,7 +22,9 @@ public interface TreeImages extends com.google.gwt.user.client.ui.TreeImages {
      * An image indicating a closed branch.\r
      * \r
      * @return a prototype of this image\r
-     * @gwt.resource com/itmill/toolkit/terminal/gwt/public/default/tree/img/collapsed.png\r
+     * @gwt.resource \r
+     *               com/itmill/toolkit/terminal/gwt/public/default/tree/img/collapsed\r
+     *               .png\r
      */\r
     AbstractImagePrototype treeClosed();\r
 \r
index f6941f03d0380177dd8e59a5b3c2761415da31ab..7375e96eb12068797b67d848ea9929d8c9465eb9 100644 (file)
@@ -10,8 +10,8 @@ import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.BrowserInfo;
-import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.ContainerResizedListener;
+import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Util;
 import com.itmill.toolkit.terminal.gwt.client.ui.AlignmentInfo;
 
index 7024a5c09cc45704d31036d7fd6b61428aff76b0..80489b881a7ce0055ec032ecd042bed3cde8aaf9 100644 (file)
@@ -10,8 +10,8 @@ import com.google.gwt.user.client.DeferredCommand;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.Widget;
 import com.itmill.toolkit.terminal.gwt.client.ApplicationConnection;
-import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Container;
+import com.itmill.toolkit.terminal.gwt.client.ICaption;
 import com.itmill.toolkit.terminal.gwt.client.Paintable;
 import com.itmill.toolkit.terminal.gwt.client.UIDL;
 import com.itmill.toolkit.terminal.gwt.client.ui.MarginInfo;
@@ -197,9 +197,9 @@ public class ISizeableGridLayout extends IAbsoluteGrid implements Paintable,
      * spacings.
      * 
      * @param baseElement
-     *                measurements will be done withing this element
+     *            measurements will be done withing this element
      * @param baseStyleName
-     *                base style name
+     *            base style name
      * @return
      */
     public static MarginPixels detectMargins(Element baseElement,
index e1244d82acee8a98dfd149b48b41462ff4d3a601..fb10da9867afd27bd2ed68e91f3fbadf7b30a172 100644 (file)
@@ -938,7 +938,7 @@ public class ApplicationServlet extends HttpServlet {
                 + (style != null ? style : "") + "></div>\n");
 
         if (!fragment) {
-               page.write("<noscript>" + getNoScriptMessage() + "</noscript>");
+            page.write("<noscript>" + getNoScriptMessage() + "</noscript>");
             page.write("</body>\n</html>\n");
         }
         page.close();
@@ -946,13 +946,14 @@ public class ApplicationServlet extends HttpServlet {
     }
 
     /**
-     * Returns a message printed for browsers without scripting support or if browsers scripting support is disabled.
+     * Returns a message printed for browsers without scripting support or if
+     * browsers scripting support is disabled.
      */
     protected String getNoScriptMessage() {
-               return "You have to enable javascript in your browser to use an application built with IT Mill Toolkit.";
-       }
+        return "You have to enable javascript in your browser to use an application built with IT Mill Toolkit.";
+    }
 
-       private boolean isGecko17(HttpServletRequest request) {
+    private boolean isGecko17(HttpServletRequest request) {
         final WebBrowser browser = WebApplicationContext.getApplicationContext(
                 request.getSession()).getBrowser();
         if (browser != null && browser.getBrowserApplication() != null) {
index 2888907c90757512a92936cd59f860645e17ae70..5d789ac386e7f41ad6cce9a9b97901df34d63906 100644 (file)
@@ -35,13 +35,13 @@ public class HttpUploadStream implements
      * Creates a new instance of UploadStreamImpl.
      * 
      * @param name
-     *                the name of the stream.
+     *            the name of the stream.
      * @param stream
-     *                the input stream.
+     *            the input stream.
      * @param contentName
-     *                the name of the content.
+     *            the name of the content.
      * @param contentType
-     *                the type of the content.
+     *            the type of the content.
      */
     public HttpUploadStream(String name, InputStream stream,
             String contentName, String contentType) {
index 6c62dbb11b7b19a63a9ecf32dedb3b3176a94a10..d2f68c4a0e12e4038a664a4f567e049e42f0bafb 100644 (file)
@@ -67,9 +67,9 @@ public class JsonPaintTarget implements PaintTarget {
      * @param variableMap
      * @param manager
      * @param outWriter
-     *                A character-output stream.
+     *            A character-output stream.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public JsonPaintTarget(CommunicationManager manager, PrintWriter outWriter,
             boolean cachingRequired) throws PaintException {
@@ -95,13 +95,13 @@ public class JsonPaintTarget implements PaintTarget {
      * <pre>
      *   Todo:
      *    Checking of input values
-     *    
+     * 
      * </pre>
      * 
      * @param tagName
-     *                the name of the start tag.
+     *            the name of the start tag.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      * 
      */
     public void startTag(String tagName, boolean isChildNode)
@@ -139,9 +139,9 @@ public class JsonPaintTarget implements PaintTarget {
      * PaintException is raised.
      * 
      * @param tag
-     *                the name of the end tag.
+     *            the name of the end tag.
      * @throws Paintexception
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void endTag(String tagName) throws PaintException {
         // In case of null data output nothing:
@@ -192,7 +192,7 @@ public class JsonPaintTarget implements PaintTarget {
      * Substitutes the XML sensitive characters with predefined XML entities.
      * 
      * @param xml
-     *                the String to be substituted.
+     *            the String to be substituted.
      * @return A new string instance where all occurrences of XML sensitive
      *         characters are substituted with entities.
      */
@@ -207,7 +207,7 @@ public class JsonPaintTarget implements PaintTarget {
      * Substitutes the XML sensitive characters with predefined XML entities.
      * 
      * @param xml
-     *                the String to be substituted.
+     *            the String to be substituted.
      * @return A new StringBuffer instance where all occurrences of XML
      *         sensitive characters are substituted with entities.
      * 
@@ -283,7 +283,7 @@ public class JsonPaintTarget implements PaintTarget {
      * Substitutes a XML sensitive character with predefined XML entity.
      * 
      * @param c
-     *                the Character to be replaced with an entity.
+     *            the Character to be replaced with an entity.
      * @return String of the entity or null if character is not to be replaced
      *         with an entity.
      */
@@ -309,7 +309,7 @@ public class JsonPaintTarget implements PaintTarget {
      * 
      * @param str
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      * 
      */
     public void addText(String str) throws PaintException {
@@ -321,11 +321,11 @@ public class JsonPaintTarget implements PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, boolean value) throws PaintException {
         tag.addAttribute("\"" + name + "\":" + (value ? "true" : "false"));
@@ -336,12 +336,12 @@ public class JsonPaintTarget implements PaintTarget {
      * any content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, Resource value) throws PaintException {
 
@@ -385,12 +385,12 @@ public class JsonPaintTarget implements PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, int value) throws PaintException {
         tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
@@ -401,12 +401,12 @@ public class JsonPaintTarget implements PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, long value) throws PaintException {
         tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
@@ -417,12 +417,12 @@ public class JsonPaintTarget implements PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, float value) throws PaintException {
         tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
@@ -433,12 +433,12 @@ public class JsonPaintTarget implements PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the Attribute name.
+     *            the Attribute name.
      * @param value
-     *                the Attribute value.
+     *            the Attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, double value) throws PaintException {
         tag.addAttribute("\"" + name + "\":" + String.valueOf(value));
@@ -449,12 +449,12 @@ public class JsonPaintTarget implements PaintTarget {
      * content is written.
      * 
      * @param name
-     *                the String attribute name.
+     *            the String attribute name.
      * @param value
-     *                the String attribute value.
+     *            the String attribute value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addAttribute(String name, String value) throws PaintException {
         // In case of null data output nothing:
@@ -499,14 +499,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a string type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, String value)
             throws PaintException {
@@ -517,14 +517,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a int type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, int value)
             throws PaintException {
@@ -535,14 +535,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a long type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, long value)
             throws PaintException {
@@ -553,14 +553,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a float type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, float value)
             throws PaintException {
@@ -571,14 +571,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a double type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, double value)
             throws PaintException {
@@ -589,14 +589,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a boolean type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, boolean value)
             throws PaintException {
@@ -607,14 +607,14 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds a string array type variable.
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * @param value
-     *                the Variable initial value.
+     *            the Variable initial value.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addVariable(VariableOwner owner, String name, String[] value)
             throws PaintException {
@@ -627,12 +627,12 @@ public class JsonPaintTarget implements PaintTarget {
      * TODO not converted for JSON
      * 
      * @param owner
-     *                the Listener for variable changes.
+     *            the Listener for variable changes.
      * @param name
-     *                the Variable name.
+     *            the Variable name.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addUploadStreamVariable(VariableOwner owner, String name)
             throws PaintException {
@@ -647,11 +647,11 @@ public class JsonPaintTarget implements PaintTarget {
      * Prints full text section. The section data is escaped
      * 
      * @param sectionTagName
-     *                the name of the tag.
+     *            the name of the tag.
      * @param sectionData
-     *                the section data to be printed.
+     *            the section data to be printed.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addSection(String sectionTagName, String sectionData)
             throws PaintException {
@@ -663,9 +663,9 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds XML directly to UIDL.
      * 
      * @param xml
-     *                the Xml to be added.
+     *            the Xml to be added.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void addUIDL(String xml) throws PaintException {
 
@@ -689,13 +689,13 @@ public class JsonPaintTarget implements PaintTarget {
      * Adds XML section with namespace.
      * 
      * @param sectionTagName
-     *                the name of the tag.
+     *            the name of the tag.
      * @param sectionData
-     *                the section data.
+     *            the section data.
      * @param namespace
-     *                the namespace to be added.
+     *            the namespace to be added.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      * 
      * @see com.itmill.toolkit.terminal.PaintTarget#addXMLSection(String,
      *      String, String)
@@ -737,12 +737,12 @@ public class JsonPaintTarget implements PaintTarget {
 
     /**
      * Closes the paint target. Paint target must be closed before the
-     * <code>getUIDL</code> can be called. Subsequent attempts to write to
-     * paint target. If the target was already closed, call to this function is
+     * <code>getUIDL</code> can be called. Subsequent attempts to write to paint
+     * target. If the target was already closed, call to this function is
      * ignored. will generate an exception.
      * 
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void close() throws PaintException {
         if (tag != null) {
@@ -867,7 +867,7 @@ public class JsonPaintTarget implements PaintTarget {
         /**
          * 
          * @param s
-         *                json string, object or array
+         *            json string, object or array
          */
         public void addData(String s) {
             children.add(s);
index fe2c00076434b5fd1a5d5fbc03fa38f7953b2f37..3818c39e81b39b217c64b56234fc0ec8542b919b 100644 (file)
@@ -21,7 +21,6 @@ import javax.servlet.http.HttpSessionBindingListener;
 
 import com.itmill.toolkit.Application;
 import com.itmill.toolkit.service.ApplicationContext;
-import com.itmill.toolkit.terminal.gwt.client.ClientExceptionHandler;
 
 /**
  * Web application context for the IT Mill Toolkit applications.
index b3ee2da10411c646f68716d747894ade5e71400b..963c31488f2762355727f9d94c2f4e6626633375 100644 (file)
@@ -43,7 +43,7 @@ public class TestBench extends com.itmill.toolkit.Application implements
             "com.itmill.toolkit.demo", "com.itmill.toolkit.demo.colorpicker",
             "com.itmill.toolkit.demo.reservation",
             "com.itmill.toolkit.demo.features",
-            "com.itmill.toolkit.tests.tickets"};
+            "com.itmill.toolkit.tests.tickets" };
 
     HierarchicalContainer testables = new HierarchicalContainer();
 
index 0d55cd5c82b161e24e0df8de9665d2337bc10d29..58784919e654576b5af7cf89dc1f02e6d7f5750c 100644 (file)
@@ -95,7 +95,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
                                 + "All components are in immmediate mode. See source how to tweak this test."));
         main.addComponent(eventListenerFeedback);
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             window = new Window("Components inside Window (TEST: Window)");
 
@@ -109,7 +110,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             getMainWindow().addWindow(window);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target
                     .addComponent(new Label(
@@ -121,7 +123,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(ol);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target
                     .addComponent(new Label(
@@ -133,7 +136,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(ol2);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target.addComponent(new Label(
                     "<hr /><h1>Components inside TabSheet</h3>",
@@ -154,7 +158,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             // test(expandLayout);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (true) {
             target.addComponent(new Label(
                     "<hr /><h1>Components inside Accordion</h3>",
@@ -176,7 +181,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             // test(expandLayout);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target.addComponent(new Label(
                     "<hr /><h1>Components inside GridLayout</h3>",
@@ -187,7 +193,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             // test(gridLayout);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target
                     .addComponent(new Label(
@@ -200,7 +207,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(el);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target.addComponent(new Label(
                     "<hr /><h1>Components inside Panel</h3>",
@@ -210,7 +218,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(panel);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target
                     .addComponent(new Label(
@@ -230,7 +239,8 @@ public class TestComponentsAndLayouts extends Application implements Listener,
             target.addComponent(sp1l);
         }
 
-        // //////////////////////////////////////////////////////////////////////////
+        ////////////////////////////////////////////////////////////////////////
+        // ////
         if (false) {
             target
                     .addComponent(new Label(
index 0bf8f2dad0dc63edd90db476aded13b123f5821c..5d8a76f3200cdfe3e3d033b7d3741d6e9d0952da 100644 (file)
@@ -30,7 +30,7 @@ public class TestForAlignments extends CustomComponent {
         vert.addComponent(b2);
         vert.addComponent(t1);
         vert.addComponent(d1);
-        //vert.getSize().setWidth(500);
+        // vert.getSize().setWidth(500);
         vert.setComponentAlignment(b1, OrderedLayout.ALIGNMENT_RIGHT,
                 OrderedLayout.ALIGNMENT_TOP);
         vert.setComponentAlignment(b2, OrderedLayout.ALIGNMENT_LEFT,
@@ -46,7 +46,7 @@ public class TestForAlignments extends CustomComponent {
         hori.addComponent(b4);
         hori.addComponent(t2);
         hori.addComponent(d2);
-        //hori.getSize().setHeight(200);
+        // hori.getSize().setHeight(200);
         hori.setComponentAlignment(b3, OrderedLayout.ALIGNMENT_LEFT,
                 OrderedLayout.ALIGNMENT_BOTTOM);
         hori.setComponentAlignment(b4, OrderedLayout.ALIGNMENT_LEFT,
index db84225e0712e776feb5d6b3915898a01ba369da..4583beb04fa3335b9d6add9598b7e7f60b22b4fe 100644 (file)
@@ -73,36 +73,38 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
     StreamResource strres;
     OrderedLayout ol;
     int getwincount = 0;
-    
+
     public void init() {
         setTheme("tests-book");
-        
+
         setMainWindow(main);
 
         // Demo the use of parameter and URI handlers
         main.addParameterHandler(new MyParameterHandler());
         main.addURIHandler(new MyURIHandler());
-        
+
         MyDynamicResource myresource = new MyDynamicResource();
         main.addParameterHandler(myresource);
         main.addURIHandler(myresource);
 
         main.addURIHandler(new BookTestURIHandler());
     }
-    
+
     class MyParameterHandler implements ParameterHandler {
         public void handleParameters(Map parameters) {
             // Print out the parameters to standard output
             for (Iterator it = parameters.keySet().iterator(); it.hasNext();) {
-                String key   = (String) it.next();
+                String key = (String) it.next();
                 String value = ((String[]) parameters.get(key))[0];
-                System.out.println("Key: "+key+", value: "+value);
+                System.out.println("Key: " + key + ", value: " + value);
             }
         }
     }
+
     class MyURIHandler implements URIHandler {
         public DownloadStream handleURI(URL context, String relativeUri) {
-            System.out.println("Context: "+context.toString()+", relative: "+relativeUri);
+            System.out.println("Context: " + context.toString()
+                    + ", relative: " + relativeUri);
             return null; // Let the Application provide the response
         }
     }
@@ -127,10 +129,10 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 final Window child = (Window) cwi.next();
                 main.removeWindow(child);
             }
-            
+
             // The index is listed inside a grid layout
             main.setLayout(new OrderedLayout());
-            GridLayout grid = new GridLayout(4,4);
+            GridLayout grid = new GridLayout(4, 4);
             grid.addStyleName("index");
             main.addComponent(grid);
 
@@ -139,19 +141,22 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                         "labelcontent", "tree", "embedded", "textfield",
                         "textfieldvalidation", "datefield", "button",
                         "select/select", "select/native", "select/optiongroup",
-                        "select/twincol", "filterselect", "validator", "table", "table/select", "table/component", "table/paging", "table/editable",
-                        "upload", "link", "gridlayout", "orderedlayout",
-                        "formlayout", "form", "form/simple", "form/layout", "panel", "expandlayout", "expandlayout/root", "tabsheet",
-                        "alignment", "alignment/grid", "window", "window/opener",
+                        "select/twincol", "filterselect", "validator", "table",
+                        "table/select", "table/component", "table/paging",
+                        "table/editable", "upload", "link", "gridlayout",
+                        "orderedlayout", "formlayout", "form", "form/simple",
+                        "form/layout", "panel", "expandlayout",
+                        "expandlayout/root", "tabsheet", "alignment",
+                        "alignment/grid", "window", "window/opener",
                         "window/multiple", "classresource", "usererror",
                         "progress/window", "progress/thread", "progress",
                         "customlayout", "spacing", "margin", "clientinfo",
                         "fillinform/templates", "notification", "print",
-                        "richtextfield", "querycontainer", "menubar"};
+                        "richtextfield", "querycontainer", "menubar" };
                 for (int i = 0; i < examples.length; i++) {
-                    grid.addComponent(new Label("<a href='" + context.toString() +
-                            examples[i] + "'>" + examples[i] + "</a>",
-                            Label.CONTENT_XHTML));
+                    grid.addComponent(new Label("<a href='"
+                            + context.toString() + examples[i] + "'>"
+                            + examples[i] + "</a>", Label.CONTENT_XHTML));
                 }
                 return null;
             }
@@ -233,13 +238,14 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             } else if (example.equals("menubar")) {
                 example_MenuBar(main, param);
             } else {
-                ; // main.addComponent(new Label("Unknown test '"+example+"'."));
+                ; // main.addComponent(new
+                  // Label("Unknown test '"+example+"'."));
             }
 
             return null;
         }
     }
-    
+
     /*
      * public Window getWindow(String name) { Window superwin =
      * super.getWindow(name); if (superwin != null) return superwin;
@@ -310,10 +316,14 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 new Object[] { "Venus" },
                 new Object[] { "Earth", "The Moon" },
                 new Object[] { "Mars", "Phobos", "Deimos" },
-                new Object[] { "Jupiter", "Io", "Europa", "Ganymedes", "Callisto" },
-                new Object[] { "Saturn", "Titan", "Tethys", "Dione", "Rhea", "Iapetus" },
-                new Object[] { "Uranus", "Miranda", "Ariel", "Umbriel", "Titania", "Oberon" },
-                new Object[] { "Neptune", "Triton", "Proteus", "Nereid", "Larissa" } };
+                new Object[] { "Jupiter", "Io", "Europa", "Ganymedes",
+                        "Callisto" },
+                new Object[] { "Saturn", "Titan", "Tethys", "Dione", "Rhea",
+                        "Iapetus" },
+                new Object[] { "Uranus", "Miranda", "Ariel", "Umbriel",
+                        "Titania", "Oberon" },
+                new Object[] { "Neptune", "Triton", "Proteus", "Nereid",
+                        "Larissa" } };
 
         final Tree tree = new Tree();
 
@@ -344,48 +354,52 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 tree.expandItemsRecursively(planet);
             }
         }
-        
-        // Horizontal layout with the tree on the left and a details panel on the right. 
-        final ExpandLayout horlayout = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+
+        // Horizontal layout with the tree on the left and a details panel on
+        // the right.
+        final ExpandLayout horlayout = new ExpandLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
         horlayout.addStyleName("treeexample");
         horlayout.setSizeFull();
-        
+
         final Panel treepanel = new Panel("The Planets and Major Moons");
         treepanel.addComponent(tree);
         horlayout.addComponent(treepanel);
-        
+
         final Panel detailspanel = new Panel("Details");
         horlayout.addComponent(detailspanel);
         horlayout.expand(detailspanel);
-        
+
         final OrderedLayout detailslayout = new OrderedLayout();
         detailspanel.setLayout(detailslayout);
-        
-               // Allow null selection - this is the default actually.
-               tree.setNullSelectionAllowed(true);
-               
-               // When a tree item (planet or moon) is clicked, open the item in Details view.
-               tree.setImmediate(true);
-               tree.addListener(new ValueChangeListener() {
-                   String lastselected = null;
-                   
-                   public void valueChange(ValueChangeEvent event) {
-                       String planet = (String) tree.getValue();
-               
-                       // Reselect a selected item if it is unselected by clicking it.
-                       if (planet == null) {
-                               planet = lastselected;
-                               tree.setValue(planet);
-                       }
-                       lastselected = planet;
-                
+
+        // Allow null selection - this is the default actually.
+        tree.setNullSelectionAllowed(true);
+
+        // When a tree item (planet or moon) is clicked, open the item in
+        // Details view.
+        tree.setImmediate(true);
+        tree.addListener(new ValueChangeListener() {
+            String lastselected = null;
+
+            public void valueChange(ValueChangeEvent event) {
+                String planet = (String) tree.getValue();
+
+                // Reselect a selected item if it is unselected by clicking it.
+                if (planet == null) {
+                    planet = lastselected;
+                    tree.setValue(planet);
+                }
+                lastselected = planet;
+
                 detailspanel.setCaption("Details on " + planet);
                 detailslayout.removeAllComponents();
-                
+
                 // Put some stuff in the Details view.
                 detailslayout.addComponent(new Label("Where is the cat?"));
-                detailslayout.addComponent(new Label("The cat is in " + planet + "."));
-                
+                detailslayout.addComponent(new Label("The cat is in " + planet
+                        + "."));
+
             }
         });
 
@@ -527,8 +541,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
     }
 
     void example_DateField(Window main, String param) {
-        OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
-        
+        OrderedLayout layout = new OrderedLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
+
         /* Create a DateField with the calendar style. */
         final DateField popupdate = new PopupDateField("Popup calendar field");
 
@@ -539,8 +554,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         popupdate.setValue(new java.util.Date());
 
         /* Create a DateField with the calendar style. */
-        final DateField inlinedate = new InlineDateField("Inline calendar field");
-        
+        final DateField inlinedate = new InlineDateField(
+                "Inline calendar field");
+
         /* Set locale of the DateField to American English. */
         inlinedate.setLocale(new Locale("en", "US"));
 
@@ -562,7 +578,7 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             form.setCaption("My Form");
             form.setRequired(true);
             main.addComponent(form);
-            
+
             TextField text = new TextField("This is a required text field");
             text.setRequired(true);
             text.setImmediate(true);
@@ -577,7 +593,7 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             return "pagingtable";
         }
     }
-    
+
     void example_Table(Window main, String param) {
         if (param != null) {
             if (param.equals("select")) {
@@ -597,11 +613,11 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             } else if (param.equals("paging")) {
                 PagingTable table = new PagingTable();
                 table.addContainerProperty("Column 1", String.class, null);
-                for (int i=0; i<100; i++)
-                    table.addItem(new Object[]{"Item "+i}, new Integer(i));
+                for (int i = 0; i < 100; i++)
+                    table.addItem(new Object[] { "Item " + i }, new Integer(i));
                 main.addComponent(table);
             }
-        }else
+        } else
             main.addComponent(new TableExample1());
     }
 
@@ -703,9 +719,10 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
 
     void example_GridLayout(Window main, String param) {
         if (param.equals("embedded")) {
-            final GridLayout grid = new GridLayout(3,3);
-            for (int i=0; i<3*3; i++) {
-                ClassResource img = new ClassResource("smiley.jpg", main.getApplication());
+            final GridLayout grid = new GridLayout(3, 3);
+            for (int i = 0; i < 3 * 3; i++) {
+                ClassResource img = new ClassResource("smiley.jpg", main
+                        .getApplication());
                 Embedded embedded = new Embedded("", img);
                 grid.addComponent(embedded);
             }
@@ -750,25 +767,56 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             layout.setHeight(400, Sizeable.UNITS_PIXELS);
 
             /* Define cells and their layouts to create. */
-            
-             Object cells[][] = {
-                     {new Button("Top Left"),      new Integer(OrderedLayout.ALIGNMENT_LEFT),              new Integer(OrderedLayout.ALIGNMENT_TOP)},
-                     {new Label ("Top Center"),    new Integer(OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER), new Integer(OrderedLayout.ALIGNMENT_TOP)},
-                     {new Label ("Top Right"),     new Integer(OrderedLayout.ALIGNMENT_RIGHT),             new Integer(OrderedLayout.ALIGNMENT_TOP)},
-                     {new Button("Center Left"),   new Integer(OrderedLayout.ALIGNMENT_LEFT),              new Integer(OrderedLayout.ALIGNMENT_VERTICAL_CENTER)},
-                     {new Button("Center Center"), new Integer(OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER), new Integer(OrderedLayout.ALIGNMENT_VERTICAL_CENTER)},
-                     {new Button("Center Right"),  new Integer(OrderedLayout.ALIGNMENT_RIGHT),             new Integer(OrderedLayout.ALIGNMENT_VERTICAL_CENTER)},
-                     {new Button("Bottom Left"),   new Integer(OrderedLayout.ALIGNMENT_LEFT),              new Integer(OrderedLayout.ALIGNMENT_BOTTOM)},
-                     {new Button("Bottom Center"), new Integer(OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER), new Integer(OrderedLayout.ALIGNMENT_BOTTOM)},
-                     {new Button("Bottom Right"),  new Integer(OrderedLayout.ALIGNMENT_RIGHT),             new Integer(OrderedLayout.ALIGNMENT_BOTTOM)}};
-             
-             for (int i=0; i<9; i++) {
-                 ExpandLayout celllayout = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
-                 celllayout.addComponent((Component) cells[i][0]);
-                 celllayout.setComponentAlignment((Component)cells[i][0], ((Integer)cells[i][1]).intValue(), ((Integer)cells[i][2]).intValue());
-                 layout.addComponent(celllayout);
-                 //layout.setComponentAlignment((Component)cells[i][0], ((Integer)cells[i][1]).intValue(), ((Integer)cells[i][2]).intValue());
-             }
+
+            Object cells[][] = {
+                    { new Button("Top Left"),
+                            new Integer(OrderedLayout.ALIGNMENT_LEFT),
+                            new Integer(OrderedLayout.ALIGNMENT_TOP) },
+                    {
+                            new Label("Top Center"),
+                            new Integer(
+                                    OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER),
+                            new Integer(OrderedLayout.ALIGNMENT_TOP) },
+                    { new Label("Top Right"),
+                            new Integer(OrderedLayout.ALIGNMENT_RIGHT),
+                            new Integer(OrderedLayout.ALIGNMENT_TOP) },
+                    {
+                            new Button("Center Left"),
+                            new Integer(OrderedLayout.ALIGNMENT_LEFT),
+                            new Integer(OrderedLayout.ALIGNMENT_VERTICAL_CENTER) },
+                    {
+                            new Button("Center Center"),
+                            new Integer(
+                                    OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER),
+                            new Integer(OrderedLayout.ALIGNMENT_VERTICAL_CENTER) },
+                    {
+                            new Button("Center Right"),
+                            new Integer(OrderedLayout.ALIGNMENT_RIGHT),
+                            new Integer(OrderedLayout.ALIGNMENT_VERTICAL_CENTER) },
+                    { new Button("Bottom Left"),
+                            new Integer(OrderedLayout.ALIGNMENT_LEFT),
+                            new Integer(OrderedLayout.ALIGNMENT_BOTTOM) },
+                    {
+                            new Button("Bottom Center"),
+                            new Integer(
+                                    OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER),
+                            new Integer(OrderedLayout.ALIGNMENT_BOTTOM) },
+                    { new Button("Bottom Right"),
+                            new Integer(OrderedLayout.ALIGNMENT_RIGHT),
+                            new Integer(OrderedLayout.ALIGNMENT_BOTTOM) } };
+
+            for (int i = 0; i < 9; i++) {
+                ExpandLayout celllayout = new ExpandLayout(
+                        OrderedLayout.ORIENTATION_HORIZONTAL);
+                celllayout.addComponent((Component) cells[i][0]);
+                celllayout.setComponentAlignment((Component) cells[i][0],
+                        ((Integer) cells[i][1]).intValue(),
+                        ((Integer) cells[i][2]).intValue());
+                layout.addComponent(celllayout);
+                // layout.setComponentAlignment((Component)cells[i][0],
+                // ((Integer)cells[i][1]).intValue(),
+                // ((Integer)cells[i][2]).intValue());
+            }
         } else {
             final Panel panel = new Panel("A Panel with a Layout");
             main.addComponent(panel);
@@ -800,78 +848,94 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         } else if (param != null && param.equals("layout")) {
             Form form = new Form();
             form.setCaption("Form Caption");
-            form.setDescription("This is a description of the Form that is " +
-                    "displayed in the upper part of the form. You normally enter some " +
-                    "descriptive text about the form and its use here.");
-            
-            // Add a field directly to the layout. This field will not be bound to
-            // the data source Item of the form. 
+            form
+                    .setDescription("This is a description of the Form that is "
+                            + "displayed in the upper part of the form. You normally enter some "
+                            + "descriptive text about the form and its use here.");
+
+            // Add a field directly to the layout. This field will not be bound
+            // to
+            // the data source Item of the form.
             form.getLayout().addComponent(new TextField("A Field"));
-            
+
             // Add a field and bind it to an named item property.
             form.addField("another", new TextField("Another Field"));
-            
-            form.setComponentError(new UserError("This is the error indicator of the Form."));
+
+            form.setComponentError(new UserError(
+                    "This is the error indicator of the Form."));
 
             // Set the footer layout and add some text.
             form.setFooter(new OrderedLayout());
-            form.getFooter().addComponent(new Label("This is the footer area of the Form. "+
-                                        "You can use any layout here. This is nice for buttons."));
-            
-            // Add an Ok (commit), Reset (discard), and Cancel buttons for the form.
-            ExpandLayout okbar = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+            form
+                    .getFooter()
+                    .addComponent(
+                            new Label(
+                                    "This is the footer area of the Form. "
+                                            + "You can use any layout here. This is nice for buttons."));
+
+            // Add an Ok (commit), Reset (discard), and Cancel buttons for the
+            // form.
+            ExpandLayout okbar = new ExpandLayout(
+                    OrderedLayout.ORIENTATION_HORIZONTAL);
             okbar.setHeight("25px");
             Button okbutton = new Button("OK", form, "commit");
             okbar.addComponent(okbutton);
-            okbar.setComponentAlignment(okbutton, ExpandLayout.ALIGNMENT_RIGHT, ExpandLayout.ALIGNMENT_TOP);
+            okbar.setComponentAlignment(okbutton, ExpandLayout.ALIGNMENT_RIGHT,
+                    ExpandLayout.ALIGNMENT_TOP);
             okbar.addComponent(new Button("Reset", form, "discard"));
             okbar.addComponent(new Button("Cancel"));
             form.getFooter().addComponent(okbar);
-            
+
             main.addComponent(form);
-        } else 
+        } else
             main.addComponent(new FormExample());
     }
 
     void example_ExpandLayout(Window main, String param) {
         if (param != null && param.equals("centered")) {
             Label widget = new Label("Here is text");
-    
-            ExpandLayout layout = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+
+            ExpandLayout layout = new ExpandLayout(
+                    OrderedLayout.ORIENTATION_HORIZONTAL);
             layout.addComponent(widget);
             layout.expand(widget);
-            layout.setComponentAlignment(widget, OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER, OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
+            layout.setComponentAlignment(widget,
+                    OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER,
+                    OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
             layout.setWidth(100, Sizeable.UNITS_PERCENTAGE);
             layout.setHeight(100, Sizeable.UNITS_PERCENTAGE);
-    
+
             main.setLayout(layout);
-            
+
             return;
         } else if (param != null && param.equals("window")) {
             Window window = new Window("Progress");
             window.setHeight(100, Sizeable.UNITS_PIXELS);
             window.setWidth(200, Sizeable.UNITS_PIXELS);
             main.addWindow(window);
-            
+
             ProgressIndicator progress = new ProgressIndicator(new Float(0.4));
             progress.addStyleName("fullwidth");
             progress.setPollingInterval(1000000);
             progress.setIndeterminate(false);
-    
-            ExpandLayout layout = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+
+            ExpandLayout layout = new ExpandLayout(
+                    OrderedLayout.ORIENTATION_HORIZONTAL);
             layout.setHeight(100, Sizeable.UNITS_PERCENTAGE);
-            layout.setComponentAlignment(progress, OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER, OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
+            layout.setComponentAlignment(progress,
+                    OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER,
+                    OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
             window.setLayout(layout);
             window.addComponent(progress);
-            
+
             return;
         } else if (param != null && param.equals("root")) {
             final Window mainwin = main;
-            
+
             // Layout to switch to
             final OrderedLayout expand2 = new OrderedLayout();
             expand2.addComponent(new Label("I am layout too."));
-            
+
             // Original layout
             final OrderedLayout expand1 = new OrderedLayout();
             Button switchButton = new Button("Switch to other layout");
@@ -883,7 +947,7 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             });
             expand1.addComponent(switchButton);
             main.setLayout(expand1);
-            
+
             return;
         } else if (param != null && param.equals("size")) {
             ExpandLayout layout = new ExpandLayout();
@@ -892,8 +956,10 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
 
             Button button = new Button("This is a button in middle of nowhere");
             layout.addComponent(button);
-            layout.setComponentAlignment(button, OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER, OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
-            
+            layout.setComponentAlignment(button,
+                    OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER,
+                    OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
+
             return;
         }
 
@@ -913,8 +979,8 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             /*
              * FIXME Java 5 -> 1.4 for (int i=0; i<5; i++)
              * table.addContainerProperty("col "+(i+1), Integer.class, 0); for
-             * (int j=0; j<20; j++) table.addItem(new
-             * Object[]{1*j,2*j,3*j,4*j,5*j}, j);
+             * (int j=0; j<20; j++) table.addItem(new Object[]{1j,2j,3j,4j,5j},
+             * j);
              */
             layout.addComponent(table);
 
@@ -951,20 +1017,24 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             // ("images/Mercury_small.png", this)));
         } else if (param.equals("expanding")) {
             // Create the layout
-            ExpandLayout expanding = new ExpandLayout(OrderedLayout.ORIENTATION_VERTICAL);
-            
+            ExpandLayout expanding = new ExpandLayout(
+                    OrderedLayout.ORIENTATION_VERTICAL);
+
             // It is important to set the expanding layout as the root layout
             // of the containing window, in this case the main window, and not
             // use addComponent(), which would place the layout inside the
             // default root layout.
             main.setLayout(expanding);
-            
+
             // Create a tab sheet that fills the expanding layout
             final TabSheet tabsheet = new TabSheet();
-            tabsheet.addTab(new Label("Contents of the first tab"), "First Tab", null);
-            tabsheet.addTab(new Label("Contents of the second tab"), "Second Tab", null);
-            tabsheet.addTab(new Label("Contents of the third tab"), "Third tab", null);
-            
+            tabsheet.addTab(new Label("Contents of the first tab"),
+                    "First Tab", null);
+            tabsheet.addTab(new Label("Contents of the second tab"),
+                    "Second Tab", null);
+            tabsheet.addTab(new Label("Contents of the third tab"),
+                    "Third tab", null);
+
             // Set the tabsheet to scale to full size inside its container
             tabsheet.setWidth(100, Sizeable.UNITS_PERCENTAGE);
             tabsheet.setHeight(100, Sizeable.UNITS_PERCENTAGE);
@@ -976,23 +1046,27 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             expanding.expand(tabsheet);
         } else if (param.equals("ordered")) {
             // Create the layout
-            OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-            
+            OrderedLayout layout = new OrderedLayout(
+                    OrderedLayout.ORIENTATION_VERTICAL);
+
             // It is important to set the expanding layout as the root layout
             // of the containing window, in this case the main window, and not
             // use addComponent(), which would place the layout inside the
             // default root layout.
             main.setLayout(layout);
-            
+
             // Create a tab sheet that fills the expanding layout
             final TabSheet tabsheet = new TabSheet();
-            tabsheet.addTab(new Label("Contents of the first tab"), "First Tab", null);
-            tabsheet.addTab(new Label("Contents of the second tab"), "Second Tab", null);
-            tabsheet.addTab(new Label("Contents of the third tab"), "Third tab", null);
-            
+            tabsheet.addTab(new Label("Contents of the first tab"),
+                    "First Tab", null);
+            tabsheet.addTab(new Label("Contents of the second tab"),
+                    "Second Tab", null);
+            tabsheet.addTab(new Label("Contents of the third tab"),
+                    "Third tab", null);
+
             // Set the tabsheet to scale to full size inside its container
             tabsheet.setWidth(100, Sizeable.UNITS_PERCENTAGE);
-            //tabsheet().setHeight(100, Sizeable.UNITS_PERCENTAGE);
+            // tabsheet().setHeight(100, Sizeable.UNITS_PERCENTAGE);
 
             // Add the tab sheet to the layout as usual
             layout.addComponent(tabsheet);
@@ -1065,43 +1139,45 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         main.addComponent(new Embedded("This is Embedded", new ClassResource(
                 "smiley.jpg", main.getApplication())));
     }
-    
+
     void example_ProgressIndicator(final Window main, String param) {
         if (param != null) {
             if (param.equals("thread")) {
 
                 // Create the indicator
-                final ProgressIndicator indicator = new ProgressIndicator(new Float(0.0));
+                final ProgressIndicator indicator = new ProgressIndicator(
+                        new Float(0.0));
                 main.addComponent(indicator);
-                
+
                 // Set polling frequency to 0.5 seconds.
                 indicator.setPollingInterval(1000);
-                
-                //indicator.addStyleName("invisible");
+
+                // indicator.addStyleName("invisible");
                 final Label text = new Label("-- Not running --");
                 main.addComponent(text);
-                
+
                 // Add a button to start the progress
                 final Button button = new Button("Click to start");
                 main.addComponent(button);
-        
+
                 // Another thread to do some work
                 class WorkThread extends Thread {
-                    public void run () {
+                    public void run() {
                         double current = 0.0;
                         while (true) {
                             // Do some "heavy work"
                             try {
                                 sleep(50); // Sleep for 50 milliseconds
-                            } catch (InterruptedException e) {}
-                            
+                            } catch (InterruptedException e) {
+                            }
+
                             // Grow the progress value until it reaches 1.0.
                             current += 0.01;
-                            if (current>1.0)
+                            if (current > 1.0)
                                 indicator.setValue(new Float(1.0));
-                            else 
+                            else
                                 indicator.setValue(new Float(current));
-                            
+
                             // After the progress is full for a while, stop.
                             if (current > 1.2) {
                                 // Restore the state to initial.
@@ -1112,19 +1188,20 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                         }
                     }
                 }
-                
+
                 // Clicking the button creates and runs a work thread
                 button.addListener(new Button.ClickListener() {
                     public void buttonClick(ClickEvent event) {
                         final WorkThread thread = new WorkThread();
                         thread.start();
-                        
+
                         // The button hides until the work is done.
                         button.setVisible(false);
                     }
                 });
             } else if (param.equals("window")) {
-                // Create a table in the main window to hold items added in the second window
+                // Create a table in the main window to hold items added in the
+                // second window
                 final Table table = new Table();
                 table.setPageLength(5);
                 table.setWidth(100, Sizeable.UNITS_PERCENTAGE);
@@ -1137,33 +1214,38 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 main.getApplication().addWindow(adderWindow);
 
                 // Create selection component to add items to the table
-                final NativeSelect select = new NativeSelect("Select item to add");
+                final NativeSelect select = new NativeSelect(
+                        "Select item to add");
                 select.setImmediate(true);
                 adderWindow.addComponent(select);
-                
+
                 // Add some items to the selection
-                String items[] = new String[]{"-- Select --", "Mercury", "Venus", 
-                        "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"};
-                for (int i=0; i<items.length; i++)
+                String items[] = new String[] { "-- Select --", "Mercury",
+                        "Venus", "Earth", "Mars", "Jupiter", "Saturn",
+                        "Uranus", "Neptune" };
+                for (int i = 0; i < items.length; i++)
                     select.addItem(items[i]);
                 select.setNullSelectionItemId(items[0]);
-                
+
                 // When an item is selected in the second window, add
                 // table in the main window
                 select.addListener(new ValueChangeListener() {
                     public void valueChange(ValueChangeEvent event) {
-                        // If the selected value is something else but null selection item.
+                        // If the selected value is something else but null
+                        // selection item.
                         if (select.getValue() != null) {
-                            // Add the selected item to the table in the main window
-                            table.addItem(new Object[]{select.getValue()}, new Integer(table.size()));
+                            // Add the selected item to the table in the main
+                            // window
+                            table.addItem(new Object[] { select.getValue() },
+                                    new Integer(table.size()));
                         }
                     }
                 });
 
                 // Link to open the selection window
                 Link link = new Link("Click to open second window",
-                                     new ExternalResource(adderWindow.getURL()),
-                                     "_new", 50, 200, Link.TARGET_BORDER_DEFAULT);
+                        new ExternalResource(adderWindow.getURL()), "_new", 50,
+                        200, Link.TARGET_BORDER_DEFAULT);
                 main.addComponent(link);
 
                 // Enable polling to update the main window
@@ -1171,41 +1253,53 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 poller.addStyleName("invisible");
                 main.addComponent(poller);
             } else if (param.equals("centered")) {
-/*                GridLayout grid = new GridLayout(3,3);
-                main.setLayout(grid);
-                grid().setWidth(100, Sizeable.UNITS_PERCENTAGE);
-                
-                ExpandLayout layout2 = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
-                layout2().setWidth(50, Sizeable.UNITS_PERCENTAGE);
-
-                ProgressIndicator poller = new ProgressIndicator(new Float(0.4));
-                poller.setPollingInterval(1000000);
-                poller.setIndeterminate(false);
-                layout2.addComponent(poller);
-
-                grid.addComponent(layout2, 1, 1);
-                */
-
-                //ExpandLayout layout2 = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
-                
-                /*ProgressIndicator poller = new ProgressIndicator(new Float(0.4));
-                poller.setPollingInterval(1000000);
-                poller.setIndeterminate(false);*/
-                /*layout2.addComponent(poller);
-                layout2().setWidth(50, Sizeable.UNITS_PERCENTAGE);*/
-                
-                //layout.setComponentAlignment(poller, OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER, OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
-                /*GridLayout grid = new GridLayout(1,1);
-                grid.addComponent(layout2, 0, 0);
-                grid().setWidth(100, Sizeable.UNITS_PERCENTAGE);*/
-                
-                /*GridLayout layout = new GridLayout(1,1); //OrderedLayout.ORIENTATION_HORIZONTAL);
-                layout.addComponent(poller);
-                //layout.expand(poller);
-                layout.setComponentAlignment(poller, OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER, OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
-                layout().setWidth(100, Sizeable.UNITS_PERCENTAGE);
-                layout().setHeight(100, Sizeable.UNITS_PERCENTAGE);*/
-                
+                /*
+                 * GridLayout grid = new GridLayout(3,3); main.setLayout(grid);
+                 * grid().setWidth(100, Sizeable.UNITS_PERCENTAGE);
+                 * 
+                 * ExpandLayout layout2 = new
+                 * ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+                 * layout2().setWidth(50, Sizeable.UNITS_PERCENTAGE);
+                 * 
+                 * ProgressIndicator poller = new ProgressIndicator(new
+                 * Float(0.4)); poller.setPollingInterval(1000000);
+                 * poller.setIndeterminate(false); layout2.addComponent(poller);
+                 * 
+                 * grid.addComponent(layout2, 1, 1);
+                 */
+
+                // ExpandLayout layout2 = new
+                // ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+                /*
+                 * ProgressIndicator poller = new ProgressIndicator(new
+                 * Float(0.4)); poller.setPollingInterval(1000000);
+                 * poller.setIndeterminate(false);
+                 */
+                /*
+                 * layout2.addComponent(poller); layout2().setWidth(50,
+                 * Sizeable.UNITS_PERCENTAGE);
+                 */
+
+                // layout.setComponentAlignment(poller,
+                // OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER,
+                // OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
+                /*
+                 * GridLayout grid = new GridLayout(1,1);
+                 * grid.addComponent(layout2, 0, 0); grid().setWidth(100,
+                 * Sizeable.UNITS_PERCENTAGE);
+                 */
+
+                /*
+                 * GridLayout layout = new GridLayout(1,1);
+                 * //OrderedLayout.ORIENTATION_HORIZONTAL);
+                 * layout.addComponent(poller); //layout.expand(poller);
+                 * layout.setComponentAlignment(poller,
+                 * OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER,
+                 * OrderedLayout.ALIGNMENT_VERTICAL_CENTER);
+                 * layout().setWidth(100, Sizeable.UNITS_PERCENTAGE);
+                 * layout().setHeight(100, Sizeable.UNITS_PERCENTAGE);
+                 */
+
             }
         } else {
             ProgressIndicator poller = new ProgressIndicator(new Float(0.0));
@@ -1214,30 +1308,30 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             main.addComponent(poller);
         }
     }
-    
+
     void example_CustomLayout(final Window main, String param) {
         Window sub = new Window("Login");
         sub.setModal(true);
         main.addWindow(sub);
-        
+
         // Create the custom layout and set it as the root layout of
         // the containing window.
         final CustomLayout custom = new CustomLayout("layoutname");
         sub.setLayout(custom);
-        
+
         // Create components and bind them to the location tags
         // in the custom layout.
         TextField username = new TextField();
         custom.addComponent(username, "username");
-        
+
         TextField password = new TextField();
         custom.addComponent(password, "password");
-        
+
         final Button ok = new Button("Login");
         custom.addComponent(ok, "okbutton");
-        
+
         final Button deny = new Button("No can do!");
-        
+
         Button.ClickListener listener = new Button.ClickListener() {
             public void buttonClick(ClickEvent event) {
                 // Switch between ok and deny
@@ -1248,9 +1342,9 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                     System.out.println("Changing to ok button.");
                     custom.addComponent(ok, "okbutton");
                 }
-             } 
-         };
-        
+            }
+        };
+
         ok.addListener(listener);
         deny.addListener(listener);
     }
@@ -1259,51 +1353,56 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         OrderedLayout containinglayout = new OrderedLayout();
         main.setLayout(containinglayout);
 
-        GridLayout grid = new GridLayout(4,3);
+        GridLayout grid = new GridLayout(4, 3);
         grid.addStyleName("spacingexample");
         containinglayout.addComponent(grid);
         grid.addComponent(new Label(""), 0, 0);
         grid.addComponent(new Label(""), 1, 0);
-        
-        grid.addComponent(new Label("No spacing:"),0,1);
-        OrderedLayout layout1 = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
-        grid.addComponent(layout1,1,1);
+
+        grid.addComponent(new Label("No spacing:"), 0, 1);
+        OrderedLayout layout1 = new OrderedLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
+        grid.addComponent(layout1, 1, 1);
         layout1.addStyleName("spacingexample");
         layout1.addComponent(new Button("Component 1"));
         layout1.addComponent(new Button("Component 2"));
         layout1.addComponent(new Button("Component 3"));
-        
+
         grid.addComponent(new Label("Horizontal spacing:"), 0, 2);
-        OrderedLayout layout2 = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
-        grid.addComponent(layout2,1,2);
+        OrderedLayout layout2 = new OrderedLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
+        grid.addComponent(layout2, 1, 2);
         layout2.addStyleName("spacingexample");
         layout2.setSpacing(true);
         layout2.addComponent(new Button("Component 1"));
         layout2.addComponent(new Button("Component 2"));
         layout2.addComponent(new Button("Component 3"));
 
-        grid.addComponent(new Label("No spacing:"),2,0);
-        OrderedLayout layout3 = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-        grid.addComponent(layout3,2,1,2,2);
+        grid.addComponent(new Label("No spacing:"), 2, 0);
+        OrderedLayout layout3 = new OrderedLayout(
+                OrderedLayout.ORIENTATION_VERTICAL);
+        grid.addComponent(layout3, 2, 1, 2, 2);
         layout3.addStyleName("spacingexample");
         layout3.addComponent(new Button("Component 1"));
         layout3.addComponent(new Button("Component 2"));
         layout3.addComponent(new Button("Component 3"));
 
-        grid.addComponent(new Label("Vertical spacing:"),3,0);
-        OrderedLayout layout4 = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-        grid.addComponent(layout4,3,1,3,2);
+        grid.addComponent(new Label("Vertical spacing:"), 3, 0);
+        OrderedLayout layout4 = new OrderedLayout(
+                OrderedLayout.ORIENTATION_VERTICAL);
+        grid.addComponent(layout4, 3, 1, 3, 2);
         layout4.addStyleName("spacingexample");
         layout4.setSpacing(true);
         layout4.addComponent(new Button("Component 1"));
         layout4.addComponent(new Button("Component 2"));
         layout4.addComponent(new Button("Component 3"));
-}
+    }
 
     void example_Margin(final Window main, String param) {
-        OrderedLayout hor = new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+        OrderedLayout hor = new OrderedLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
         main.setLayout(hor);
-        
+
         OrderedLayout containinglayout = new OrderedLayout();
         hor.addComponent(containinglayout);
 
@@ -1317,15 +1416,16 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
 
         // Create a layout
         OrderedLayout layout2 = new OrderedLayout();
-        containinglayout.addComponent(new Label("Layout with a special margin element:"));
+        containinglayout.addComponent(new Label(
+                "Layout with a special margin element:"));
         containinglayout.addComponent(layout2);
-        
+
         // Set style name for the layout to allow styling it
         layout2.addStyleName("marginexample2");
-        
+
         // Have margin on all sides around the layout
         layout2.setMargin(true);
-        
+
         // Put something inside the layout
         layout2.addComponent(new Button("Component 1"));
         layout2.addComponent(new Button("Component 2"));
@@ -1335,55 +1435,59 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
     void example_ClientInfo(final Window main, String param) {
         // Get the client identification string
         WebApplicationContext context2 = (WebApplicationContext) getContext();
-        String browserApplication = context2.getBrowser().getBrowserApplication();
-        
+        String browserApplication = context2.getBrowser()
+                .getBrowserApplication();
+
         // Add a browser-dependent style name for the main window
         if (browserApplication.indexOf("Firefox/2") != -1)
             main.addStyleName("firefox2");
-        
+
         // Display the client identification string
         main.addComponent(new Label(browserApplication));
     }
 
     void example_FillInForm(final Window main, String param) {
-       if (param.equals("templates")) {        
-               // Create a custom layout from the fill-in-form.html template.
-               CustomLayout fillinlayout = new CustomLayout("fill-in-form");
-       
-               // The style will set the display to be "inline".
-               fillinlayout.addStyleName("fillinlayout");
-       
-               // Create the fields that occur in the text.
-               TextField field1 = new TextField();
-               TextField field2 = new TextField();
-               fillinlayout.addComponent(field1, "q1");
-               fillinlayout.addComponent(field2, "q2");
-       
-               main.addComponent(fillinlayout);
-       } else {
-               String fillintext = "The <q1> is mightier than <q2>.";
-               int pos = 0;
-               while (pos < fillintext.length()) {
-                       int nexttag = fillintext.indexOf("<", pos);
-                       if (nexttag == -1) {
-                               
-                       }
-               }
-       }
+        if (param.equals("templates")) {
+            // Create a custom layout from the fill-in-form.html template.
+            CustomLayout fillinlayout = new CustomLayout("fill-in-form");
+
+            // The style will set the display to be "inline".
+            fillinlayout.addStyleName("fillinlayout");
+
+            // Create the fields that occur in the text.
+            TextField field1 = new TextField();
+            TextField field2 = new TextField();
+            fillinlayout.addComponent(field1, "q1");
+            fillinlayout.addComponent(field2, "q2");
+
+            main.addComponent(fillinlayout);
+        } else {
+            String fillintext = "The <q1> is mightier than <q2>.";
+            int pos = 0;
+            while (pos < fillintext.length()) {
+                int nexttag = fillintext.indexOf("<", pos);
+                if (nexttag == -1) {
+
+                }
+            }
+        }
     }
 
     void example_Notification(final Window main, String param) {
         final Window sub1 = new Window("");
         main.addWindow(sub1);
-        
+
         sub1.showNotification("The default notification");
-        
-        //Notification notif = new Notification("Title");
+
+        // Notification notif = new Notification("Title");
     }
 
     void example_Print(final Window main, String param) {
-        if (param != null && param.equals("simple")) {        
-            main.addComponent(new Label("<input type='button' onClick='print()' value='Click to Print'/>", Label.CONTENT_XHTML));
+        if (param != null && param.equals("simple")) {
+            main
+                    .addComponent(new Label(
+                            "<input type='button' onClick='print()' value='Click to Print'/>",
+                            Label.CONTENT_XHTML));
             return;
         }
 
@@ -1394,33 +1498,36 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
             public void buttonClick(ClickEvent event) {
                 // Create a window that contains stuff you want to print.
                 Window printWindow = new Window("Window to Print");
-                
+
                 // Have some content to print.
-                printWindow.addComponent(new Label("Here's some dynamic content."));
-                
+                printWindow.addComponent(new Label(
+                        "Here's some dynamic content."));
+
                 // To execute the print() JavaScript, we need to run it
                 // from a custom layout.
                 CustomLayout scriptLayout = new CustomLayout("printpage");
-                printWindow.addComponent (scriptLayout);
-                
+                printWindow.addComponent(scriptLayout);
+
                 // Add the printing window as an application-level window.
                 main.getApplication().addWindow(printWindow);
-        
+
                 // Open the printing window as a new browser window
                 main.open(new ExternalResource(printWindow.getURL()), "_new");
-            } 
+            }
         });
 
-        //main.addComponent(new Label("<p>Print this!</p>\n<script type='text/javascript'>print();</script>", Label.CONTENT_XHTML));
+        // main.addComponent(new Label(
+        // "<p>Print this!</p>\n<script type='text/javascript'>print();</script>"
+        // , Label.CONTENT_XHTML));
     }
 
     void example_RichTextField(final Window main, String param) {
         // Create the rich text area
         final RichTextArea rtarea = new RichTextArea();
-        
+
         // Set initial content as HTML
         rtarea.setValue("<h1>Hello</h1>\n<p>This contains some text.</p>");
-        
+
         // Show the text edited in the rich text area as HTML.
         final Button show = new Button("Show HTML");
         final Label html = new Label((String) rtarea.getValue());
@@ -1439,33 +1546,39 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         try {
             // Create a database connection
             Class.forName("org.hsqldb.jdbcDriver");
-            final Connection connection = DriverManager.getConnection("jdbc:hsqldb:mem:qcexample", "sa", "");
-            
+            final Connection connection = DriverManager.getConnection(
+                    "jdbc:hsqldb:mem:qcexample", "sa", "");
+
             // Create an example table and put some data in it.
             Statement st = connection.createStatement();
-            st.executeQuery("CREATE TABLE Prisoners (id INTEGER, name VARCHAR)");
+            st
+                    .executeQuery("CREATE TABLE Prisoners (id INTEGER, name VARCHAR)");
             st.close();
-            for (int i=0; i<100; i++) {
+            for (int i = 0; i < 100; i++) {
                 st = connection.createStatement();
-                st.executeQuery("INSERT INTO Prisoners (id, name) VALUES ("+i+",'I am number "+(i+1)+"')");
+                st.executeQuery("INSERT INTO Prisoners (id, name) VALUES (" + i
+                        + ",'I am number " + (i + 1) + "')");
                 st.close();
             }
-            
+
             // Query the database
-            final QueryContainer qc = new QueryContainer("SELECT id,name FROM Prisoners", connection);
-            
+            final QueryContainer qc = new QueryContainer(
+                    "SELECT id,name FROM Prisoners", connection);
+
             // Create a component for selecting a query result item.
             Select select = new Select("Select an item");
-            
-            // The items shown in the selection component are obtained from the query.
+
+            // The items shown in the selection component are obtained from the
+            // query.
             select.setContainerDataSource(qc);
-            
-            // The item captions are obtained from a field in the query result. 
+
+            // The item captions are obtained from a field in the query result.
             select.setItemCaptionMode(Select.ITEM_CAPTION_MODE_PROPERTY);
-            
-            // Set the name of the field from which the item captions are obtained.
+
+            // Set the name of the field from which the item captions are
+            // obtained.
             select.setItemCaptionPropertyId("name");
-        
+
             // When selection changes, display the selected item.
             select.setImmediate(true);
             final Label selection = new Label("Currently selected: -");
@@ -1473,17 +1586,19 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
                 public void valueChange(ValueChangeEvent event) {
                     // Get the item id of the currently selected item
                     Integer itemId = (Integer) event.getProperty().getValue();
-                    
-                    // Use the item ID to get the actual row from the query result.
+
+                    // Use the item ID to get the actual row from the query
+                    // result.
                     Item qrItem = qc.getItem(itemId);
-                    
+
                     // Display the item ID
-                    selection.setValue("Currently selected: result row "+itemId.intValue() +
-                                       " (id="+qrItem.getItemProperty("id")+", " +
-                                       "name="+qrItem.getItemProperty("name")+")");
+                    selection.setValue("Currently selected: result row "
+                            + itemId.intValue() + " (id="
+                            + qrItem.getItemProperty("id") + ", " + "name="
+                            + qrItem.getItemProperty("name") + ")");
                 }
             });
-            
+
             main.addComponent(select);
             main.addComponent(selection);
         } catch (SQLException e) {
@@ -1497,18 +1612,19 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         // Create a menu bar
         final MenuBar menubar = new MenuBar();
         main.addComponent(menubar);
-        
+
         // A feedback component
         final Label selection = new Label("");
         main.addComponent(selection);
-        
+
         // Define a common menu command for all the menu items.
         MenuBar.Command mycommand = new MenuBar.Command() {
             public void menuSelected(MenuItem selectedItem) {
-                selection.setValue("Ordered a " + selectedItem.getText() + " from menu.");
-            }  
+                selection.setValue("Ordered a " + selectedItem.getText()
+                        + " from menu.");
+            }
         };
-        
+
         // Put some items in the menu hierarchically
         MenuBar.MenuItem beverages = menubar.addItem("Beverages", null, null);
         MenuBar.MenuItem hot_beverages = beverages.addItem("Hot", null, null);
@@ -1516,14 +1632,14 @@ public class BookTestApplication extends com.itmill.toolkit.Application {
         hot_beverages.addItem("Coffee", null, mycommand);
         MenuBar.MenuItem cold_beverages = beverages.addItem("Cold", null, null);
         cold_beverages.addItem("Milk", null, mycommand);
-        
+
         // Another top-level item
         MenuBar.MenuItem snacks = menubar.addItem("Snacks", null, null);
         snacks.addItem("Weisswurst", null, mycommand);
         snacks.addItem("Salami", null, mycommand);
-        
+
         // Yet another top-level item
         MenuBar.MenuItem services = menubar.addItem("Services", null, null);
         services.addItem("Car Service", null, mycommand);
-   }
+    }
 }
index eaea83062cd93acd826300de204ef7bd0dfa304a..7ff510a26cb4dee805c815c5e42628b5ed502fe7 100644 (file)
@@ -1,26 +1,36 @@
 package com.itmill.toolkit.tests.book;
 
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
 import com.itmill.toolkit.Application;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.Button;
+import com.itmill.toolkit.ui.ProgressIndicator;
+import com.itmill.toolkit.ui.Table;
+import com.itmill.toolkit.ui.TextField;
+import com.itmill.toolkit.ui.Window;
 import com.itmill.toolkit.ui.Button.ClickEvent;
 
-public class ChatApplication extends Application implements Button.ClickListener {
-    /* ChatApplication instances of different users.
-     * Warning: a hack, not safe, because sessions can expire. */
+public class ChatApplication extends Application implements
+        Button.ClickListener {
+    /*
+     * ChatApplication instances of different users. Warning: a hack, not safe,
+     * because sessions can expire.
+     */
     static List users = new ArrayList();
-    
+
     /* Messages as a shared list. */
-    static List messages  = new ArrayList();
-    int         localSize = 0;
+    static List messages = new ArrayList();
+    int localSize = 0;
 
     /* User interface. */
-    Table       messageTable = new Table();
-    TextField   username     = new TextField("Username:");
-    TextField   message      = new TextField("Message:");
+    Table messageTable = new Table();
+    TextField username = new TextField("Username:");
+    TextField message = new TextField("Message:");
 
     public void init() {
-        final Window main = new Window ("Chat");
+        final Window main = new Window("Chat");
         setMainWindow(main);
         setTheme("tests-magi");
         users.add(this);
@@ -31,9 +41,9 @@ public class ChatApplication extends Application implements Button.ClickListener
         messageTable.addContainerProperty("Sender", String.class, "");
         messageTable.addContainerProperty("Message", String.class, "");
         updateTable();
-        
+
         main.addComponent(message);
-        
+
         Button send = new Button("Send");
         send.addListener(this);
         main.addComponent(send);
@@ -45,14 +55,15 @@ public class ChatApplication extends Application implements Button.ClickListener
     }
 
     public void buttonClick(ClickEvent event) {
-        synchronized(users) {
+        synchronized (users) {
             // Create the new message in the shared list.
-            messages.add(new String[]{new String((String) username.getValue()),
-                                      new String((String) message.getValue())});
+            messages.add(new String[] {
+                    new String((String) username.getValue()),
+                    new String((String) message.getValue()) });
 
             // Update the message tables for all users.
-            for (Iterator i = users.iterator();i.hasNext();) 
-                ((ChatApplication)i.next()).updateTable();
+            for (Iterator i = users.iterator(); i.hasNext();)
+                ((ChatApplication) i.next()).updateTable();
         }
     }
 
@@ -62,7 +73,7 @@ public class ChatApplication extends Application implements Button.ClickListener
 
         // Add new messages to the table
         while (localSize < messages.size())
-            messageTable.addItem((Object[])messages.get(localSize++),
-                                 new Integer(localSize-1));
+            messageTable.addItem((Object[]) messages.get(localSize++),
+                    new Integer(localSize - 1));
     }
 }
index 2ed44785bd9c430bf9fc006d23bc66140935e1ee..31db87beebc3cf86bef9e7ea12de355c5a3805da 100644 (file)
@@ -7,7 +7,6 @@ package com.itmill.toolkit.tests.book;
 import com.itmill.toolkit.event.Action;
 import com.itmill.toolkit.event.ShortcutAction;
 import com.itmill.toolkit.event.Action.Handler;
-import com.itmill.toolkit.ui.AbstractField;
 import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CustomComponent;
 import com.itmill.toolkit.ui.FormLayout;
@@ -25,7 +24,8 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
     TextField password = new TextField("Password");
     OrderedLayout buttons = new FormLayout();
 
-    // Create buttons and define their listener methods. Here we use parameterless
+    // Create buttons and define their listener methods. Here we use
+    // parameterless
     // methods so that we can use same methods for both click events and
     // keyboard actions.
     Button ok = new Button("OK", this, "okHandler");
@@ -33,13 +33,12 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
 
     // Have the unmodified Enter key cause an event
     Action action_ok = new ShortcutAction("Default key",
-                                          ShortcutAction.KeyCode.ENTER,
-                                          null);
+            ShortcutAction.KeyCode.ENTER, null);
 
     // Have the C key modified with Alt cause an event
     Action action_cancel = new ShortcutAction("Alt+C",
-                                              ShortcutAction.KeyCode.C,
-                                              new int[] { ShortcutAction.ModifierKey.ALT });
+            ShortcutAction.KeyCode.C,
+            new int[] { ShortcutAction.ModifierKey.ALT });
 
     Window window = null;
 
@@ -73,7 +72,7 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
      */
     public Action[] getActions(Object target, Object sender) {
         System.out.println("getActions()");
-        return new Action[] {action_ok, action_cancel};
+        return new Action[] { action_ok, action_cancel };
     }
 
     /**
@@ -89,14 +88,14 @@ public class DefaultButtonExample extends CustomComponent implements Handler {
 
     public void okHandler() {
         // Do something: report the click
-        formlayout.addComponent(new Label("OK clicked. "+
-                                          "User="+username.getValue()+
-                                          ", password="+password.getValue()));
+        formlayout.addComponent(new Label("OK clicked. " + "User="
+                + username.getValue() + ", password=" + password.getValue()));
         //  
     }
 
     public void cancelHandler() {
         // Do something: report the click
-        formlayout.addComponent(new Label("Cancel clicked. User="+username.getValue()+", password="+password.getValue()));
+        formlayout.addComponent(new Label("Cancel clicked. User="
+                + username.getValue() + ", password=" + password.getValue()));
     }
 }
index 21258880045a950953ba0e0a8e97c5fd4585b383..de7bb914203f30556dd9982fd66a6cee035dba54 100644 (file)
@@ -30,9 +30,9 @@ import com.itmill.toolkit.ui.TextField;
 public class FormExample extends CustomComponent {
     /** Contact information data model. */
     public class Contact {
-        String name       = "";
-        String address    = "";
-        int    postalCode = 20540;
+        String name = "";
+        String address = "";
+        int postalCode = 20540;
         String city;
     }
 
@@ -104,10 +104,10 @@ public class FormExample extends CustomComponent {
 
             if (pid.equals("name"))
                 return new TextField("Name");
-            
+
             if (pid.equals("address"))
                 return new TextField("Street Address");
-            
+
             if (pid.equals("postalCode")) {
                 TextField field = new TextField("Postal Code");
                 field.setColumns(5);
@@ -121,7 +121,8 @@ public class FormExample extends CustomComponent {
                         return ((String) value).matches("[0-9]{5}");
                     }
 
-                    public void validate(Object value) throws InvalidValueException {
+                    public void validate(Object value)
+                            throws InvalidValueException {
                         if (!isValid(value)) {
                             throw new InvalidValueException(
                                     "Postal code must be a number 10000-99999.");
@@ -131,7 +132,7 @@ public class FormExample extends CustomComponent {
                 field.addValidator(postalCodeValidator);
                 return field;
             }
-            
+
             if (pid.equals("city")) {
                 Select select = new Select("City");
                 final String cities[] = new String[] { "Amsterdam", "Berlin",
@@ -157,7 +158,8 @@ public class FormExample extends CustomComponent {
 
         // Set form caption and description texts.
         form.setCaption("Contact Information");
-        form.setDescription("Please enter valid name and address. Fields marked with * are required.");
+        form
+                .setDescription("Please enter valid name and address. Fields marked with * are required.");
 
         // Use custom field factory to create the fields in the form.
         form.setFieldFactory(new MyFieldFactory());
@@ -191,7 +193,7 @@ public class FormExample extends CustomComponent {
         // necessary for the validation of the fields to occur immediately when
         // the input focus changes and not just on commit.
         form.setImmediate(true);
-        
+
         // Set buffering so that commit() must be called for the form
         // before input is written to the data. (Input is not written
         // immediately through).
@@ -199,7 +201,8 @@ public class FormExample extends CustomComponent {
         form.setReadThrough(false);
 
         // Add Commit and Discard controls to the form.
-        ExpandLayout footer = new ExpandLayout(OrderedLayout.ORIENTATION_HORIZONTAL);
+        ExpandLayout footer = new ExpandLayout(
+                OrderedLayout.ORIENTATION_HORIZONTAL);
 
         // The Commit button calls form.commit().
         Button commit = new Button("Commit", form, "commit");
@@ -208,7 +211,7 @@ public class FormExample extends CustomComponent {
         Button discard = new Button("Discard", form, "discard");
         footer.addComponent(commit);
         footer.setComponentAlignment(commit, ExpandLayout.ALIGNMENT_RIGHT,
-                                     ExpandLayout.ALIGNMENT_TOP);
+                ExpandLayout.ALIGNMENT_TOP);
         footer.setHeight("25px");
         footer.addComponent(discard);
         form.setFooter(footer);
index 8d9c0e86e28baf14680924bbd4341d75bac203d3..a44ba151819e367725855c4ab207c457e269952e 100644 (file)
@@ -29,7 +29,7 @@ public class FormExample2 extends CustomComponent {
     public class PersonBean {
         String name = "";
         String city = "";
-        
+
         public void setName(String name) {
             this.name = name;
         }
@@ -91,7 +91,8 @@ public class FormExample2 extends CustomComponent {
 
         // Set form caption and description texts
         form.setCaption("Contact Information");
-        form.setDescription("Please specify name of the person and the city where the person lives in.");
+        form
+                .setDescription("Please specify name of the person and the city where the person lives in.");
 
         // Use the custom field factory to create the fields in the form.
         form.setFieldFactory(new MyFieldFactory());
@@ -110,7 +111,7 @@ public class FormExample2 extends CustomComponent {
         order.add("name");
         order.add("city");
         form.setVisibleItemProperties(order);
-        
+
         form.getField("name").setRequired(true);
         form.getField("name").setRequiredError("You must enter a name.");
         form.getField("city").setRequired(true);
index 34ca740a8f3c304f4e9e1cd6ba20f74a6d6e98e7..4c27700729c2e84a97112d8ae64b9a5d1e80f9fd 100644 (file)
@@ -1,12 +1,19 @@
 package com.itmill.toolkit.tests.book;
 
-import java.awt.*;
+import java.awt.Color;
+import java.awt.Graphics;
 import java.awt.image.BufferedImage;
-import java.io.*;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
 import java.net.URL;
 import java.util.Map;
+
 import javax.imageio.ImageIO;
-import com.itmill.toolkit.terminal.*;
+
+import com.itmill.toolkit.terminal.DownloadStream;
+import com.itmill.toolkit.terminal.ParameterHandler;
+import com.itmill.toolkit.terminal.URIHandler;
 
 /**
  * Demonstrates handling URI parameters and the URI itself to create a dynamic
@@ -21,7 +28,7 @@ public class MyDynamicResource implements URIHandler, ParameterHandler {
     public void handleParameters(Map parameters) {
         // Get and store the passed HTTP parameter.
         if (parameters.containsKey("text"))
-            textToDisplay = ((String[])parameters.get("text"))[0]; 
+            textToDisplay = ((String[]) parameters.get("text"))[0];
     }
 
     /**
@@ -36,20 +43,21 @@ public class MyDynamicResource implements URIHandler, ParameterHandler {
         // URI handlers or the Application to handle the response.
         if (!relativeUri.startsWith("myresource"))
             return null;
-        
+
         // Create an image and draw some background on it.
-        BufferedImage image = new BufferedImage (200, 200, BufferedImage.TYPE_INT_RGB);
+        BufferedImage image = new BufferedImage(200, 200,
+                BufferedImage.TYPE_INT_RGB);
         Graphics drawable = image.getGraphics();
         drawable.setColor(Color.lightGray);
-        drawable.fillRect(0,0,200,200);
+        drawable.fillRect(0, 0, 200, 200);
         drawable.setColor(Color.yellow);
-        drawable.fillOval(25,25,150,150);
+        drawable.fillOval(25, 25, 150, 150);
         drawable.setColor(Color.blue);
-        drawable.drawRect(0,0,199,199);
-        
+        drawable.drawRect(0, 0, 199, 199);
+
         // Use the parameter to create dynamic content.
         drawable.setColor(Color.black);
-        drawable.drawString("Text: "+textToDisplay, 75, 100);
+        drawable.drawString("Text: " + textToDisplay, 75, 100);
 
         try {
             // Write the image to a buffer.
@@ -57,8 +65,9 @@ public class MyDynamicResource implements URIHandler, ParameterHandler {
             ImageIO.write(image, "png", imagebuffer);
 
             // Return a stream from the buffer.
-            ByteArrayInputStream istream = new ByteArrayInputStream(imagebuffer.toByteArray());
-            return new DownloadStream (istream,null,null);
+            ByteArrayInputStream istream = new ByteArrayInputStream(imagebuffer
+                    .toByteArray());
+            return new DownloadStream(istream, null, null);
         } catch (IOException e) {
             return null;
         }
index a9215f09b5b25653463f47cba57631a727da9d24..2702bbf087397a94ace6dfa9224b9a97c299f8a2 100644 (file)
@@ -9,13 +9,17 @@ import java.io.FileOutputStream;
 import java.io.OutputStream;
 
 import com.itmill.toolkit.terminal.FileResource;
-import com.itmill.toolkit.ui.*;
+import com.itmill.toolkit.ui.CustomComponent;
+import com.itmill.toolkit.ui.Embedded;
+import com.itmill.toolkit.ui.Label;
+import com.itmill.toolkit.ui.Panel;
+import com.itmill.toolkit.ui.Upload;
 
-public class MyUploader extends CustomComponent
-implements Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
-    Panel root;         // Root element for contained components.
-    Panel imagePanel;   // Panel that contains the uploaded image.
-    File  file;         // File to write to.
+public class MyUploader extends CustomComponent implements
+        Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
+    Panel root; // Root element for contained components.
+    Panel imagePanel; // Panel that contains the uploaded image.
+    File file; // File to write to.
 
     MyUploader() {
         root = new Panel("My Upload Component");
@@ -30,7 +34,8 @@ implements Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
         upload.addListener((Upload.FailedListener) this);
 
         root.addComponent(upload);
-        root.addComponent(new Label("Click 'Browse' to select a file and then click 'Upload'."));
+        root.addComponent(new Label(
+                "Click 'Browse' to select a file and then click 'Upload'."));
 
         // Create a panel for displaying the uploaded file (image).
         imagePanel = new Panel("Uploaded image");
@@ -59,9 +64,10 @@ implements Upload.SucceededListener, Upload.FailedListener, Upload.Receiver {
         // Log the upload on screen.
         root.addComponent(new Label("File " + event.getFilename()
                 + " of type '" + event.getMIMEType() + "' uploaded."));
-        
+
         // Display the uploaded file in the image panel.
-        final FileResource imageResource = new FileResource(file, getApplication());
+        final FileResource imageResource = new FileResource(file,
+                getApplication());
         imagePanel.removeAllComponents();
         imagePanel.addComponent(new Embedded("", imageResource));
     }
index 0659ebb91045a8bed04b4cecf39e5885ec10cdac..9b5a39380b367c971c722f319c840ed4b1e9d83e 100644 (file)
@@ -4,8 +4,6 @@
 
 package com.itmill.toolkit.tests.book;
 
-import java.text.MessageFormat;
-
 import com.itmill.toolkit.data.Property;
 import com.itmill.toolkit.data.Validator;
 import com.itmill.toolkit.data.Property.ValueChangeEvent;
@@ -19,7 +17,8 @@ import com.itmill.toolkit.ui.TextField;
 public class SSNField extends CustomComponent implements
         Property.ValueChangeListener {
     OrderedLayout layout = new FormLayout();
-    // new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); //;new FormLayout();
+    // new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL); //;new
+    // FormLayout();
     TextField myfield;
     Label myerror;
 
@@ -40,7 +39,7 @@ public class SSNField extends CustomComponent implements
         public void validate(Object value) throws InvalidValueException {
             final String ssn = (String) value;
             if (ssn.length() == 0)
-               return;
+                return;
 
             if (ssn.length() != 11)
                 throw new InvalidValueException("Invalid SSN length");
@@ -66,8 +65,10 @@ public class SSNField extends CustomComponent implements
         /* Create and set the validator object for the field. */
         myfield.addValidator(new SSNValidator());
 
-        /* ValueChageEvent will be generated immediately when the component
-           loses focus. */
+        /*
+         * ValueChageEvent will be generated immediately when the component
+         * loses focus.
+         */
         myfield.setImmediate(true);
 
         /* Listen for ValueChangeEvent events. */
index ddb8872a130968382d95fa6f880dbf06c0e7438a..29190f0f3dce1d39152e73975cd0518a71b377e2 100644 (file)
@@ -11,42 +11,48 @@ public class TableCellStyle extends CustomComponent {
     public TableCellStyle() {
         Table table = new Table("Table with Cell Styles");
         table.addStyleName("checkerboard");
-        
+
         // Add some columns in the table. In this example, the property IDs
         // of the container are integers so we can determine the column number
         // easily.
-        table.addContainerProperty("0", String.class, null, "", null, null); // Row header
-        for (int i=0; i<8; i++)
-            table.addContainerProperty(""+(i+1), String.class, null,
-                                       String.valueOf((char) (65+i)), null, null);
-        
+        table.addContainerProperty("0", String.class, null, "", null, null); // Row
+                                                                             // header
+        for (int i = 0; i < 8; i++)
+            table.addContainerProperty("" + (i + 1), String.class, null, String
+                    .valueOf((char) (65 + i)), null, null);
+
         // Add some items in the table.
-        table.addItem(new Object[]{"1", "R", "N", "B", "Q", "K", "B", "N", "R"}, new Integer(0));
-        table.addItem(new Object[]{"2", "P", "P", "P", "P", "P", "P", "P", "P"}, new Integer(1));
-        for (int i=2; i<6; i++)
-            table.addItem(new Object[]{String.valueOf(i+1), "", "", "", "", "", "", "", ""}, new Integer(i));
-        table.addItem(new Object[]{"7", "P", "P", "P", "P", "P", "P", "P", "P"}, new Integer(6));
-        table.addItem(new Object[]{"8", "R", "N", "B", "Q", "K", "B", "N", "R"}, new Integer(7));
+        table.addItem(new Object[] { "1", "R", "N", "B", "Q", "K", "B", "N",
+                "R" }, new Integer(0));
+        table.addItem(new Object[] { "2", "P", "P", "P", "P", "P", "P", "P",
+                "P" }, new Integer(1));
+        for (int i = 2; i < 6; i++)
+            table.addItem(new Object[] { String.valueOf(i + 1), "", "", "", "",
+                    "", "", "", "" }, new Integer(i));
+        table.addItem(new Object[] { "7", "P", "P", "P", "P", "P", "P", "P",
+                "P" }, new Integer(6));
+        table.addItem(new Object[] { "8", "R", "N", "B", "Q", "K", "B", "N",
+                "R" }, new Integer(7));
         table.setPageLength(8);
-        
+
         // Set cell style generator
         table.setCellStyleGenerator(new Table.CellStyleGenerator() {
             public String getStyle(Object itemId, Object propertyId) {
-                int row = ((Integer)itemId).intValue();
-                int col = Integer.parseInt((String)propertyId);
-                
+                int row = ((Integer) itemId).intValue();
+                int col = Integer.parseInt((String) propertyId);
+
                 // The first column.
                 if (col == 0)
                     return "rowheader";
-                
+
                 // Other cells.
-                if ((row+col)%2 == 1)
+                if ((row + col) % 2 == 1)
                     return "black";
                 else
                     return "white";
             }
         });
-        
+
         setCompositionRoot(table);
     }
 }
index 76c4f4e100d283ba628e7ce8077dcff2b2af00b8..5941d474ba3b190c257682faf33bd299f886f0b1 100644 (file)
@@ -10,50 +10,45 @@ import java.util.GregorianCalendar;
 
 import com.itmill.toolkit.data.Property;
 import com.itmill.toolkit.data.Property.ValueChangeEvent;
-import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CheckBox;
 import com.itmill.toolkit.ui.CustomComponent;
-import com.itmill.toolkit.ui.Label;
 import com.itmill.toolkit.ui.OrderedLayout;
-import com.itmill.toolkit.ui.RichTextArea;
 import com.itmill.toolkit.ui.Table;
-import com.itmill.toolkit.ui.TextField;
-import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class TableEditable extends CustomComponent {
     /* A layout needed for the example. */
     OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-    
+
     TableEditable() {
         setCompositionRoot(layout);
 
         // Create a table. It is by default not editable.
         final Table table = new Table();
-        
+
         // Define the names and data types of columns.
-        table.addContainerProperty("Date",     Date.class,  null);
-        table.addContainerProperty("Work",     Boolean.class, null);
-        table.addContainerProperty("Comments", String.class,  null);
-        
+        table.addContainerProperty("Date", Date.class, null);
+        table.addContainerProperty("Work", Boolean.class, null);
+        table.addContainerProperty("Comments", String.class, null);
+
         // Add a few items in the table.
-        for (int i=0; i<100; i++) {
-            Calendar calendar = new GregorianCalendar(2008,0,1);
+        for (int i = 0; i < 100; i++) {
+            Calendar calendar = new GregorianCalendar(2008, 0, 1);
             calendar.add(Calendar.DAY_OF_YEAR, i);
-            
+
             // Create the table row.
-            table.addItem(new Object[] {calendar.getTime(),
-                                        new Boolean(false),
-                                        ""},
-                          new Integer(i)); // Item identifier
+            table.addItem(new Object[] { calendar.getTime(),
+                    new Boolean(false), "" }, new Integer(i)); // Item
+                                                               // identifier
         }
-        
+
         table.setPageLength(8);
         layout.addComponent(table);
-        
+
         final CheckBox switchEditable = new CheckBox("Editable");
         switchEditable.addListener(new Property.ValueChangeListener() {
             public void valueChange(ValueChangeEvent event) {
-                table.setEditable(((Boolean)event.getProperty().getValue()).booleanValue());
+                table.setEditable(((Boolean) event.getProperty().getValue())
+                        .booleanValue());
             }
         });
         switchEditable.setImmediate(true);
index 1029eabee299b1445dda2fb8610ae4ce20403dab..f8fd7ebd8fba893933d7c849b8c0e74ebbe35075 100644 (file)
@@ -22,29 +22,29 @@ import com.itmill.toolkit.ui.OrderedLayout;
 import com.itmill.toolkit.ui.Table;
 
 /**
- *  Shows how to bind a bean to a table and make it editable. 
+ * Shows how to bind a bean to a table and make it editable.
  */
 public class TableEditableBean extends CustomComponent {
     /**
      * Let's have a simple example bean.
      */
-       public class MyBean {
-               boolean selected;
-               String  text;
-               
-               public MyBean() {
-                       this.selected = false;
-                       this.text     = "";
-               }
-
-               public boolean isSelected() {
-                   System.out.println("isSelected() called: " + selected);
+    public class MyBean {
+        boolean selected;
+        String text;
+
+        public MyBean() {
+            this.selected = false;
+            this.text = "";
+        }
+
+        public boolean isSelected() {
+            System.out.println("isSelected() called: " + selected);
             return selected;
         }
 
         public void setSelected(boolean selected) {
             this.selected = selected;
-            System.out.println("setSelected1("+selected+") called.");
+            System.out.println("setSelected1(" + selected + ") called.");
         }
 
         public String getText() {
@@ -54,26 +54,26 @@ public class TableEditableBean extends CustomComponent {
 
         public void setText(String text) {
             this.text = text;
-            System.out.println("setText("+text+") called.");
+            System.out.println("setText(" + text + ") called.");
         }
-       };
+    };
 
     /**
      * Custom field factory that sets the fields as immediate for debugging
      * purposes. This is not normally necessary, unless you want to have some
      * interaction that requires it.
      */
-       public class MyFieldFactory extends BaseFieldFactory {
-           public Field createField(Class type, Component uiContext) {
-               // Let the BaseFieldFactory create the fields
-               Field field = super.createField(type, uiContext);
-               
-               // ...and just set them as immediate
-               ((AbstractField)field).setImmediate(true);
-               
+    public class MyFieldFactory extends BaseFieldFactory {
+        public Field createField(Class type, Component uiContext) {
+            // Let the BaseFieldFactory create the fields
+            Field field = super.createField(type, uiContext);
+
+            // ...and just set them as immediate
+            ((AbstractField) field).setImmediate(true);
+
             return field;
-           }
-       }
+        }
+    }
 
     /**
      * This is a custom container that allows adding BeanItems inside it. The
@@ -83,13 +83,13 @@ public class TableEditableBean extends CustomComponent {
      * Most of the interface methods are implemented with just dummy
      * implementations, as they are not needed in this example.
      */
-       public class MyContainer implements Container {
+    public class MyContainer implements Container {
         Item[] items;
-        int    current = 0;
-           
-           public MyContainer() {
-               items = new Item[100]; // Yeah this is just a test
-           }
+        int current = 0;
+
+        public MyContainer() {
+            items = new Item[100]; // Yeah this is just a test
+        }
 
         public boolean addContainerProperty(Object propertyId, Class type,
                 Object defaultValue) throws UnsupportedOperationException {
@@ -105,8 +105,8 @@ public class TableEditableBean extends CustomComponent {
         }
 
         /**
-         *  This addItem method is specific for this container and allows adding
-         *  BeanItem objects. The BeanItems must be bound to MyBean objects.   
+         * This addItem method is specific for this container and allows adding
+         * BeanItem objects. The BeanItems must be bound to MyBean objects.
          */
         public void addItem(BeanItem item) throws UnsupportedOperationException {
             items[current++] = item;
@@ -114,7 +114,7 @@ public class TableEditableBean extends CustomComponent {
 
         public boolean containsId(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < 100)
                     return items[pos] != null;
             }
@@ -128,10 +128,10 @@ public class TableEditableBean extends CustomComponent {
          */
         public Property getContainerProperty(Object itemId, Object propertyId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < 100) {
                     Item item = items[pos];
-                    
+
                     // The BeanItem provides the property objects for the items.
                     return item.getItemProperty(propertyId);
                 }
@@ -143,14 +143,14 @@ public class TableEditableBean extends CustomComponent {
         public Collection getContainerPropertyIds() {
             // This container can contain only BeanItems bound to MyBeans.
             Item item = new BeanItem(new MyBean());
-            
+
             // The BeanItem knows how to get the property names from the bean.
             return item.getItemPropertyIds();
         }
 
         public Item getItem(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < 100)
                     return items[pos];
             }
@@ -159,7 +159,7 @@ public class TableEditableBean extends CustomComponent {
 
         public Collection getItemIds() {
             Vector ids = new Vector();
-            for (int i=0; i<100; i++)
+            for (int i = 0; i < 100; i++)
                 ids.add(Integer.valueOf(i));
             return ids;
         }
@@ -185,48 +185,51 @@ public class TableEditableBean extends CustomComponent {
         public int size() {
             return current;
         }
-           
-       }
+
+    }
 
     TableEditableBean() {
         /* A layout needed for the example. */
-        OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
+        OrderedLayout layout = new OrderedLayout(
+                OrderedLayout.ORIENTATION_VERTICAL);
         setCompositionRoot(layout);
 
         // Create a table. It is by default not editable.
         final Table table = new Table();
         layout.addComponent(table);
         table.setPageLength(8);
-        
+
         // Use the custom container as the data source
         MyContainer myContainer = new MyContainer();
         table.setContainerDataSource(myContainer);
-        
+
         // Add a few items in the table.
-        for (int i=0; i<5; i++) {
+        for (int i = 0; i < 5; i++) {
             // Create the bean
-               MyBean item = new MyBean();
-               item.setText("MyBean " + i);
-               
-               // Have an Item that is bound to the bean
-               BeanItem bitem = new BeanItem(item);
-               
-               // Add the item directly to the container using the custom addItem()
+            MyBean item = new MyBean();
+            item.setText("MyBean " + i);
+
+            // Have an Item that is bound to the bean
+            BeanItem bitem = new BeanItem(item);
+
+            // Add the item directly to the container using the custom addItem()
             // method. We could otherwise add it to the Table as well, but
             // the Container interface of Table does not allow adding items
-               // as such, just item IDs.
-               myContainer.addItem(bitem);
+            // as such, just item IDs.
+            myContainer.addItem(bitem);
         }
-        
+
         // Use custom field factory that sets the checkboxes in immediate mode.
         // This is just for debugging purposes and is not normally necessary.
         table.setFieldFactory(new MyFieldFactory());
 
-        // Have a check box to switch the table between normal and editable mode.
+        // Have a check box to switch the table between normal and editable
+        // mode.
         final CheckBox switchEditable = new CheckBox("Editable");
         switchEditable.addListener(new Property.ValueChangeListener() {
             public void valueChange(ValueChangeEvent event) {
-                table.setEditable(((Boolean)event.getProperty().getValue()).booleanValue());
+                table.setEditable(((Boolean) event.getProperty().getValue())
+                        .booleanValue());
             }
         });
         switchEditable.setImmediate(true);
index 80c5dad3b0c3e418cd9456b893eced295c613cef..4d888eaeae72653a9ca4ace39fca74c8d81cfa3b 100644 (file)
@@ -26,22 +26,28 @@ public class TableExample extends CustomComponent {
         layout.addComponent(table);
 
         /* Define the names, data types, and default values of columns. */
-        table.addContainerProperty("First Name", String.class,  "(no first name)");
-        table.addContainerProperty("Last Name",  String.class,  "(no last name)");
-        table.addContainerProperty("Year",       Integer.class, null);
+        table.addContainerProperty("First Name", String.class,
+                "(no first name)");
+        table.addContainerProperty("Last Name", String.class, "(no last name)");
+        table.addContainerProperty("Year", Integer.class, null);
 
         /* We use these entries to generate random items in a table. */
-        final String[] firstnames = new String[] { "Donald", "Patty", "Sally", "Douglas" };
-        final String[] lastnames  = new String[] { "Smith", "Jones", "Adams", "Knuth" };
+        final String[] firstnames = new String[] { "Donald", "Patty", "Sally",
+                "Douglas" };
+        final String[] lastnames = new String[] { "Smith", "Jones", "Adams",
+                "Knuth" };
 
         /* Add some items in the table and assign them an Item ID (IID). */
         for (int i = 0; i < 1000; i++) {
             /* Add a randomly generated item in the Table. */
-            table.addItem(new Object[] {
-                        firstnames[(int) (Math.random() * (firstnames.length - 0.01))],
-                        lastnames[(int) (Math.random() * (lastnames.length - 0.01))],
-                        new Integer((int) (1900 + Math.random() * 100)) },
-                    new Integer(i));
+            table
+                    .addItem(
+                            new Object[] {
+                                    firstnames[(int) (Math.random() * (firstnames.length - 0.01))],
+                                    lastnames[(int) (Math.random() * (lastnames.length - 0.01))],
+                                    new Integer(
+                                            (int) (1900 + Math.random() * 100)) },
+                            new Integer(i));
         }
 
         /* Set the number of items visible in the table. */
@@ -53,17 +59,20 @@ public class TableExample extends CustomComponent {
 
         /* Allow selecting items from the table. */
         table.setSelectable(true);
-        
-        /* When an item is selected, the selection is sent immediately to server. */
+
+        /*
+         * When an item is selected, the selection is sent immediately to
+         * server.
+         */
         table.setImmediate(true);
-        
+
         /* Handle selection change. */
         table.addListener(new Property.ValueChangeListener() {
             public void valueChange(ValueChangeEvent event) {
                 current.setValue("Selected: " + table.getValue().toString());
             }
         });
-        
+
         layout.addComponent(current);
     }
 }
index 52d1513394942a7216e2a4715e3b2b6121063605..cf9ad1d438d248519390c9b5d04708c96734f1cf 100644 (file)
@@ -17,21 +17,29 @@ public class TableExample1 extends CustomComponent {
 
         /* Create the table with a caption. */
         Table table = new Table("This is my Table");
-        
-        /* Define the names and data types of columns.
-         * The "default value" parameter is meaningless here. */
-        table.addContainerProperty("First Name", String.class,  null);
-        table.addContainerProperty("Last Name",  String.class,  null);
-        table.addContainerProperty("Year",       Integer.class, null);
+
+        /*
+         * Define the names and data types of columns. The "default value"
+         * parameter is meaningless here.
+         */
+        table.addContainerProperty("First Name", String.class, null);
+        table.addContainerProperty("Last Name", String.class, null);
+        table.addContainerProperty("Year", Integer.class, null);
 
         /* Add a few items in the table. */
-        table.addItem(new Object[] {"Nicolaus","Copernicus",new Integer(1473)}, new Integer(1));
-        table.addItem(new Object[] {"Tycho",   "Brahe",     new Integer(1546)}, new Integer(2));
-        table.addItem(new Object[] {"Giordano","Bruno",     new Integer(1548)}, new Integer(3));
-        table.addItem(new Object[] {"Galileo", "Galilei",   new Integer(1564)}, new Integer(4));
-        table.addItem(new Object[] {"Johannes","Kepler",    new Integer(1571)}, new Integer(5));
-        table.addItem(new Object[] {"Isaac",   "Newton",    new Integer(1643)}, new Integer(6));
-        
+        table.addItem(new Object[] { "Nicolaus", "Copernicus",
+                new Integer(1473) }, new Integer(1));
+        table.addItem(new Object[] { "Tycho", "Brahe", new Integer(1546) },
+                new Integer(2));
+        table.addItem(new Object[] { "Giordano", "Bruno", new Integer(1548) },
+                new Integer(3));
+        table.addItem(new Object[] { "Galileo", "Galilei", new Integer(1564) },
+                new Integer(4));
+        table.addItem(new Object[] { "Johannes", "Kepler", new Integer(1571) },
+                new Integer(5));
+        table.addItem(new Object[] { "Isaac", "Newton", new Integer(1643) },
+                new Integer(6));
+
         /* Set number of visible rows. */
         table.setPageLength(5);
 
index f82c96c68d70e7bc32883faf31bb85992ade8aae..3472300123eb0cda28a94d2c50ba80e297fa1be8 100644 (file)
@@ -14,34 +14,45 @@ import com.itmill.toolkit.ui.Table;
 public class TableExample2 extends CustomComponent {
     /* A layout needed for the example. */
     OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-    
+
     TableExample2() {
         setCompositionRoot(layout);
 
         /* Create the table with a caption. */
         final Table table = new Table();
-        
-        /* Define the names and data types of columns.
-         * The "default value" parameter is meaningless here. */
-        table.addContainerProperty("First Name", String.class,  null);
-        table.addContainerProperty("Last Name",  String.class,  null);
-        table.addContainerProperty("Year",       Integer.class, null);
+
+        /*
+         * Define the names and data types of columns. The "default value"
+         * parameter is meaningless here.
+         */
+        table.addContainerProperty("First Name", String.class, null);
+        table.addContainerProperty("Last Name", String.class, null);
+        table.addContainerProperty("Year", Integer.class, null);
 
         /* Add a few items in the table. */
-        table.addItem(new Object[] {"Nicolaus","Copernicus",new Integer(1473)}, new Integer(1));
-        table.addItem(new Object[] {"Tycho",   "Brahe",     new Integer(1546)}, new Integer(2));
-        table.addItem(new Object[] {"Giordano","Bruno",     new Integer(1548)}, new Integer(3));
-        table.addItem(new Object[] {"Galileo", "Galilei",   new Integer(1564)}, new Integer(4));
-        table.addItem(new Object[] {"Johannes","Kepler",    new Integer(1571)}, new Integer(5));
-        table.addItem(new Object[] {"Isaac",   "Newton",    new Integer(1643)}, new Integer(6));
-        
+        table.addItem(new Object[] { "Nicolaus", "Copernicus",
+                new Integer(1473) }, new Integer(1));
+        table.addItem(new Object[] { "Tycho", "Brahe", new Integer(1546) },
+                new Integer(2));
+        table.addItem(new Object[] { "Giordano", "Bruno", new Integer(1548) },
+                new Integer(3));
+        table.addItem(new Object[] { "Galileo", "Galilei", new Integer(1564) },
+                new Integer(4));
+        table.addItem(new Object[] { "Johannes", "Kepler", new Integer(1571) },
+                new Integer(5));
+        table.addItem(new Object[] { "Isaac", "Newton", new Integer(1643) },
+                new Integer(6));
+
         /* Set number of visible rows. */
         table.setPageLength(5);
 
         /* Allow selecting items from the table. */
         table.setSelectable(true);
-        
-        /* When an item is selected, the selection is sent immediately to server. */
+
+        /*
+         * When an item is selected, the selection is sent immediately to
+         * server.
+         */
         table.setImmediate(true);
 
         /* Feedback from selection. */
index cf20a8bf49e950706d9ce8a4b61d1f8afbc30558..152d0ed4c90a0d2b277d1ff0d620c1ddc3a49535 100644 (file)
@@ -4,14 +4,11 @@
 
 package com.itmill.toolkit.tests.book;
 
-import com.itmill.toolkit.data.Property;
-import com.itmill.toolkit.data.Property.ValueChangeEvent;
 import com.itmill.toolkit.ui.Button;
 import com.itmill.toolkit.ui.CheckBox;
 import com.itmill.toolkit.ui.CustomComponent;
 import com.itmill.toolkit.ui.Label;
 import com.itmill.toolkit.ui.OrderedLayout;
-import com.itmill.toolkit.ui.RichTextArea;
 import com.itmill.toolkit.ui.Table;
 import com.itmill.toolkit.ui.TextField;
 import com.itmill.toolkit.ui.Button.ClickEvent;
@@ -19,37 +16,41 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 public class TableExample3 extends CustomComponent {
     /* A layout needed for the example. */
     OrderedLayout layout = new OrderedLayout(OrderedLayout.ORIENTATION_VERTICAL);
-    
+
     TableExample3() {
         setCompositionRoot(layout);
 
-        // Create a table and add a style to allow setting the row height in theme.
+        // Create a table and add a style to allow setting the row height in
+        // theme.
         final Table table = new Table();
         table.addStyleName("components-inside");
-        
-        /* Define the names and data types of columns.
-         * The "default value" parameter is meaningless here. */
-        table.addContainerProperty("Sum",            Label.class,     null);
-        table.addContainerProperty("Is Transferred", CheckBox.class,  null);
-        table.addContainerProperty("Comments",       TextField.class, null);
-        table.addContainerProperty("Details",        Button.class,    null);
-        
+
+        /*
+         * Define the names and data types of columns. The "default value"
+         * parameter is meaningless here.
+         */
+        table.addContainerProperty("Sum", Label.class, null);
+        table.addContainerProperty("Is Transferred", CheckBox.class, null);
+        table.addContainerProperty("Comments", TextField.class, null);
+        table.addContainerProperty("Details", Button.class, null);
+
         /* Add a few items in the table. */
-        for (int i=0; i<100; i++) {
+        for (int i = 0; i < 100; i++) {
             // Create the fields for the current table row
-            Label sumField = new Label(String.format("Sum is <b>$%04.2f</b><br/><i>(VAT incl.)</i>",
-                                  new Object[] {new Double(Math.random()*1000)}),
-                                  Label.CONTENT_XHTML);
+            Label sumField = new Label(String.format(
+                    "Sum is <b>$%04.2f</b><br/><i>(VAT incl.)</i>",
+                    new Object[] { new Double(Math.random() * 1000) }),
+                    Label.CONTENT_XHTML);
             CheckBox transferredField = new CheckBox("is transferred");
-            
+
             // Multiline text field. This required modifying the height of the
             // table row.
             TextField commentsField = new TextField();
             commentsField.setRows(3);
-            
+
             // The Table item identifier for the row.
             Integer itemId = new Integer(i);
-            
+
             // Create a button and handle its click. A Button does not know
             // the item it is contained in, so we have to store the item
             // ID as user-defined data.
@@ -58,16 +59,16 @@ public class TableExample3 extends CustomComponent {
             detailsField.addListener(new Button.ClickListener() {
                 public void buttonClick(ClickEvent event) {
                     // Get the item identifier from the user-defined data.
-                    Integer itemId = (Integer)event.getButton().getData();
-                    getWindow().showNotification("Link "+itemId.intValue()+" clicked.");
-                } 
+                    Integer itemId = (Integer) event.getButton().getData();
+                    getWindow().showNotification(
+                            "Link " + itemId.intValue() + " clicked.");
+                }
             });
             detailsField.addStyleName("link");
-            
+
             // Create the table row.
-            table.addItem(new Object[] {sumField, transferredField,
-                                        commentsField, detailsField},
-                          itemId);
+            table.addItem(new Object[] { sumField, transferredField,
+                    commentsField, detailsField }, itemId);
         }
 
         // Show just three rows because they are so high.
@@ -75,8 +76,8 @@ public class TableExample3 extends CustomComponent {
 
         // Initially show the 50th item in the top of the table.
         table.setCurrentPageFirstItemIndex(50);
-        //table.setCurrentPageFirstItemId(initial);
-        
+        // table.setCurrentPageFirstItemId(initial);
+
         layout.addComponent(table);
     }
 }
index 411153dc18132fcce732062466a879f107758341..82975634c1ab6af6552d42da077549710b9ee74d 100644 (file)
@@ -23,9 +23,9 @@ public class TableHuge extends CustomComponent {
      * This is a virtual container that generates the items on the fly when
      * requested.
      */
-    public class HugeContainer implements Container,Indexed {
+    public class HugeContainer implements Container, Indexed {
         int numberofitems;
-        
+
         public HugeContainer(int numberofitems) {
             this.numberofitems = numberofitems;
         }
@@ -68,7 +68,8 @@ public class TableHuge extends CustomComponent {
             if (itemId instanceof Integer) {
                 int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < numberofitems) {
-                    return new ObjectProperty("This is the item "+pos+" in the huge table");
+                    return new ObjectProperty("This is the item " + pos
+                            + " in the huge table");
                 }
             }
             return null;
@@ -83,10 +84,11 @@ public class TableHuge extends CustomComponent {
 
         public Item getItem(Object itemId) {
             if (itemId instanceof Integer) {
-                int pos = ((Integer)itemId).intValue();
+                int pos = ((Integer) itemId).intValue();
                 if (pos >= 0 && pos < numberofitems) {
                     Item item = new PropertysetItem();
-                    item.addItemProperty("id", new ObjectProperty("This is the item "+pos+" in the huge table"));
+                    item.addItemProperty("id", new ObjectProperty(
+                            "This is the item " + pos + " in the huge table"));
                     return item;
                 }
             }
@@ -160,25 +162,25 @@ public class TableHuge extends CustomComponent {
         }
 
         public boolean isLastId(Object itemId) {
-            return ((Integer) itemId).intValue() == (numberofitems-1);
+            return ((Integer) itemId).intValue() == (numberofitems - 1);
         }
 
         public Object lastItemId() {
-            return new Integer(numberofitems-1);
+            return new Integer(numberofitems - 1);
         }
 
         public Object nextItemId(Object itemId) {
             int pos = indexOfId(itemId);
-            if (pos >= numberofitems-1)
+            if (pos >= numberofitems - 1)
                 return null;
-            return getIdByIndex(pos+1);
+            return getIdByIndex(pos + 1);
         }
 
         public Object prevItemId(Object itemId) {
             int pos = indexOfId(itemId);
             if (pos <= 0)
                 return null;
-            return getIdByIndex(pos-1);
+            return getIdByIndex(pos - 1);
         }
     }
 
@@ -186,7 +188,7 @@ public class TableHuge extends CustomComponent {
         Table table = new Table("HUGE table, REALLY HUGE");
         table.setContainerDataSource(new HugeContainer(500000));
         table.setPageLength(20);
-        
+
         setCompositionRoot(table);
     }
 }
index 5e5f673fa7c427b79e17196f17c8ef5f8e06ccda..002538ae7d6f04266a8cbff67cda5a7d949b0e93 100644 (file)
@@ -12,25 +12,25 @@ import com.itmill.toolkit.ui.Window;
 import com.itmill.toolkit.ui.Window.CloseEvent;
 
 /** Component contains a button that allows opening a window. */
-public class WindowOpener extends CustomComponent
-                          implements Window.CloseListener {
-    Window mainwindow;  // Reference to main window
-    Window mywindow;    // The window to be opened
-    Button openbutton;  // Button for opening the window
+public class WindowOpener extends CustomComponent implements
+        Window.CloseListener {
+    Window mainwindow; // Reference to main window
+    Window mywindow; // The window to be opened
+    Button openbutton; // Button for opening the window
     Button closebutton; // A button in the window
-    Label  explanation; // A descriptive text
+    Label explanation; // A descriptive text
 
     public WindowOpener(String label, Window main) {
         mainwindow = main;
 
         /* The component consists of a button that opens the window. */
         final OrderedLayout layout = new OrderedLayout();
-        
+
         openbutton = new Button("Open Window", this, "openButtonClick");
         explanation = new Label("Explanation");
         layout.addComponent(openbutton);
         layout.addComponent(explanation);
-        
+
         setCompositionRoot(layout);
     }
 
index 0affc7a4f66b12766a445073c822fa723091384d..7e97e8d6bf4108d38dc509c966ec4de1087af2c6 100644 (file)
@@ -11,8 +11,8 @@ import com.itmill.toolkit.ui.Window;
 import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class WindowTestApplication extends Application {
-    Window  anotherpage = null;
-    HashMap windows     = new HashMap();
+    Window anotherpage = null;
+    HashMap windows = new HashMap();
 
     public void init() {
         final Window main = new Window("Window Test Application");
@@ -36,37 +36,40 @@ public class WindowTestApplication extends Application {
                 new Button.ClickListener() {
                     public void buttonClick(ClickEvent event) {
                         // Open the window.
-                        main.open(new ExternalResource(mywindow.getURL()), "_new");
+                        main.open(new ExternalResource(mywindow.getURL()),
+                                "_new");
                     }
                 }));
 
         /* Add a link to the second window. */
         Link link = new Link("Click to open second window",
-                             new ExternalResource(mywindow.getURL()));
+                new ExternalResource(mywindow.getURL()));
         link.setTargetName("_new");
         main.addComponent(link);
 
         // Add the link manually inside a Label.
-        main.addComponent(new Label("Second window: <a href='" + mywindow.getURL()
-                                    + "' target='_new'>click to open</a>",
-                                    Label.CONTENT_XHTML));
-        main.addComponent(new Label("The second window can be accessed through URL: "
-                                    + mywindow.getURL()));
+        main.addComponent(new Label("Second window: <a href='"
+                + mywindow.getURL() + "' target='_new'>click to open</a>",
+                Label.CONTENT_XHTML));
+        main.addComponent(new Label(
+                "The second window can be accessed through URL: "
+                        + mywindow.getURL()));
 
         // Add links to windows that do not yet exist, but are created
         // dynamically when the URL is called.
         main.addComponent(new Label("URLs to open item windows:"));
         final String[] items = new String[] { "mercury", "venus", "earth",
                 "mars", "jupiter", "saturn", "uranus", "neptune" };
-        
+
         for (int inx = 0; inx < items.length; inx++) {
             String item = items[inx];
 
-            // We do not create window objects here, but just links to the windows
+            // We do not create window objects here, but just links to the
+            // windows
             String windowUrl = getURL() + "planet-" + item;
-            main.addComponent(new Label("A window about '" + item + "': <a href='" + 
-                                        windowUrl + "' target='_new'>" + windowUrl + 
-                                        "</a>", Label.CONTENT_XHTML));
+            main.addComponent(new Label("A window about '" + item
+                    + "': <a href='" + windowUrl + "' target='_new'>"
+                    + windowUrl + "</a>", Label.CONTENT_XHTML));
         }
     }
 
@@ -76,8 +79,9 @@ public class WindowTestApplication extends Application {
             if (!windows.containsKey(planetName)) {
                 // Create the window object on the fly.
                 Window newWindow = new Window("Yet Another Page");
-                newWindow.addComponent(new Label("This window contains details about " +
-                                                 planetName + "."));
+                newWindow.addComponent(new Label(
+                        "This window contains details about " + planetName
+                                + "."));
                 windows.put(planetName, newWindow);
 
                 // We must add the window to the application, it is not done
index 3c7843d835922d328dac9f7e83a35ee8b8c14744..1c839e2029978e740f7b661a3124baac1d80e7e9 100644 (file)
@@ -37,21 +37,20 @@ public class Ticket124 extends Application {
             }\r
         });\r
 \r
-//        gl.addComponent(new Label("0-0"), 0, 0);\r
-//        gl.addComponent(new Label("0-1"), 1, 0);\r
-         gl.addComponent(new Label("1-0"), 1, 0);\r
-         gl.addComponent(new Label("1-1"), 1, 1);\r
-         gl.addComponent(new Label("0,0-1,0"), 0, 0, 1, 0);\r
-         gl.addComponent(new Label("2,0-3,0"), 2, 0, 3, 0);\r
-         Label l = new\r
-         Label("Large cell 0,1-2,2<br/>yadayada<br/>lorem ipsum");\r
-         l.setContentMode(Label.CONTENT_XHTML);\r
-         gl.addComponent(l, 0, 1, 2, 2);\r
-         gl.addComponent(new Label("3-1"), 3, 1);\r
-         gl.addComponent(new Label("3,2-3,3"), 3, 2, 3, 3);\r
+        // gl.addComponent(new Label("0-0"), 0, 0);\r
+        // gl.addComponent(new Label("0-1"), 1, 0);\r
+        gl.addComponent(new Label("1-0"), 1, 0);\r
+        gl.addComponent(new Label("1-1"), 1, 1);\r
+        gl.addComponent(new Label("0,0-1,0"), 0, 0, 1, 0);\r
+        gl.addComponent(new Label("2,0-3,0"), 2, 0, 3, 0);\r
+        Label l = new Label("Large cell 0,1-2,2<br/>yadayada<br/>lorem ipsum");\r
+        l.setContentMode(Label.CONTENT_XHTML);\r
+        gl.addComponent(l, 0, 1, 2, 2);\r
+        gl.addComponent(new Label("3-1"), 3, 1);\r
+        gl.addComponent(new Label("3,2-3,3"), 3, 2, 3, 3);\r
         gl.addComponent(tf, 0, 3);\r
         gl.addComponent(insert, 1, 3);\r
-         gl.addComponent(delete, 2, 3);\r
+        gl.addComponent(delete, 2, 3);\r
 \r
         gl.setStyleName("border");\r
         w.addComponent(gl);\r
@@ -79,8 +78,7 @@ public class Ticket124 extends Application {
         int pos = Integer.parseInt(tf.getValue().toString());\r
         gl.insertRow(pos);\r
         try {\r
-            TextField t = new TextField("",\r
-                    "Newly added row");\r
+            TextField t = new TextField("", "Newly added row");\r
             t.setWidth("100%");\r
             gl.addComponent(t, 0, pos, 3, pos);\r
         } catch (Exception e) {\r
index cd7555d841f4b42c953dab27ef76c935b31198cd..b7c0e07179132bf7f9e2a7b7140c5ba0b02243bc 100644 (file)
@@ -68,9 +68,9 @@ class TreeExample extends CustomComponent {
      * Helper to add an item with specified caption and (optional) parent.\r
      * \r
      * @param caption\r
-     *                The item caption\r
+     *            The item caption\r
      * @param parent\r
-     *                The (optional) parent item id\r
+     *            The (optional) parent item id\r
      * @return the created item's id\r
      */\r
     private Object addCaptionedItem(String caption, Object parent) {\r
index 3fb7f8633ae46bc9d315f95420c207a1642988ca..9f34d93d2e6f693be8bc15bedf935851b9f90c31 100644 (file)
@@ -42,8 +42,7 @@ public class Ticket1397 extends Application {
         panel.addComponent(pe);
 
         // Second test component
-        PopupView pe2 = new PopupView("fooLabel", new Label(
-                "Foooooooooo..."));
+        PopupView pe2 = new PopupView("fooLabel", new Label("Foooooooooo..."));
         pe2.setDescription("Click to view");
         panel.addComponent(pe2);
 
index 6f25a531e1aa93c4450c17f13883d60267cf90e4..450a495f94269a6c6610639222b80a9b13a1ecd4 100644 (file)
@@ -4,9 +4,9 @@ import com.itmill.toolkit.ui.CustomComponent;
 import com.itmill.toolkit.ui.Panel;
 
 public class Ticket1506 extends CustomComponent {
-    
+
     Panel p;
-    
+
     public Ticket1506() {
         p = new Ticket1506_Panel();
         setCompositionRoot(p);
index a8446fb97dcac3f55b6d66c4c0b76d902094dc6a..348db4a3acaf8c18de91a6cf553a204ba2703fcf 100644 (file)
@@ -1,11 +1,11 @@
 package com.itmill.toolkit.tests.tickets;\r
 \r
-import com.itmill.toolkit.data.util.ObjectProperty;\r
 import com.itmill.toolkit.data.Container;\r
+import com.itmill.toolkit.data.util.ObjectProperty;\r
+import com.itmill.toolkit.ui.Button;\r
 import com.itmill.toolkit.ui.Component;\r
 import com.itmill.toolkit.ui.Panel;\r
 import com.itmill.toolkit.ui.Select;\r
-import com.itmill.toolkit.ui.Button;\r
 \r
 /**\r
  * @author Efecte R&D\r
@@ -15,9 +15,11 @@ public class Ticket1506_Panel extends Panel {
 \r
     public Ticket1506_Panel() {\r
         ObjectProperty property1 = new ObjectProperty(null, String.class);\r
-        addComponent(initSelect(new Ticket1506_TestContainer(), "Test select", property1));\r
+        addComponent(initSelect(new Ticket1506_TestContainer(), "Test select",\r
+                property1));\r
         addComponent(initButton(property1));\r
-        addComponent(initSelect(new Ticket1506_TestContainer2(), "Test select 2", new ObjectProperty(null, String.class)));\r
+        addComponent(initSelect(new Ticket1506_TestContainer2(),\r
+                "Test select 2", new ObjectProperty(null, String.class)));\r
     }\r
 \r
     private Component initButton(final ObjectProperty property) {\r
@@ -30,7 +32,8 @@ public class Ticket1506_Panel extends Panel {
         return button;\r
     }\r
 \r
-    private Component initSelect(Container containerDataSource, String caption, ObjectProperty property) {\r
+    private Component initSelect(Container containerDataSource, String caption,\r
+            ObjectProperty property) {\r
         Select select = new Select(caption);\r
         select.setFilteringMode(Select.FILTERINGMODE_CONTAINS);\r
         select.setImmediate(true);\r
index 329f3014d845cf5718be39e7006fbdd66e62c1a9..c45c1ceb5c773858a04fdb9e93a6d6c4b5a2c7cf 100644 (file)
@@ -1,12 +1,15 @@
 package com.itmill.toolkit.tests.tickets;\r
 \r
+import java.util.ArrayList;\r
+import java.util.Collection;\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+\r
 import com.itmill.toolkit.data.Container;\r
 import com.itmill.toolkit.data.Item;\r
 import com.itmill.toolkit.data.Property;\r
-import com.itmill.toolkit.data.util.PropertysetItem;\r
 import com.itmill.toolkit.data.util.ObjectProperty;\r
-\r
-import java.util.*;\r
+import com.itmill.toolkit.data.util.PropertysetItem;\r
 \r
 /**\r
  * @author Efecte R&D\r
@@ -21,13 +24,17 @@ public class Ticket1506_TestContainer implements Container {
 \r
     private void loadItems() {\r
         final PropertysetItem item1 = new PropertysetItem();\r
-        item1.addItemProperty(PROPERTY_1_ID, new ObjectProperty("value 1", String.class));\r
-        item1.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name 1", String.class));\r
+        item1.addItemProperty(PROPERTY_1_ID, new ObjectProperty("value 1",\r
+                String.class));\r
+        item1.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name 1",\r
+                String.class));\r
         this.items.put(ITEM_1_ID, item1);\r
 \r
         final PropertysetItem item2 = new PropertysetItem();\r
-        item2.addItemProperty(PROPERTY_1_ID, new ObjectProperty("value 2", String.class));\r
-        item2.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name 2", String.class));\r
+        item2.addItemProperty(PROPERTY_1_ID, new ObjectProperty("value 2",\r
+                String.class));\r
+        item2.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name 2",\r
+                String.class));\r
         this.items.put(ITEM_2_ID, item2);\r
     }\r
 \r
@@ -98,15 +105,18 @@ public class Ticket1506_TestContainer implements Container {
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
-    public boolean removeItem(Object itemId) throws UnsupportedOperationException {\r
+    public boolean removeItem(Object itemId)\r
+            throws UnsupportedOperationException {\r
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
-    public boolean addContainerProperty(Object propertyId, Class type, Object defaultValue) throws UnsupportedOperationException {\r
+    public boolean addContainerProperty(Object propertyId, Class type,\r
+            Object defaultValue) throws UnsupportedOperationException {\r
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
-    public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException {\r
+    public boolean removeContainerProperty(Object propertyId)\r
+            throws UnsupportedOperationException {\r
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
index dda5bb2fe3bc43d343ffc2e3be720187985716f6..73a3f6c319690f38d9e6b0c8ff760831f2218ffb 100644 (file)
@@ -1,12 +1,15 @@
 package com.itmill.toolkit.tests.tickets;\r
 \r
+import java.util.ArrayList;\r
+import java.util.Collection;\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+\r
 import com.itmill.toolkit.data.Container;\r
 import com.itmill.toolkit.data.Item;\r
 import com.itmill.toolkit.data.Property;\r
-import com.itmill.toolkit.data.util.PropertysetItem;\r
 import com.itmill.toolkit.data.util.ObjectProperty;\r
-\r
-import java.util.*;\r
+import com.itmill.toolkit.data.util.PropertysetItem;\r
 \r
 /**\r
  * @author Efecte R&D\r
@@ -22,8 +25,10 @@ public class Ticket1506_TestContainer2 implements Container {
     private void loadItems() {\r
         for (int i = 1; i < 15; i++) {\r
             final PropertysetItem item = new PropertysetItem();\r
-            item.addItemProperty(PROPERTY_1_ID, new ObjectProperty("value " + i, String.class));\r
-            item.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name " + i, String.class));\r
+            item.addItemProperty(PROPERTY_1_ID, new ObjectProperty(\r
+                    "value " + i, String.class));\r
+            item.addItemProperty(PROPERTY_2_ID, new ObjectProperty("name " + i,\r
+                    String.class));\r
             this.items.put(String.valueOf(i), item);\r
         }\r
     }\r
@@ -92,15 +97,18 @@ public class Ticket1506_TestContainer2 implements Container {
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
-    public boolean removeItem(Object itemId) throws UnsupportedOperationException {\r
+    public boolean removeItem(Object itemId)\r
+            throws UnsupportedOperationException {\r
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
-    public boolean addContainerProperty(Object propertyId, Class type, Object defaultValue) throws UnsupportedOperationException {\r
+    public boolean addContainerProperty(Object propertyId, Class type,\r
+            Object defaultValue) throws UnsupportedOperationException {\r
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
-    public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException {\r
+    public boolean removeContainerProperty(Object propertyId)\r
+            throws UnsupportedOperationException {\r
         throw new UnsupportedOperationException("Not implemented");\r
     }\r
 \r
index 38ae5ed0033fa8dcb15139cbbfaaac07af19d704..3c21d25a4d44f62bb1579cb4218b31412abd76d8 100644 (file)
@@ -86,7 +86,8 @@ public class Ticket1598 extends Application {
             }
         });
 
-        final MenuItem last = (MenuItem) menuBar.getItems().get(menuBar.getSize() - 1);
+        final MenuItem last = (MenuItem) menuBar.getItems().get(
+                menuBar.getSize() - 1);
         last.setText("Remove me!");
 
         // A command for removing the selected menuitem
index 77978293d37f52ccbea5f5c14f3bb657606b96b4..659fbc3f4db65e0ded62da1255e20e906efa5169 100644 (file)
@@ -8,19 +8,26 @@ import com.itmill.toolkit.ui.Button.ClickEvent;
 
 public class Ticket1659 extends Application {
 
-       public void init() {
-               final Window mainWin = new Window();
-               setMainWindow(mainWin);
-               mainWin.addComponent(new Button("Change URI using Application.getURL()", new Button.ClickListener() {
+    public void init() {
+        final Window mainWin = new Window();
+        setMainWindow(mainWin);
+        mainWin.addComponent(new Button(
+                "Change URI using Application.getURL()",
+                new Button.ClickListener() {
 
-                       public void buttonClick(ClickEvent event) {
-                               mainWin.open(new ExternalResource(getURL() + "#"+System.currentTimeMillis()));
-                       }}));
-               mainWin.addComponent(new Button("Change URI uring Window.getURL()", new Button.ClickListener() {
+                    public void buttonClick(ClickEvent event) {
+                        mainWin.open(new ExternalResource(getURL() + "#"
+                                + System.currentTimeMillis()));
+                    }
+                }));
+        mainWin.addComponent(new Button("Change URI uring Window.getURL()",
+                new Button.ClickListener() {
 
-                       public void buttonClick(ClickEvent event) {
-                               mainWin.open(new ExternalResource(mainWin.getURL() + "#"+System.currentTimeMillis()));
-                       }}));
-       }
+                    public void buttonClick(ClickEvent event) {
+                        mainWin.open(new ExternalResource(mainWin.getURL()
+                                + "#" + System.currentTimeMillis()));
+                    }
+                }));
+    }
 
 }
index ed77fdc13b2758957686a338b81801958167405e..64edec93c3daa0fcec9110e18e1c9170c007a4f7 100644 (file)
@@ -26,11 +26,11 @@ public class Ticket1923 extends com.itmill.toolkit.Application {
                                     + i\r
                                     + " 5067w09adsfasdjfahlsdfjhalfjhaldjfhalsjdfhlajdhflajhdfljahdslfjahldsjfhaljdfhaljfdhlajsdhflajshdflkajhsdlfkjahsldfkjahsldfhalskjfdhlksjfdh857idifhaljsdfhlajsdhflajhdflajhdfljahldfjhaljdfhalsjdfhalkjdhflkajhdfljahsdlfjahlsdjfhaldjfhaljfdhlajdhflajshdfljahsdlfjhalsjdfhalskjhfdlhusfglksuhdflgjshflgjhslfghslfjghsljfglsjhfglsjhfgljshfgljshflgjhslfghsljfgsljdfglsdjhfglsjhflgkjshfldjgh"));\r
         }\r
-        //main.getLayout().setSizeFull();\r
+        // main.getLayout().setSizeFull();\r
 \r
         p.setHeight("300px");\r
         p.setWidth("250px");\r
-        //p.setWidth("50%");\r
+        // p.setWidth("50%");\r
 \r
         p.setScrollTop(100);\r
         p.setScrollLeft(100);\r
index 12e2bf28eba9f02c478a0ec3acda02e8c02f7c6d..740a0ef1089f2c553d1d4d2e6008ce3ad6c69001 100644 (file)
@@ -48,7 +48,6 @@ public class Ticket2021 extends Application {
         /*\r
          * \r
          * OrderedLayout\r
-         * \r
          */\r
 \r
         Panel p2 = new Panel();\r
@@ -70,7 +69,6 @@ public class Ticket2021 extends Application {
         /*\r
          * \r
          * GridLayout\r
-         * \r
          */\r
 \r
         Panel p3 = new Panel();\r
index 0842cbea4ffd97aed8cf3ba9ab57729a1bdd9c6b..59f7aa1923eef5eb46ff0c242ba51e48a6502e83 100644 (file)
@@ -43,7 +43,7 @@ public abstract class AbstractLayout extends AbstractComponentContainer
      * (non-Javadoc)
      * 
      * @see com.itmill.toolkit.ui.Layout#setMargin(boolean, boolean, boolean,
-     *      boolean)
+     * boolean)
      */
     public void setMargin(boolean topEnabled, boolean rightEnabled,
             boolean bottomEnabled, boolean leftEnabled) {
@@ -56,7 +56,9 @@ public abstract class AbstractLayout extends AbstractComponentContainer
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.ui.AbstractComponent#paintContent(com.itmill.toolkit.terminal.PaintTarget)
+     * @see
+     * com.itmill.toolkit.ui.AbstractComponent#paintContent(com.itmill.toolkit
+     * .terminal.PaintTarget)
      */
     public void paintContent(PaintTarget target) throws PaintException {
 
index c1f192586e6bc5ce2b7f91a9a0d004f5cffc92fe..68460748dd1ddb47d02d5f7277bc7a5ed453a58e 100644 (file)
@@ -47,8 +47,8 @@ public abstract class AbstractSelect extends AbstractField implements
         Container.ItemSetChangeListener {
 
     /**
-     * Item caption mode: Item's ID's <code>String</code> representation is
-     * used as caption.
+     * Item caption mode: Item's ID's <code>String</code> representation is used
+     * as caption.
      */
     public static final int ITEM_CAPTION_MODE_ID = 0;
     /**
@@ -87,8 +87,8 @@ public abstract class AbstractSelect extends AbstractField implements
      * entered value. The value is matched to the item caption.
      * <code>FILTERINGMODE_OFF</code> (0) turns the filtering off.
      * <code>FILTERINGMODE_STARTSWITH</code> (1) matches from the start of the
-     * caption. <code>FILTERINGMODE_CONTAINS</code> (1) matches anywhere in
-     * the caption.
+     * caption. <code>FILTERINGMODE_CONTAINS</code> (1) matches anywhere in the
+     * caption.
      */
     public interface Filtering {
         public static final int FILTERINGMODE_OFF = 0;
@@ -99,7 +99,7 @@ public abstract class AbstractSelect extends AbstractField implements
          * Sets the option filtering mode.
          * 
          * @param filteringMode
-         *                the filtering mode to use
+         *            the filtering mode to use
          */
         public void setFilteringMode(int filteringMode);
 
@@ -206,10 +206,9 @@ public abstract class AbstractSelect extends AbstractField implements
      * Creates a new select that is connected to a data-source.
      * 
      * @param caption
-     *                the Caption of the component.
+     *            the Caption of the component.
      * @param dataSource
-     *                the Container datasource to be selected from by this
-     *                select.
+     *            the Container datasource to be selected from by this select.
      */
     public AbstractSelect(String caption, Container dataSource) {
         setCaption(caption);
@@ -220,9 +219,9 @@ public abstract class AbstractSelect extends AbstractField implements
      * Creates a new select that is filled from a collection of option values.
      * 
      * @param caption
-     *                the Caption of this field.
+     *            the Caption of this field.
      * @param options
-     *                the Collection containing the options.
+     *            the Collection containing the options.
      */
     public AbstractSelect(String caption, Collection options) {
 
@@ -244,9 +243,9 @@ public abstract class AbstractSelect extends AbstractField implements
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paintContent(PaintTarget target) throws PaintException {
 
@@ -531,9 +530,9 @@ public abstract class AbstractSelect extends AbstractField implements
 
     /**
      * Returns the type of the property. <code>getValue</code> and
-     * <code>setValue</code> methods must be compatible with this type: one
-     * can safely cast <code>getValue</code> to given type and pass any
-     * variable assignable to this type as a parameter to <code>setValue</code>.
+     * <code>setValue</code> methods must be compatible with this type: one can
+     * safely cast <code>getValue</code> to given type and pass any variable
+     * assignable to this type as a parameter to <code>setValue</code>.
      * 
      * @return the Type of the property.
      */
@@ -586,7 +585,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * @param newValue
-     *                the New selected item or collection of selected items.
+     *            the New selected item or collection of selected items.
      * @see com.itmill.toolkit.ui.AbstractField#setValue(java.lang.Object)
      */
     public void setValue(Object newValue) throws Property.ReadOnlyException,
@@ -608,9 +607,9 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * @param newValue
-     *                the New selected item or collection of selected items.
+     *            the New selected item or collection of selected items.
      * @param repaintIsNotNeeded
-     *                True if caller is sure that repaint is not needed.
+     *            True if caller is sure that repaint is not needed.
      * @see com.itmill.toolkit.ui.AbstractField#setValue(java.lang.Object,
      *      java.lang.Boolean)
      */
@@ -636,7 +635,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * contain the requested item, null is returned.
      * 
      * @param itemId
-     *                the item id.
+     *            the item id.
      * @return the item from the container.
      */
     public Item getItem(Object itemId) {
@@ -665,7 +664,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * Gets the property type.
      * 
      * @param propertyId
-     *                the Id identifying the property.
+     *            the Id identifying the property.
      * @see com.itmill.toolkit.data.Container#getType(java.lang.Object)
      */
     public Class getType(Object propertyId) {
@@ -687,7 +686,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * Tests, if the collection contains an item with given id.
      * 
      * @param itemId
-     *                the Id the of item to be tested.
+     *            the Id the of item to be tested.
      */
     public boolean containsId(Object itemId) {
         if (itemId != null) {
@@ -780,7 +779,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * returns null.
      * 
      * @param itemId
-     *                the Identification of the item to be created.
+     *            the Identification of the item to be created.
      * @return the Created item with the given id, or null in case of failure.
      * @see com.itmill.toolkit.data.Container#addItem(java.lang.Object)
      */
@@ -840,7 +839,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * Sets the container as data-source for viewing.
      * 
      * @param newDataSource
-     *                the new data source.
+     *            the new data source.
      */
     public void setContainerDataSource(Container newDataSource) {
         if (newDataSource == null) {
@@ -911,7 +910,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * selected items, only one of the selected items is kept as selected.
      * 
      * @param multiSelect
-     *                the New value of property multiSelect.
+     *            the New value of property multiSelect.
      */
     public void setMultiSelect(boolean multiSelect) {
         if (multiSelect && getNullSelectionItemId() != null) {
@@ -963,7 +962,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * Enables or disables possibility to add new options by the user.
      * 
      * @param allowNewOptions
-     *                the New value of property allowNewOptions.
+     *            the New value of property allowNewOptions.
      */
     public void setNewItemsAllowed(boolean allowNewOptions) {
 
@@ -981,9 +980,9 @@ public abstract class AbstractSelect extends AbstractField implements
      * item and index captions.
      * 
      * @param itemId
-     *                the id of the item to be recaptioned.
+     *            the id of the item to be recaptioned.
      * @param caption
-     *                the New caption.
+     *            the New caption.
      */
     public void setItemCaption(Object itemId, String caption) {
         if (itemId != null) {
@@ -998,7 +997,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * details.
      * 
      * @param itemId
-     *                the id of the item to be queried.
+     *            the id of the item to be queried.
      * @return the caption for specified item.
      */
     public String getItemCaption(Object itemId) {
@@ -1060,9 +1059,9 @@ public abstract class AbstractSelect extends AbstractField implements
      * Sets the icon for an item.
      * 
      * @param itemId
-     *                the id of the item to be assigned an icon.
+     *            the id of the item to be assigned an icon.
      * @param icon
-     *                the New icon.
+     *            the New icon.
      */
     public void setItemIcon(Object itemId, Resource icon) {
         if (itemId != null) {
@@ -1079,7 +1078,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * Gets the item icon.
      * 
      * @param itemId
-     *                the id of the item to be assigned an icon.
+     *            the id of the item to be assigned an icon.
      * @return the Icon for the item or null, if not specified.
      */
     public Resource getItemIcon(Object itemId) {
@@ -1118,13 +1117,13 @@ public abstract class AbstractSelect extends AbstractField implements
      * <code>toString</code> is used as item caption.</li>
      * <li><code>ITEM_CAPTION_MODE_ITEM</code> : Item-objects
      * <code>toString</code> is used as item caption.</li>
-     * <li><code>ITEM_CAPTION_MODE_INDEX</code> : The index of the item is
-     * used as item caption. The index mode can only be used with the containers
+     * <li><code>ITEM_CAPTION_MODE_INDEX</code> : The index of the item is used
+     * as item caption. The index mode can only be used with the containers
      * implementing <code>Container.Indexed</code> interface.</li>
-     * <li><code>ITEM_CAPTION_MODE_EXPLICIT</code> : The item captions must
-     * be explicitly specified.</li>
-     * <li><code>ITEM_CAPTION_MODE_PROPERTY</code> : The item captions are
-     * read from property, that must be specified with
+     * <li><code>ITEM_CAPTION_MODE_EXPLICIT</code> : The item captions must be
+     * explicitly specified.</li>
+     * <li><code>ITEM_CAPTION_MODE_PROPERTY</code> : The item captions are read
+     * from property, that must be specified with
      * <code>setItemCaptionPropertyId</code>.</li>
      * </ul>
      * The <code>ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID</code> is the default
@@ -1132,7 +1131,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * @param mode
-     *                the One of the modes listed above.
+     *            the One of the modes listed above.
      */
     public void setItemCaptionMode(int mode) {
         if (ITEM_CAPTION_MODE_ID <= mode && mode <= ITEM_CAPTION_MODE_PROPERTY) {
@@ -1154,13 +1153,13 @@ public abstract class AbstractSelect extends AbstractField implements
      * <code>toString</code> is used as item caption.</li>
      * <li><code>ITEM_CAPTION_MODE_ITEM</code> : Item-objects
      * <code>toString</code> is used as item caption.</li>
-     * <li><code>ITEM_CAPTION_MODE_INDEX</code> : The index of the item is
-     * used as item caption. The index mode can only be used with the containers
+     * <li><code>ITEM_CAPTION_MODE_INDEX</code> : The index of the item is used
+     * as item caption. The index mode can only be used with the containers
      * implementing <code>Container.Indexed</code> interface.</li>
-     * <li><code>ITEM_CAPTION_MODE_EXPLICIT</code> : The item captions must
-     * be explicitly specified.</li>
-     * <li><code>ITEM_CAPTION_MODE_PROPERTY</code> : The item captions are
-     * read from property, that must be specified with
+     * <li><code>ITEM_CAPTION_MODE_EXPLICIT</code> : The item captions must be
+     * explicitly specified.</li>
+     * <li><code>ITEM_CAPTION_MODE_PROPERTY</code> : The item captions are read
+     * from property, that must be specified with
      * <code>setItemCaptionPropertyId</code>.</li>
      * </ul>
      * The <code>ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID</code> is the default
@@ -1179,18 +1178,19 @@ public abstract class AbstractSelect extends AbstractField implements
      * <p>
      * Setting the id to a existing property implicitly sets the item caption
      * mode to <code>ITEM_CAPTION_MODE_PROPERTY</code>. If the object is in
-     * <code>ITEM_CAPTION_MODE_PROPERTY</code> mode, setting caption property
-     * id null resets the item caption mode to
+     * <code>ITEM_CAPTION_MODE_PROPERTY</code> mode, setting caption property id
+     * null resets the item caption mode to
      * <code>ITEM_CAPTION_EXPLICIT_DEFAULTS_ID</code>.
      * </p>
      * 
      * <p>
      * Setting the property id to null disables this feature. The id is null by
      * default
-     * </p> .
+     * </p>
+     * .
      * 
      * @param propertyId
-     *                the id of the property.
+     *            the id of the property.
      * 
      */
     public void setItemCaptionPropertyId(Object propertyId) {
@@ -1226,17 +1226,18 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * <p>
-     * Note : The icons set with <code>setItemIcon</code> function override
-     * the icons from the property.
+     * Note : The icons set with <code>setItemIcon</code> function override the
+     * icons from the property.
      * </p>
      * 
      * <p>
      * Setting the property id to null disables this feature. The id is null by
      * default
-     * </p> .
+     * </p>
+     * .
      * 
      * @param propertyId
-     *                the Id of the property that specifies icons for items.
+     *            the Id of the property that specifies icons for items.
      */
     public void setItemIconPropertyId(Object propertyId) {
         if ((propertyId != null)
@@ -1258,14 +1259,15 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * <p>
-     * Note : The icons set with <code>setItemIcon</code> function override
-     * the icons from the property.
+     * Note : The icons set with <code>setItemIcon</code> function override the
+     * icons from the property.
      * </p>
      * 
      * <p>
      * Setting the property id to null disables this feature. The id is null by
      * default
-     * </p> .
+     * </p>
+     * .
      * 
      * @return the Id of the property containing the item icons.
      */
@@ -1283,7 +1285,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * @param itemId
-     *                the Id the of the item to be tested.
+     *            the Id the of the item to be tested.
      * @see #getNullSelectionItemId()
      * @see #setNullSelectionItemId(Object)
      * 
@@ -1310,7 +1312,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * @param itemId
-     *                the tem to be selected.
+     *            the tem to be selected.
      * @see #getNullSelectionItemId()
      * @see #setNullSelectionItemId(Object)
      * 
@@ -1330,7 +1332,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * Unselects an item.
      * 
      * @param itemId
-     *                the Item to be unselected.
+     *            the Item to be unselected.
      * @see #getNullSelectionItemId()
      * @see #setNullSelectionItemId(Object)
      * 
@@ -1489,11 +1491,11 @@ public abstract class AbstractSelect extends AbstractField implements
     /**
      * Allow of disallow empty selection. If the select is in single-select
      * mode, you can make an item represent the empty selection by calling
-     * <code>setNullSelectionItemId()</code>. This way you can for instance
-     * set an icon and caption for the null selection item.
+     * <code>setNullSelectionItemId()</code>. This way you can for instance set
+     * an icon and caption for the null selection item.
      * 
      * @param nullSelectionAllowed
-     *                whether or not to allow empty selection
+     *            whether or not to allow empty selection
      * @see #setNullSelectionItemId(Object)
      * @see #isNullSelectionAllowed()
      */
@@ -1540,7 +1542,7 @@ public abstract class AbstractSelect extends AbstractField implements
      * </p>
      * 
      * @param nullSelectionItemId
-     *                the nullSelectionItemId to set.
+     *            the nullSelectionItemId to set.
      * @see #getNullSelectionItemId()
      * @see #isSelected(Object)
      * @see #select(Object)
index 4973303bfd255813f14aa1fa2637571ca093fa66..e057bbc6a19b40f3f43a5c3a8cb68ea775990693 100644 (file)
@@ -1,7 +1,7 @@
 package com.itmill.toolkit.ui;
 
 public class Accordion extends TabSheet {
-    
+
     public String getTag() {
         return "accordion";
     }
index 6ab3ccf11434e73b2541fc1d79b713b51a201738..3e9e3666f2c774e3e82974e8c0785fc8b42a5efe 100644 (file)
@@ -31,9 +31,9 @@ public class BaseFieldFactory implements FieldFactory {
      * 
      * 
      * @param type
-     *                the type of data presented in field.
+     *            the type of data presented in field.
      * @param uiContext
-     *                the context where the Field is presented.
+     *            the context where the Field is presented.
      * 
      * @see com.itmill.toolkit.ui.FieldFactory#createField(Class, Component)
      */
index 86ba0fee95fb2ab096b6d9cad09709a194967923..58855c9a62c1d7aa8dd16b4aa1248cd42e234968 100644 (file)
@@ -20,9 +20,9 @@ public class CheckBox extends Button {
      * Creates a new switch button with a caption and a set initial state.
      * 
      * @param caption
-     *                the caption of the switch button
+     *            the caption of the switch button
      * @param initialState
-     *                the initial state of the switch button
+     *            the initial state of the switch button
      */
     public CheckBox(String caption, boolean initialState) {
         setCaption(caption);
@@ -34,9 +34,9 @@ public class CheckBox extends Button {
      * Creates a new switch button with a caption and a click listener.
      * 
      * @param caption
-     *                the caption of the switch button
+     *            the caption of the switch button
      * @param listener
-     *                the click listener
+     *            the click listener
      */
     public CheckBox(String caption, ClickListener listener) {
         setCaption(caption);
@@ -54,12 +54,12 @@ public class CheckBox extends Button {
      * Button.ClickEvent type.
      * 
      * @param caption
-     *                the Button caption.
+     *            the Button caption.
      * @param target
-     *                the Object having the method for listening button clicks.
+     *            the Object having the method for listening button clicks.
      * @param methodName
-     *                the name of the method in target object, that receives
-     *                button click events.
+     *            the name of the method in target object, that receives button
+     *            click events.
      */
     public CheckBox(String caption, Object target, String methodName) {
         setCaption(caption);
@@ -71,7 +71,7 @@ public class CheckBox extends Button {
      * Creates a new switch button that is connected to a boolean property.
      * 
      * @param state
-     *                the Initial state of the switch-button.
+     *            the Initial state of the switch-button.
      * @param dataSource
      */
     public CheckBox(String caption, Property dataSource) {
@@ -87,7 +87,7 @@ public class CheckBox extends Button {
      * default.
      * 
      * @param caption
-     *                the Button caption.
+     *            the Button caption.
      */
 
     public CheckBox(String caption) {
index 3f7d1ed76409470378c3fb21c8f99871b066f712..b4a8c02f0f3f49daede8bd7bec7ad1a8a8911de4 100644 (file)
@@ -37,10 +37,11 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
     /**
      * Sets and replaces all previous style names of the component. This method
      * will trigger a
-     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent
+     * RepaintRequestEvent}.
      * 
      * @param style
-     *                the new style of the component.
+     *            the new style of the component.
      */
     public void setStyleName(String style);
 
@@ -50,10 +51,11 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * classes as given on server side.
      * 
      * This method will trigger a
-     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent
+     * RepaintRequestEvent}.
      * 
      * @param style
-     *                the new style to be added to the component
+     *            the new style to be added to the component
      */
     public void addStyleName(String style);
 
@@ -61,7 +63,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * Removes given style name from component.
      * 
      * @param style
-     *                the style to be removed
+     *            the style to be removed
      */
     public void removeStyleName(String style);
 
@@ -77,8 +79,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * Components should be enabled by default.
      * </p>
      * 
-     * @return <code>true</code> if the component is enabled,
-     *         <code>false</code> if not.
+     * @return <code>true</code> if the component is enabled, <code>false</code>
+     *         if not.
      * @see VariableOwner#isEnabled()
      */
     public boolean isEnabled();
@@ -86,11 +88,12 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
     /**
      * Enables or disables the component. Being enabled means that the component
      * can be edited. This method will trigger a
-     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent
+     * RepaintRequestEvent}.
      * 
      * @param enabled
-     *                the boolean value specifying if the component should be
-     *                enabled after the call or not
+     *            the boolean value specifying if the component should be
+     *            enabled after the call or not
      */
     public void setEnabled(boolean enabled);
 
@@ -108,8 +111,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * component is shown in the UI or not.
      * 
      * @param visible
-     *                the Boolean value specifying if the component should be
-     *                visible after the call or not.
+     *            the Boolean value specifying if the component should be
+     *            visible after the call or not.
      */
     public void setVisible(boolean visible);
 
@@ -127,8 +130,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * <p>
      * This method calls automatically {@link #attach()} if the parent is
      * attached to a window (or is itself a window}, and {@link #detach()} if
-     * <code>parent</code> is set <code>null</code>, but the component was
-     * in the application.
+     * <code>parent</code> is set <code>null</code>, but the component was in
+     * the application.
      * </p>
      * 
      * <p>
@@ -137,7 +140,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * components to container, which call this method implicitly.
      * 
      * @param parent
-     *                the new parent component.
+     *            the new parent component.
      */
     public void setParent(Component parent);
 
@@ -152,11 +155,12 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
     /**
      * Sets the component's to read-only mode to the specified state. This
      * method will trigger a
-     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent
+     * RepaintRequestEvent}.
      * 
      * @param readOnly
-     *                the boolean value specifying if the component should be in
-     *                read-only mode after the call or not.
+     *            the boolean value specifying if the component should be in
+     *            read-only mode after the call or not.
      */
     public void setReadOnly(boolean readOnly);
 
@@ -169,12 +173,13 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
     public String getCaption();
 
     /**
-     * Sets the component's caption <code>String</code>. Caption is the
-     * visible name of the component. This method will trigger a
-     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+     * Sets the component's caption <code>String</code>. Caption is the visible
+     * name of the component. This method will trigger a
+     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent
+     * RepaintRequestEvent}.
      * 
      * @param caption
-     *                the new caption <code>String</code> for the component.
+     *            the new caption <code>String</code> for the component.
      */
     public void setCaption(String caption);
 
@@ -188,10 +193,11 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
 
     /**
      * Sets the component's icon. This method will trigger a
-     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+     * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent
+     * RepaintRequestEvent}.
      * 
      * @param icon
-     *                the icon to be shown with the component's caption.
+     *            the icon to be shown with the component's caption.
      */
     public void setIcon(Resource icon);
 
@@ -216,8 +222,8 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * Notifies the component that it is connected to an application. This
      * method is always called before the component is first time painted and is
      * suitable to be extended. The <code>getApplication</code> and
-     * <code>getWindow</code> methods might return <code>null</code> before
-     * this method is called.
+     * <code>getWindow</code> methods might return <code>null</code> before this
+     * method is called.
      * </p>
      * 
      * <p>
@@ -265,16 +271,16 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * themselves.
      * 
      * @param alreadyNotified
-     *                the collection of repaint request listeners that have been
-     *                already notified by the child. This component should not
-     *                renotify the listed listeners again. The container given
-     *                as parameter must be modifiable as the component might
-     *                modify it and pass it forwards. Null parameter is
-     *                interpreted as empty collection.
+     *            the collection of repaint request listeners that have been
+     *            already notified by the child. This component should not
+     *            renotify the listed listeners again. The container given as
+     *            parameter must be modifiable as the component might modify it
+     *            and pass it forwards. Null parameter is interpreted as empty
+     *            collection.
      */
     public void childRequestedRepaint(Collection alreadyNotified);
 
-    /* Component event framework *************************************** */
+    /* Component event framework */
 
     /**
      * Superclass of all component originated <code>Event</code>s.
@@ -290,7 +296,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
          * Constructs a new event with a specified source component.
          * 
          * @param source
-         *                the source component of the event.
+         *            the source component of the event.
          */
         public Event(Component source) {
             super(source);
@@ -306,7 +312,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
          * Notifies the listener of a component event.
          * 
          * @param event
-         *                the event that has occured.
+         *            the event that has occured.
          */
         public void componentEvent(Component.Event event);
     }
@@ -315,7 +321,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * Registers a new component event listener for this component.
      * 
      * @param listener
-     *                the new Listener to be registered.
+     *            the new Listener to be registered.
      */
     public void addListener(Component.Listener listener);
 
@@ -324,7 +330,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
      * component.
      * 
      * @param listener
-     *                the listener to be removed.
+     *            the listener to be removed.
      */
     public void removeListener(Component.Listener listener);
 
@@ -344,9 +350,9 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
          * Constructs a new event with a specified source component.
          * 
          * @param message
-         *                the error message.
+         *            the error message.
          * @param component
-         *                the source component.
+         *            the source component.
          */
         public ErrorEvent(ErrorMessage message, Component component) {
             super(component);
@@ -372,7 +378,7 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
          * Notifies the listener of a component error.
          * 
          * @param event
-         *                the event that has occured.
+         *            the event that has occured.
          */
         public void componentError(Component.ErrorEvent event);
     }
@@ -399,9 +405,9 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
          * specify the natural tab order of fields.
          * 
          * @param tabIndex
-         *                the tab order of this component. Indexes usually start
-         *                from 1. Negative value means that field is not wanted
-         *                to tabbing sequence.
+         *            the tab order of this component. Indexes usually start
+         *            from 1. Negative value means that field is not wanted to
+         *            tabbing sequence.
          */
         public void setTabIndex(int tabIndex);
 
index c5b72ca1008b73cf1e5d8d3893f2b6302c240bb1..a513b462fe52b5ecb0cdf64390d004d473df4566 100644 (file)
@@ -22,7 +22,7 @@ public interface ComponentContainer extends Component {
      * Adds the component into this container.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      */
     public void addComponent(Component c);
 
@@ -30,7 +30,7 @@ public interface ComponentContainer extends Component {
      * Removes the component from this container.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      */
     public void removeComponent(Component c);
 
@@ -53,9 +53,9 @@ public interface ComponentContainer extends Component {
      * </p>
      * 
      * @param oldComponent
-     *                the old component that will be replaced.
+     *            the old component that will be replaced.
      * @param newComponent
-     *                the new component to be replaced.
+     *            the new component to be replaced.
      */
     public void replaceComponent(Component oldComponent, Component newComponent);
 
@@ -73,8 +73,8 @@ public interface ComponentContainer extends Component {
      * components are removed from <code>source</code>.
      * 
      * @param source
-     *                the container which contains the components that are to be
-     *                moved to this container.
+     *            the container which contains the components that are to be
+     *            moved to this container.
      */
     public void moveComponentsFrom(ComponentContainer source);
 
@@ -82,7 +82,7 @@ public interface ComponentContainer extends Component {
      * Listens the component attach events.
      * 
      * @param listener
-     *                the listener to add.
+     *            the listener to add.
      */
     public void addListener(ComponentAttachListener listener);
 
@@ -90,7 +90,7 @@ public interface ComponentContainer extends Component {
      * Stops the listening component attach events.
      * 
      * @param listener
-     *                the listener to removed.
+     *            the listener to removed.
      */
     public void removeListener(ComponentAttachListener listener);
 
@@ -113,7 +113,7 @@ public interface ComponentContainer extends Component {
          * A new component is attached to container.
          * 
          * @param event
-         *                the component attach event.
+         *            the component attach event.
          */
         public void componentAttachedToContainer(ComponentAttachEvent event);
     }
@@ -127,7 +127,7 @@ public interface ComponentContainer extends Component {
          * A component has been detached from container.
          * 
          * @param event
-         *                the component detach event.
+         *            the component detach event.
          */
         public void componentDetachedFromContainer(ComponentDetachEvent event);
     }
@@ -148,10 +148,10 @@ public interface ComponentContainer extends Component {
          * Creates a new attach event.
          * 
          * @param container
-         *                the component container the component has been
-         *                detached to.
+         *            the component container the component has been detached
+         *            to.
          * @param attachedComponent
-         *                the component that has been attached.
+         *            the component that has been attached.
          */
         public ComponentAttachEvent(ComponentContainer container,
                 Component attachedComponent) {
@@ -163,7 +163,7 @@ public interface ComponentContainer extends Component {
          * Gets the component container.
          * 
          * @param the
-         *                component container.
+         *            component container.
          */
         public ComponentContainer getContainer() {
             return (ComponentContainer) getSource();
@@ -173,7 +173,7 @@ public interface ComponentContainer extends Component {
          * Gets the attached component.
          * 
          * @param the
-         *                attach component.
+         *            attach component.
          */
         public Component getAttachedComponent() {
             return component;
@@ -196,10 +196,10 @@ public interface ComponentContainer extends Component {
          * Creates a new detach event.
          * 
          * @param container
-         *                the component container the component has been
-         *                detached from.
+         *            the component container the component has been detached
+         *            from.
          * @param detachedComponent
-         *                the component that has been detached.
+         *            the component that has been detached.
          */
         public ComponentDetachEvent(ComponentContainer container,
                 Component detachedComponent) {
@@ -211,7 +211,7 @@ public interface ComponentContainer extends Component {
          * Gets the component container.
          * 
          * @param the
-         *                component container.
+         *            component container.
          */
         public ComponentContainer getContainer() {
             return (ComponentContainer) getSource();
index 5bf6f5d93e3c510c43cfdeb62a49743bfc366d7c..5d141eca8f1ab28c1aa7a03a6e0f4299ea0012a5 100644 (file)
@@ -57,7 +57,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * </p>
      * 
      * @param compositionRoot
-     *                the root of the composition component tree.
+     *            the root of the composition component tree.
      */
     public CustomComponent(Component compositionRoot) {
         setCompositionRoot(compositionRoot);
@@ -80,7 +80,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * </p>
      * 
      * @param compositionRoot
-     *                the root of the composition component tree.
+     *            the root of the composition component tree.
      */
     protected final void setCompositionRoot(Component compositionRoot) {
         if (compositionRoot != root) {
@@ -131,7 +131,7 @@ public class CustomComponent extends AbstractComponentContainer {
      * the UIDL as component tag attribute.
      * 
      * @param componentType
-     *                the componentType to set.
+     *            the componentType to set.
      */
     public void setComponentType(String componentType) {
         this.componentType = componentType;
index bd205557fd58f375fb6cd6908bfae7218082b2e4..a1859af1b511629cb83aaf652dea19774dcf1c34 100644 (file)
@@ -21,8 +21,8 @@ import com.itmill.toolkit.terminal.PaintTarget;
  * compatible with <code>java.util.Date</code>.
  * </p>
  * <p>
- * Since <code>DateField</code> extends <code>AbstractField</code> it
- * implements the {@link com.itmill.toolkit.data.Buffered}interface. A
+ * Since <code>DateField</code> extends <code>AbstractField</code> it implements
+ * the {@link com.itmill.toolkit.data.Buffered}interface. A
  * <code>DateField</code> is in write-through mode by default, so
  * {@link com.itmill.toolkit.ui.AbstractField#setWriteThrough(boolean)}must be
  * called to enable buffering.
@@ -35,7 +35,7 @@ import com.itmill.toolkit.terminal.PaintTarget;
  */
 public class DateField extends AbstractField {
 
-    /* Private members ************************************************* */
+    /* Private members */
 
     /**
      * Resolution identifier: milliseconds.
@@ -102,7 +102,7 @@ public class DateField extends AbstractField {
      */
     private Calendar calendar;
 
-    /* Constructors **************************************************** */
+    /* Constructors */
 
     /**
      * Constructs an empty <code>DateField</code> with no caption.
@@ -114,7 +114,7 @@ public class DateField extends AbstractField {
      * Constructs an empty <code>DateField</code> with caption.
      * 
      * @param caption
-     *                the caption of the datefield.
+     *            the caption of the datefield.
      */
     public DateField(String caption) {
         setCaption(caption);
@@ -125,9 +125,9 @@ public class DateField extends AbstractField {
      * <code>Property</code> and has the given caption <code>String</code>.
      * 
      * @param caption
-     *                the caption <code>String</code> for the editor.
+     *            the caption <code>String</code> for the editor.
      * @param dataSource
-     *                the Property to be edited with this editor.
+     *            the Property to be edited with this editor.
      */
     public DateField(String caption, Property dataSource) {
         this(dataSource);
@@ -139,7 +139,7 @@ public class DateField extends AbstractField {
      * <code>Property</code> and has no caption.
      * 
      * @param dataSource
-     *                the Property to be edited with this editor.
+     *            the Property to be edited with this editor.
      */
     public DateField(Property dataSource) throws IllegalArgumentException {
         if (!Date.class.isAssignableFrom(dataSource.getType())) {
@@ -159,16 +159,16 @@ public class DateField extends AbstractField {
      * is called to bind it.
      * 
      * @param caption
-     *                the caption <code>String</code> for the editor.
+     *            the caption <code>String</code> for the editor.
      * @param value
-     *                the Date value.
+     *            the Date value.
      */
     public DateField(String caption, Date value) {
         setValue(value);
         setCaption(caption);
     }
 
-    /* Component basic features ********************************************* */
+    /* Component basic features */
 
     /*
      * Paints this component. Don't add a JavaDoc comment here, we use the
@@ -238,7 +238,7 @@ public class DateField extends AbstractField {
      * interface.
      */
     public void changeVariables(Object source, Map variables) {
-       super.changeVariables(source, variables);
+        super.changeVariables(source, variables);
 
         if (!isReadOnly()
                 && (variables.containsKey("year")
@@ -318,7 +318,7 @@ public class DateField extends AbstractField {
         }
     }
 
-    /* Property features **************************************************** */
+    /* Property features */
 
     /*
      * Gets the edited property's type. Don't add a JavaDoc comment here, we use
@@ -397,7 +397,7 @@ public class DateField extends AbstractField {
      * Sets the resolution of the DateField.
      * 
      * @param resolution
-     *                the resolution to set.
+     *            the resolution to set.
      */
     public void setResolution(int resolution) {
         this.resolution = resolution;
index 92736e18da1f65c808c48b4f87b7f538d5fb367d..36a32e1355330e2df2f4aeb8c5d9bc804a1998a3 100644 (file)
@@ -91,7 +91,7 @@ public class Embedded extends AbstractComponent {
      * 
      * @param caption
      * @param source
-     *                the Source of the embedded object.
+     *            the Source of the embedded object.
      */
     public Embedded(String caption, Resource source) {
         setCaption(caption);
@@ -163,9 +163,9 @@ public class Embedded extends AbstractComponent {
      * parameter.
      * 
      * @param name
-     *                the name of the parameter.
+     *            the name of the parameter.
      * @param value
-     *                the value of the parameter.
+     *            the value of the parameter.
      */
     public void setParameter(String name, String value) {
         parameters.put(name, value);
@@ -187,7 +187,7 @@ public class Embedded extends AbstractComponent {
      * Removes an object parameter from the list.
      * 
      * @param name
-     *                the name of the parameter to remove.
+     *            the name of the parameter to remove.
      */
     public void removeParameter(String name) {
         parameters.remove(name);
@@ -245,7 +245,7 @@ public class Embedded extends AbstractComponent {
      * paths.
      * 
      * @param codebase
-     *                the codebase to set.
+     *            the codebase to set.
      */
     public void setCodebase(String codebase) {
         if (codebase != this.codebase
@@ -259,7 +259,7 @@ public class Embedded extends AbstractComponent {
      * Sets the codetype, the MIME-Type of the code.
      * 
      * @param codetype
-     *                the codetype to set.
+     *            the codetype to set.
      */
     public void setCodetype(String codetype) {
         if (codetype != this.codetype
@@ -273,7 +273,7 @@ public class Embedded extends AbstractComponent {
      * Sets the mimeType, the MIME-Type of the object.
      * 
      * @param mimeType
-     *                the mimeType to set.
+     *            the mimeType to set.
      */
     public void setMimeType(String mimeType) {
         if (mimeType != this.mimeType
@@ -287,7 +287,7 @@ public class Embedded extends AbstractComponent {
      * Sets the standby, the text to display while loading the object.
      * 
      * @param standby
-     *                the standby to set.
+     *            the standby to set.
      */
     public void setStandby(String standby) {
         if (standby != this.standby
@@ -310,7 +310,7 @@ public class Embedded extends AbstractComponent {
      * Sets the classId attribute.
      * 
      * @param classId
-     *                the classId to set.
+     *            the classId to set.
      */
     public void setClassId(String classId) {
         if (classId != this.classId
@@ -350,7 +350,7 @@ public class Embedded extends AbstractComponent {
      * The type is guessed from resource.
      * 
      * @param source
-     *                the source to set.
+     *            the source to set.
      */
     public void setSource(Resource source) {
         if (source != null && !source.equals(this.source)) {
@@ -376,7 +376,7 @@ public class Embedded extends AbstractComponent {
      * </p>
      * 
      * @param type
-     *                the type to set.
+     *            the type to set.
      */
     public void setType(int type) {
         if (type != TYPE_OBJECT && type != TYPE_IMAGE && type != TYPE_BROWSER) {
@@ -401,7 +401,7 @@ public class Embedded extends AbstractComponent {
      * Sets the archive attribute.
      * 
      * @param archive
-     *                the archive string to set.
+     *            the archive string to set.
      */
     public void setArchive(String archive) {
         if (archive != this.archive
index 331519f3bb247deec83f9eb3aa0511ac7302f0b0..a8a284f041c934dd2cb872fc10d6627633a94a03 100644 (file)
@@ -39,7 +39,7 @@ public class ExpandLayout extends OrderedLayout {
 
     /**
      * @param c
-     *                Component which container will be maximized
+     *            Component which container will be maximized
      */
     public void expand(Component c) {
         expanded = c;
index 9532b2cb64f4c40b17f7d1a6bb4f597a602fc93b..9f63fe0f18d50412b380d5f5730e00f0f15c3b3a 100644 (file)
@@ -47,7 +47,7 @@ public interface Field extends Component, BufferedValidatable, Property,
      * Sets the field required. Required fields must filled by the user.
      * 
      * @param required
-     *                Is the field required.
+     *            Is the field required.
      * @since 3.1
      */
     public void setRequired(boolean required);
@@ -69,7 +69,7 @@ public interface Field extends Component, BufferedValidatable, Property,
      * @since 5.2.6
      */
     public String getRequiredError();
-    
+
     /**
      * An <code>Event</code> object specifying the Field whose value has been
      * changed.
@@ -91,7 +91,7 @@ public interface Field extends Component, BufferedValidatable, Property,
          * Constructs a new event object with the specified source field object.
          * 
          * @param source
-         *                the field that caused the event.
+         *            the field that caused the event.
          */
         public ValueChangeEvent(Field source) {
             super(source);
index 9090f267b583b4693ed5c53ba7a9e688c2858baa..01bc707cc711d1476cde315d4e291090add39302 100644 (file)
@@ -23,9 +23,9 @@ public interface FieldFactory {
      * Creates a field based on type of data.
      * 
      * @param type
-     *                the type of data presented in field.
+     *            the type of data presented in field.
      * @param uiContext
-     *                the component where the field is presented.
+     *            the component where the field is presented.
      * @return Field the field suitable for editing the specified data.
      * 
      */
@@ -35,9 +35,9 @@ public interface FieldFactory {
      * Creates a field based on the property datasource.
      * 
      * @param property
-     *                the property datasource.
+     *            the property datasource.
      * @param uiContext
-     *                the component where the field is presented.
+     *            the component where the field is presented.
      * @return Field the field suitable for editing the specified data.
      */
     Field createField(Property property, Component uiContext);
@@ -46,11 +46,11 @@ public interface FieldFactory {
      * Creates a field based on the item and property id.
      * 
      * @param item
-     *                the item where the property belongs to.
+     *            the item where the property belongs to.
      * @param propertyId
-     *                the Id of the property.
+     *            the Id of the property.
      * @param uiContext
-     *                the component where the field is presented.
+     *            the component where the field is presented.
      * @return Field the field suitable for editing the specified data.
      */
     Field createField(Item item, Object propertyId, Component uiContext);
@@ -59,13 +59,13 @@ public interface FieldFactory {
      * Creates a field based on the container item id and property id.
      * 
      * @param container
-     *                the Container where the property belongs to.
+     *            the Container where the property belongs to.
      * @param itemId
-     *                the item Id.
+     *            the item Id.
      * @param propertyId
-     *                the Id of the property.
+     *            the Id of the property.
      * @param uiContext
-     *                the component where the field is presented.
+     *            the component where the field is presented.
      * @return Field the field suitable for editing the specified data.
      */
     Field createField(Container container, Object itemId, Object propertyId,
index d2bc21e85e063a7f6cb003f3d4c6cac5a09fcc7f..e9ed263bb5dcbff674379c049ac9bed28a97ec0d 100644 (file)
@@ -83,13 +83,13 @@ public interface Layout extends ComponentContainer {
          * is calculated as a bit mask of the two passed values.
          * 
          * @param childComponent
-         *                the component to align within it's layout cell.
+         *            the component to align within it's layout cell.
          * @param horizontalAlignment
-         *                the horizontal alignment for the child component
-         *                (left, center, right). Use ALIGNMENT constants.
+         *            the horizontal alignment for the child component (left,
+         *            center, right). Use ALIGNMENT constants.
          * @param verticalAlignment
-         *                the vertical alignment for the child component (top,
-         *                center, bottom). Use ALIGNMENT constants.
+         *            the vertical alignment for the child component (top,
+         *            center, bottom). Use ALIGNMENT constants.
          */
         public void setComponentAlignment(Component childComponent,
                 int horizontalAlignment, int verticalAlignment);
index 3f4b526d9a4221e4df21c4c5d83ec6408d793f20..d9e90c547fca85082fd53a5e13b7f3b887a8ab59 100644 (file)
@@ -60,17 +60,17 @@ public class Link extends AbstractComponent {
      * 
      * 
      * @param caption
-     *                the Link text.
+     *            the Link text.
      * @param targetName
-     *                the name of the target window where the link opens to.
-     *                Empty name of null implies that the target is opened to
-     *                the window containing the link.
+     *            the name of the target window where the link opens to. Empty
+     *            name of null implies that the target is opened to the window
+     *            containing the link.
      * @param width
-     *                the Width of the target window.
+     *            the Width of the target window.
      * @param height
-     *                the Height of the target window.
+     *            the Height of the target window.
      * @param border
-     *                the Border style of the target window.
+     *            the Border style of the target window.
      * 
      */
     public Link(String caption, Resource resource, String targetName,
@@ -96,9 +96,9 @@ public class Link extends AbstractComponent {
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paintContent(PaintTarget target) throws PaintException {
 
@@ -174,7 +174,7 @@ public class Link extends AbstractComponent {
      * Sets the border of the target window.
      * 
      * @param targetBorder
-     *                the targetBorder to set.
+     *            the targetBorder to set.
      */
     public void setTargetBorder(int targetBorder) {
         if (targetBorder == TARGET_BORDER_DEFAULT
@@ -189,7 +189,7 @@ public class Link extends AbstractComponent {
      * Sets the target window height.
      * 
      * @param targetHeight
-     *                the targetHeight to set.
+     *            the targetHeight to set.
      */
     public void setTargetHeight(int targetHeight) {
         this.targetHeight = targetHeight;
@@ -200,7 +200,7 @@ public class Link extends AbstractComponent {
      * Sets the target window name.
      * 
      * @param targetName
-     *                the targetName to set.
+     *            the targetName to set.
      */
     public void setTargetName(String targetName) {
         this.targetName = targetName;
@@ -211,7 +211,7 @@ public class Link extends AbstractComponent {
      * Sets the target window width.
      * 
      * @param targetWidth
-     *                the targetWidth to set.
+     *            the targetWidth to set.
      */
     public void setTargetWidth(int targetWidth) {
         this.targetWidth = targetWidth;
@@ -231,7 +231,7 @@ public class Link extends AbstractComponent {
      * Sets the resource this link opens.
      * 
      * @param resource
-     *                the resource to set.
+     *            the resource to set.
      */
     public void setResource(Resource resource) {
         this.resource = resource;
index 303e321e85a38d12bd817a7c4c6548799e67fbc2..96c7a35b0c3c00ad8666653de3d59fb3a7578c07 100644 (file)
@@ -41,7 +41,7 @@ public class ListSelect extends AbstractSelect {
      * adapter.
      * 
      * @param columns
-     *                the number of columns to set.
+     *            the number of columns to set.
      */
     public void setColumns(int columns) {
         if (columns < 0) {
@@ -67,7 +67,7 @@ public class ListSelect extends AbstractSelect {
      * adapter.
      * 
      * @param rows
-     *                the number of rows to set.
+     *            the number of rows to set.
      */
     public void setRows(int rows) {
         if (rows < 0) {
index d3e445dcf6e7d5427334eee150edae20be6fb77e..c87deb38f4644b799359f8ce85a1618502087d1c 100644 (file)
@@ -43,7 +43,7 @@ public class NativeSelect extends AbstractSelect {
      * adapter.
      * 
      * @param columns
-     *                the number of columns to set.
+     *            the number of columns to set.
      */
     public void setColumns(int columns) {
         if (columns < 0) {
index a3c3da5392ce596aa0747cce3508f1d739788cc9..ad85da4c87232a54e15661ef037bdc380f75d714 100644 (file)
@@ -26,7 +26,7 @@ import com.itmill.toolkit.terminal.PaintTarget;
 public class OrderedLayout extends AbstractLayout implements
         Layout.AlignmentHandler, Layout.SpacingHandler {
 
-    /* Predefined orientations ***************************************** */
+    /* Predefined orientations */
 
     /**
      * Components are to be laid out vertically.
@@ -45,7 +45,7 @@ public class OrderedLayout extends AbstractLayout implements
      */
     protected LinkedList components = new LinkedList();
 
-    /* Child component alignments ************************************** */
+    /* Child component alignments */
 
     /**
      * Mapping from components to alignments (horizontal + vertical).
@@ -75,7 +75,7 @@ public class OrderedLayout extends AbstractLayout implements
      * parameters.
      * 
      * @param orientation
-     *                the Orientation of the layout.
+     *            the Orientation of the layout.
      */
     public OrderedLayout(int orientation) {
         this.orientation = orientation;
@@ -95,7 +95,7 @@ public class OrderedLayout extends AbstractLayout implements
      * or under the previous component.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      */
     public void addComponent(Component c) {
         super.addComponent(c);
@@ -108,7 +108,7 @@ public class OrderedLayout extends AbstractLayout implements
      * or on top of the other components.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      */
     public void addComponentAsFirst(Component c) {
         super.addComponent(c);
@@ -120,10 +120,10 @@ public class OrderedLayout extends AbstractLayout implements
      * Adds a component into indexed position in this container.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      * @param index
-     *                the Index of the component position. The components
-     *                currently in and after the position are shifted forwards.
+     *            the Index of the component position. The components currently
+     *            in and after the position are shifted forwards.
      */
     public void addComponent(Component c, int index) {
         super.addComponent(c);
@@ -135,7 +135,7 @@ public class OrderedLayout extends AbstractLayout implements
      * Removes the component from this container.
      * 
      * @param c
-     *                the component to be removed.
+     *            the component to be removed.
      */
     public void removeComponent(Component c) {
         super.removeComponent(c);
@@ -158,9 +158,9 @@ public class OrderedLayout extends AbstractLayout implements
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
@@ -206,7 +206,7 @@ public class OrderedLayout extends AbstractLayout implements
      * Set the orientation of the container.
      * 
      * @param orientation
-     *                the New value of property orientation.
+     *            the New value of property orientation.
      */
     public void setOrientation(int orientation) {
 
@@ -268,8 +268,9 @@ public class OrderedLayout extends AbstractLayout implements
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.ui.Layout.AlignmentHandler#setComponentAlignment(com.itmill.toolkit.ui.Component,
-     *      int, int)
+     * @see
+     * com.itmill.toolkit.ui.Layout.AlignmentHandler#setComponentAlignment(com
+     * .itmill.toolkit.ui.Component, int, int)
      */
     public void setComponentAlignment(Component childComponent,
             int horizontalAlignment, int verticalAlignment) {
@@ -281,7 +282,9 @@ public class OrderedLayout extends AbstractLayout implements
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.ui.Layout.AlignmentHandler#getComponentAlignment(com.itmill.toolkit.ui.Component)
+     * @see
+     * com.itmill.toolkit.ui.Layout.AlignmentHandler#getComponentAlignment(com
+     * .itmill.toolkit.ui.Component)
      */
     public int getComponentAlignment(Component childComponent) {
         final Integer bitMask = (Integer) componentToAlignment
index 6359687c3ccf47f8e445e7a8490dce716afb690e..49a8a01dc67d3d0972f07f89207dbb81f15c1be5 100644 (file)
@@ -69,7 +69,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * Creates a new empty panel with given layout. Layout must be non-null.
      * 
      * @param layout
-     *                the layout used in the panel.
+     *            the layout used in the panel.
      */
     public Panel(Layout layout) {
         setLayout(layout);
@@ -79,7 +79,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * Creates a new empty panel with caption. Default layout is used.
      * 
      * @param caption
-     *                the caption used in the panel.
+     *            the caption used in the panel.
      */
     public Panel(String caption) {
         this(caption, null);
@@ -89,9 +89,9 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * Creates a new empty panel with caption.
      * 
      * @param caption
-     *                the caption of the panel.
+     *            the caption of the panel.
      * @param layout
-     *                the layout used in the panel.
+     *            the layout used in the panel.
      */
     public Panel(String caption, Layout layout) {
         this(layout);
@@ -116,7 +116,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * (changed in 5.2.2). Use function in Layout interface manually.
      * 
      * @param newLayout
-     *                the New layout of the panel.
+     *            the New layout of the panel.
      */
     public void setLayout(Layout newLayout) {
 
@@ -158,9 +158,9 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paintContent(PaintTarget target) throws PaintException {
         layout.paint(target);
@@ -233,7 +233,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * Adds the component into this container.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#addComponent(com.itmill.toolkit.ui.Component)
      */
     public void addComponent(Component c) {
@@ -246,7 +246,7 @@ public class Panel extends AbstractComponentContainer implements Scrollable,
      * Removes the component from this container.
      * 
      * @param c
-     *                The component to be added.
+     *            The component to be added.
      * @see com.itmill.toolkit.ui.AbstractComponentContainer#removeComponent(com.itmill.toolkit.ui.Component)
      */
     public void removeComponent(Component c) {
index c10ac7daca660de314f6a732d7f64e0c95759deb..4b7104251c53fdc5636213f4e5e482c2f192e23e 100644 (file)
@@ -83,7 +83,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * ProgressIndicator.
      * 
      * @param readOnly
-     *                True to enable read-only mode, False to disable it.
+     *            True to enable read-only mode, False to disable it.
      */
     public void setReadOnly(boolean readOnly) {
         if (dataSource == null) {
@@ -109,9 +109,9 @@ public class ProgressIndicator extends AbstractField implements Property,
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the Paint Operation fails.
+     *             if the Paint Operation fails.
      */
     public void paintContent(PaintTarget target) throws PaintException {
         target.addAttribute("indeterminate", indeterminate);
@@ -138,7 +138,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * is the Float between 0 and 1.
      * 
      * @param newValue
-     *                the New value of the ProgressIndicator.
+     *            the New value of the ProgressIndicator.
      * @see com.itmill.toolkit.ui.AbstractField#setValue(java.lang.Object)
      */
     public void setValue(Object newValue) {
@@ -182,7 +182,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * Sets the property as data-source for viewing.
      * 
      * @param newDataSource
-     *                the new data source.
+     *            the new data source.
      * @see com.itmill.toolkit.ui.AbstractField#setPropertyDataSource(com.itmill.toolkit.data.Property)
      */
     public void setPropertyDataSource(Property newDataSource) {
@@ -217,7 +217,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * Sets wheter or not the ProgressIndicator is indeterminate.
      * 
      * @param newValue
-     *                true to set to indeterminate mode.
+     *            true to set to indeterminate mode.
      */
     public void setIndeterminate(boolean newValue) {
         indeterminate = newValue;
@@ -237,7 +237,7 @@ public class ProgressIndicator extends AbstractField implements Property,
      * Sets the interval that component checks for progress.
      * 
      * @param newValue
-     *                the interval in milliseconds.
+     *            the interval in milliseconds.
      */
     public void setPollingInterval(int newValue) {
         pollingInterval = newValue;
index 738fc96a30d674229b5a4a2d9a13fac7fc5e4a83..48a1217fdd7d3c0894352683cacbd6c793bcd594 100644 (file)
@@ -58,9 +58,9 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      */
     private boolean optionRequest;
 
-    /* Constructors ********************************************************* */
+    /* Constructors */
 
-    /* Component methods **************************************************** */
+    /* Component methods */
 
     public Select() {
         super();
@@ -82,9 +82,9 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paintContent(PaintTarget target) throws PaintException {
         if (isMultiSelect()) {
@@ -232,8 +232,8 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * 
      * @param options
      * @param needNullSelectOption
-     *                flag to indicate if nullselect option needs to be taken
-     *                into consideration
+     *            flag to indicate if nullselect option needs to be taken into
+     *            consideration
      */
     private List sanitetizeList(List options, boolean needNullSelectOption) {
 
@@ -445,7 +445,7 @@ public class Select extends AbstractSelect implements AbstractSelect.Filtering {
      * @deprecated
      * 
      * @param columns
-     *                the number of columns to set.
+     *            the number of columns to set.
      */
     public void setColumns(int columns) {
         if (columns < 0) {
index 55286cba8df563934a6aad44c293916a1113e7e2..6a7cb9e056865ab8c8e6479cee3eaafcf5199fe8 100644 (file)
@@ -22,7 +22,7 @@ import com.itmill.toolkit.terminal.PaintTarget;
  */
 public class SplitPanel extends AbstractLayout {
 
-    /* Predefined orientations ***************************************** */
+    /* Predefined orientations */
 
     /**
      * Components are to be layed out vertically.
@@ -63,7 +63,7 @@ public class SplitPanel extends AbstractLayout {
      * parameters.
      * 
      * @param orientation
-     *                the Orientation of the layout.
+     *            the Orientation of the layout.
      */
     public SplitPanel(int orientation) {
         this();
@@ -88,7 +88,7 @@ public class SplitPanel extends AbstractLayout {
      * or under the previous component.
      * 
      * @param c
-     *                the component to be added.
+     *            the component to be added.
      */
     public void addComponent(Component c) {
         if (firstComponent == null) {
@@ -125,7 +125,7 @@ public class SplitPanel extends AbstractLayout {
      * Removes the component from this container.
      * 
      * @param c
-     *                the component to be removed.
+     *            the component to be removed.
      */
     public void removeComponent(Component c) {
         super.removeComponent(c);
@@ -188,9 +188,9 @@ public class SplitPanel extends AbstractLayout {
      * Paints the content of this component.
      * 
      * @param target
-     *                the Paint Event.
+     *            the Paint Event.
      * @throws PaintException
-     *                 if the paint operation failed.
+     *             if the paint operation failed.
      */
     public void paintContent(PaintTarget target) throws PaintException {
         super.paintContent(target);
@@ -228,7 +228,7 @@ public class SplitPanel extends AbstractLayout {
      * Set the orientation of the container.
      * 
      * @param orientation
-     *                the New value of property orientation.
+     *            the New value of property orientation.
      */
     public void setOrientation(int orientation) {
 
@@ -256,7 +256,7 @@ public class SplitPanel extends AbstractLayout {
      * Moves the position of the splitter.
      * 
      * @param pos
-     *                the new size of the first region in persentage
+     *            the new size of the first region in persentage
      */
     public void setSplitPosition(int pos) {
         setSplitPosition(pos, UNITS_PERCENTAGE);
@@ -266,9 +266,9 @@ public class SplitPanel extends AbstractLayout {
      * Moves the position of the splitter with given position and unit.
      * 
      * @param pos
-     *                size of the first region
+     *            size of the first region
      * @param unit
-     *                the unit (from {@link Size}) in which the size is given.
+     *            the unit (from {@link Size}) in which the size is given.
      */
     public void setSplitPosition(int pos, int unit) {
         this.pos = pos;
@@ -280,8 +280,7 @@ public class SplitPanel extends AbstractLayout {
      * handle.
      * 
      * @param locked
-     *                Set <code>true</code> if locked, <code>false</code>
-     *                otherwise.
+     *            Set <code>true</code> if locked, <code>false</code> otherwise.
      */
     public void setLocked(boolean locked) {
         this.locked = locked;
index 8dce0539e1e9e1711272f38b8764e1e810250624..0d22f641adf85728a0a30172d085d34f92f4cca9 100644 (file)
@@ -370,7 +370,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param visibleColumns
-     *                the Array of shown property id:s.
+     *            the Array of shown property id:s.
      */
     public void setVisibleColumns(Object[] visibleColumns) {
 
@@ -467,8 +467,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param columnHeaders
-     *                the Array of column headers that match the
-     *                <code>getVisibleColumns</code> method.
+     *            the Array of column headers that match the
+     *            <code>getVisibleColumns</code> method.
      */
     public void setColumnHeaders(String[] columnHeaders) {
 
@@ -527,8 +527,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param columnIcons
-     *                the Array of icons that match the
-     *                <code>getVisibleColumns</code>.
+     *            the Array of icons that match the
+     *            <code>getVisibleColumns</code>.
      */
     public void setColumnIcons(Resource[] columnIcons) {
 
@@ -554,8 +554,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * 
      * <p>
      * The items in the array must match the properties identified by
-     * <code>getVisibleColumns()</code>. The possible values for the
-     * alignments include:
+     * <code>getVisibleColumns()</code>. The possible values for the alignments
+     * include:
      * <ul>
      * <li><code>ALIGN_LEFT</code>: Left alignment</li>
      * <li><code>ALIGN_CENTER</code>: Centered</li>
@@ -585,8 +585,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * 
      * <p>
      * The items in the array must match the properties identified by
-     * <code>getVisibleColumns()</code>. The possible values for the
-     * alignments include:
+     * <code>getVisibleColumns()</code>. The possible values for the alignments
+     * include:
      * <ul>
      * <li><code>ALIGN_LEFT</code>: Left alignment</li>
      * <li><code>ALIGN_CENTER</code>: Centered</li>
@@ -596,7 +596,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param columnAlignments
-     *                the Column alignments array.
+     *            the Column alignments array.
      */
     public void setColumnAlignments(String[] columnAlignments) {
 
@@ -635,9 +635,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * will make decision of width.
      * 
      * @param columnId
-     *                colunmns property id
+     *            colunmns property id
      * @param width
-     *                width to be reserved for colunmns content
+     *            width to be reserved for colunmns content
      * @since 4.0.3
      */
     public void setColumnWidth(Object columnId, int width) {
@@ -679,7 +679,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param pageLength
-     *                the Length of one page.
+     *            the Length of one page.
      */
     public void setPageLength(int pageLength) {
         if (pageLength >= 0 && this.pageLength != pageLength) {
@@ -721,7 +721,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Setter for property currentPageFirstItemId.
      * 
      * @param currentPageFirstItemId
-     *                the New value of property currentPageFirstItemId.
+     *            the New value of property currentPageFirstItemId.
      */
     public void setCurrentPageFirstItemId(Object currentPageFirstItemId) {
 
@@ -759,7 +759,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Gets the icon Resource for the specified column.
      * 
      * @param propertyId
-     *                the propertyId indentifying the column.
+     *            the propertyId indentifying the column.
      * @return the icon for the specified column; null if the column has no icon
      *         set, or if the column is not visible.
      */
@@ -774,9 +774,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param propertyId
-     *                the propertyId identifying the column.
+     *            the propertyId identifying the column.
      * @param icon
-     *                the icon Resource to set.
+     *            the icon Resource to set.
      */
     public void setColumnIcon(Object propertyId, Resource icon) {
 
@@ -795,7 +795,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Gets the header for the specified column.
      * 
      * @param propertyId
-     *                the propertyId indentifying the column.
+     *            the propertyId indentifying the column.
      * @return the header for the specifed column if it has one.
      */
     public String getColumnHeader(Object propertyId) {
@@ -816,9 +816,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sets the column header for the specified column;
      * 
      * @param propertyId
-     *                the propertyId indentifying the column.
+     *            the propertyId indentifying the column.
      * @param header
-     *                the header to set.
+     *            the header to set.
      */
     public void setColumnHeader(Object propertyId, String header) {
 
@@ -836,7 +836,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Gets the specified column's alignment.
      * 
      * @param propertyId
-     *                the propertyID identifying the column.
+     *            the propertyID identifying the column.
      * @return the specified column's alignment if it as one; null otherwise.
      */
     public String getColumnAlignment(Object propertyId) {
@@ -853,9 +853,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param propertyId
-     *                the propertyID identifying the column.
+     *            the propertyID identifying the column.
      * @param alignment
-     *                the desired alignment.
+     *            the desired alignment.
      */
     public void setColumnAlignment(Object propertyId, String alignment) {
 
@@ -882,7 +882,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Checks if the specified column is collapsed.
      * 
      * @param propertyId
-     *                the propertyID identifying the column.
+     *            the propertyID identifying the column.
      * @return true if the column is collapsed; false otherwise;
      */
     public boolean isColumnCollapsed(Object propertyId) {
@@ -895,9 +895,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * 
      * 
      * @param propertyId
-     *                the propertyID identifying the column.
+     *            the propertyID identifying the column.
      * @param collapsed
-     *                the desired collapsedness.
+     *            the desired collapsedness.
      * @throws IllegalAccessException
      */
     public void setColumnCollapsed(Object propertyId, boolean collapsed)
@@ -930,7 +930,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sets whether column collapsing is allowed or not.
      * 
      * @param collapsingAllowed
-     *                specifies whether column collapsing is allowed.
+     *            specifies whether column collapsing is allowed.
      */
     public void setColumnCollapsingAllowed(boolean collapsingAllowed) {
         columnCollapsingAllowed = collapsingAllowed;
@@ -956,7 +956,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sets whether column reordering is allowed or not.
      * 
      * @param reorderingAllowed
-     *                specifies whether column reordering is allowed.
+     *            specifies whether column reordering is allowed.
      */
     public void setColumnReorderingAllowed(boolean reorderingAllowed) {
         columnReorderingAllowed = reorderingAllowed;
@@ -1086,7 +1086,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Setter for property currentPageFirstItem.
      * 
      * @param newIndex
-     *                the New value of property currentPageFirstItem.
+     *            the New value of property currentPageFirstItem.
      */
     public void setCurrentPageFirstItemIndex(int newIndex) {
         setCurrentPageFirstItemIndex(newIndex, true);
@@ -1109,7 +1109,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * @deprecated functionality is not needed in ajax rendering model
      * 
      * @param pageBuffering
-     *                the New value of property pageBuffering.
+     *            the New value of property pageBuffering.
      */
     public void setPageBufferingEnabled(boolean pageBuffering) {
 
@@ -1136,7 +1136,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param selectable
-     *                the New value of property selectable.
+     *            the New value of property selectable.
      */
     public void setSelectable(boolean selectable) {
         if (this.selectable != selectable) {
@@ -1158,7 +1158,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Setter for property columnHeaderMode.
      * 
      * @param columnHeaderMode
-     *                the New value of property columnHeaderMode.
+     *            the New value of property columnHeaderMode.
      */
     public void setColumnHeaderMode(int columnHeaderMode) {
         if (columnHeaderMode >= COLUMN_HEADER_MODE_HIDDEN
@@ -1398,20 +1398,20 @@ public class Table extends AbstractSelect implements Action.Container,
      * <code>toString()</code> is used as row caption.
      * <li><code>ROW_HEADER_MODE_PROPERTY</code>: Property set with
      * <code>setItemCaptionPropertyId()</code> is used as row header.
-     * <li><code>ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID</code>: Items
-     * Id-objects <code>toString()</code> is used as row header. If caption is
-     * explicitly specified, it overrides the id-caption.
+     * <li><code>ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID</code>: Items Id-objects
+     * <code>toString()</code> is used as row header. If caption is explicitly
+     * specified, it overrides the id-caption.
      * <li><code>ROW_HEADER_MODE_EXPLICIT</code>: The row headers must be
      * explicitly specified.</li>
-     * <li><code>ROW_HEADER_MODE_INDEX</code>: The index of the item is used
-     * as row caption. The index mode can only be used with the containers
+     * <li><code>ROW_HEADER_MODE_INDEX</code>: The index of the item is used as
+     * row caption. The index mode can only be used with the containers
      * implementing <code>Container.Indexed</code> interface.</li>
      * </ul>
      * The default value is <code>ROW_HEADER_MODE_HIDDEN</code>
      * </p>
      * 
      * @param mode
-     *                the One of the modes listed above.
+     *            the One of the modes listed above.
      */
     public void setRowHeaderMode(int mode) {
         if (ROW_HEADER_MODE_HIDDEN == mode) {
@@ -1441,13 +1441,13 @@ public class Table extends AbstractSelect implements Action.Container,
      * columns) with given values.
      * 
      * @param cells
-     *                the Object array that is used for filling the visible
-     *                cells new row. The types must be settable to visible
-     *                column property types.
+     *            the Object array that is used for filling the visible cells
+     *            new row. The types must be settable to visible column property
+     *            types.
      * @param itemId
-     *                the Id the new row. If null, a new id is automatically
-     *                assigned. If given, the table cant already have a item
-     *                with given id.
+     *            the Id the new row. If null, a new id is automatically
+     *            assigned. If given, the table cant already have a item with
+     *            given id.
      * @return Returns item id for the new row. Returns null if operation fails.
      */
     public Object addItem(Object[] cells, Object itemId)
@@ -1756,7 +1756,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Go to mode where content content refreshing has effect.
      * 
      * @param refreshContent
-     *                true if content refresh needs to be done
+     *            true if content refresh needs to be done
      */
     protected void enableContentRefreshing(boolean refreshContent) {
         isContentRefreshesEnabled = true;
@@ -1768,8 +1768,9 @@ public class Table extends AbstractSelect implements Action.Container,
     /*
      * (non-Javadoc)
      * 
-     * @see com.itmill.toolkit.ui.AbstractSelect#paintContent(com.itmill.toolkit.
-     *      terminal.PaintTarget)
+     * @see
+     * com.itmill.toolkit.ui.AbstractSelect#paintContent(com.itmill.toolkit.
+     * terminal.PaintTarget)
      */
     public void paintContent(PaintTarget target) throws PaintException {
 
@@ -2142,11 +2143,11 @@ public class Table extends AbstractSelect implements Action.Container,
      * the value representation.
      * 
      * @param rowId
-     *                the Id of the row (same as item Id).
+     *            the Id of the row (same as item Id).
      * @param colId
-     *                the Id of the column.
+     *            the Id of the column.
      * @param property
-     *                the Property to be presented.
+     *            the Property to be presented.
      * @return Object Either formatted value or Component for field.
      * @see #setFieldFactory(FieldFactory)
      */
@@ -2169,11 +2170,11 @@ public class Table extends AbstractSelect implements Action.Container,
      * and return a empty string for null properties.
      * 
      * @param rowId
-     *                the Id of the row (same as item Id).
+     *            the Id of the row (same as item Id).
      * @param colId
-     *                the Id of the column.
+     *            the Id of the column.
      * @param property
-     *                the Property to be formatted.
+     *            the Property to be formatted.
      * @return the String representation of property and its value.
      * @since 3.1
      */
@@ -2341,11 +2342,11 @@ public class Table extends AbstractSelect implements Action.Container,
      * Adds a new property to the table and show it as a visible column.
      * 
      * @param propertyId
-     *                the Id of the proprty.
+     *            the Id of the proprty.
      * @param type
-     *                the class of the property.
+     *            the class of the property.
      * @param defaultValue
-     *                the default value given for all existing items.
+     *            the default value given for all existing items.
      * @see com.itmill.toolkit.data.Container#addContainerProperty(Object,
      *      Class, Object)
      */
@@ -2375,21 +2376,21 @@ public class Table extends AbstractSelect implements Action.Container,
      * Adds a new property to the table and show it as a visible column.
      * 
      * @param propertyId
-     *                the Id of the proprty
+     *            the Id of the proprty
      * @param type
-     *                the class of the property
+     *            the class of the property
      * @param defaultValue
-     *                the default value given for all existing items
+     *            the default value given for all existing items
      * @param columnHeader
-     *                the Explicit header of the column. If explicit header is
-     *                not needed, this should be set null.
+     *            the Explicit header of the column. If explicit header is not
+     *            needed, this should be set null.
      * @param columnIcon
-     *                the Icon of the column. If icon is not needed, this should
-     *                be set null.
+     *            the Icon of the column. If icon is not needed, this should be
+     *            set null.
      * @param columnAlignment
-     *                the Alignment of the column. Null implies align left.
+     *            the Alignment of the column. Null implies align left.
      * @throws UnsupportedOperationException
-     *                 if the operation is not supported.
+     *             if the operation is not supported.
      * @see com.itmill.toolkit.data.Container#addContainerProperty(Object,
      *      Class, Object)
      */
@@ -2424,9 +2425,9 @@ public class Table extends AbstractSelect implements Action.Container,
      * </p>
      * 
      * @param id
-     *                the id of the column to be added
+     *            the id of the column to be added
      * @param generatedColumn
-     *                the {@link ColumnGenerator} to use for this column
+     *            the {@link ColumnGenerator} to use for this column
      */
     public void addGeneratedColumn(Object id, ColumnGenerator generatedColumn) {
         if (generatedColumn == null) {
@@ -2448,7 +2449,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Removes a generated column previously added with addGeneratedColumn.
      * 
      * @param id
-     *                id of the generated column to remove
+     *            id of the generated column to remove
      * @return true if the column could be removed (existed in the Table)
      */
     public boolean removeGeneratedColumn(Object id) {
@@ -2523,7 +2524,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Adding new items is not supported.
      * 
      * @throws UnsupportedOperationException
-     *                 if set to true.
+     *             if set to true.
      * @see com.itmill.toolkit.ui.Select#setNewItemsAllowed(boolean)
      */
     public void setNewItemsAllowed(boolean allowNewOptions)
@@ -2537,7 +2538,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Focusing to this component is not supported.
      * 
      * @throws UnsupportedOperationException
-     *                 if invoked.
+     *             if invoked.
      * @see com.itmill.toolkit.ui.AbstractField#focus()
      */
     public void focus() throws UnsupportedOperationException {
@@ -2653,7 +2654,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * BaseFieldFactory is used.
      * 
      * @param fieldFactory
-     *                the field factory to set.
+     *            the field factory to set.
      * @see #isEditable
      * @see BaseFieldFactory
      * 
@@ -2696,7 +2697,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * property to true.
      * 
      * @param editable
-     *                true if table should be editable by user.
+     *            true if table should be editable by user.
      * @see Field
      * @see FieldFactory
      * 
@@ -2713,8 +2714,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sorts the table.
      * 
      * @throws UnsupportedOperationException
-     *                 if the container data source does not implement
-     *                 Container.Sortable
+     *             if the container data source does not implement
+     *             Container.Sortable
      * @see com.itmill.toolkit.data.Container.Sortable#sort(java.lang.Object[],
      *      boolean[])
      * 
@@ -2739,8 +2740,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sorts the table by currently selected sorting column.
      * 
      * @throws UnsupportedOperationException
-     *                 if the container data source does not implement
-     *                 Container.Sortable
+     *             if the container data source does not implement
+     *             Container.Sortable
      */
     public void sort() {
         if (getSortContainerPropertyId() == null) {
@@ -2777,7 +2778,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sets the currently sorted column property id.
      * 
      * @param propertyId
-     *                the Container property id of the currently sorted column.
+     *            the Container property id of the currently sorted column.
      */
     public void setSortContainerPropertyId(Object propertyId) {
         setSortContainerPropertyId(propertyId, true);
@@ -2807,8 +2808,7 @@ public class Table extends AbstractSelect implements Action.Container,
     /**
      * Is the table currently sorted in ascending order.
      * 
-     * @return <code>true</code> if ascending, <code>false</code> if
-     *         descending.
+     * @return <code>true</code> if ascending, <code>false</code> if descending.
      */
     public boolean isSortAscending() {
         return sortAscending;
@@ -2818,8 +2818,8 @@ public class Table extends AbstractSelect implements Action.Container,
      * Sets the table in ascending order.
      * 
      * @param ascending
-     *                <code>true</code> if ascending, <code>false</code> if
-     *                descending.
+     *            <code>true</code> if ascending, <code>false</code> if
+     *            descending.
      */
     public void setSortAscending(boolean ascending) {
         setSortAscending(ascending, true);
@@ -2862,7 +2862,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * columns are given even in the case where datasource would support this.
      * 
      * @param sortDisabled
-     *                True iff sorting is disabled.
+     *            True iff sorting is disabled.
      */
     public void setSortDisabled(boolean sortDisabled) {
         if (this.sortDisabled != sortDisabled) {
@@ -2907,13 +2907,12 @@ public class Table extends AbstractSelect implements Action.Container,
          * generated.
          * 
          * @param source
-         *                the source Table
+         *            the source Table
          * @param itemId
-         *                the itemId (aka rowId) for the of the cell to be
-         *                generated
+         *            the itemId (aka rowId) for the of the cell to be generated
          * @param columnId
-         *                the id for the generated column (as specified in
-         *                addGeneratedColumn)
+         *            the id for the generated column (as specified in
+         *            addGeneratedColumn)
          * @return
          */
         public abstract Component generateCell(Table source, Object itemId,
@@ -2924,7 +2923,7 @@ public class Table extends AbstractSelect implements Action.Container,
      * Set cell style generator for Table.
      * 
      * @param cellStyleGenerator
-     *                New cell style generator or null to remove generator.
+     *            New cell style generator or null to remove generator.
      */
     public void setCellStyleGenerator(CellStyleGenerator cellStyleGenerator) {
         this.cellStyleGenerator = cellStyleGenerator;
@@ -2952,10 +2951,9 @@ public class Table extends AbstractSelect implements Action.Container,
          * Called by Table when a cell (and row) is painted.
          * 
          * @param itemId
-         *                The itemId of the painted cell
+         *            The itemId of the painted cell
          * @param propertyId
-         *                The propertyId of the cell, null when getting row
-         *                style
+         *            The propertyId of the cell, null when getting row style
          * @return The style name to add to this cell or row. (the CSS class
          *         name will be i-table-cell-content-[style name], or
          *         i-table-row-[style name] for rows)
index c6d07ebe65cddfd2e12085d36dc5b77664498195..61151debad1bedd393bab915a172b15f84afda0d 100644 (file)
@@ -335,8 +335,8 @@ public class Tree extends AbstractSelect implements Container.Hierarchical,
             String key = (String) variables.get("clickedKey");
 
             Object id = itemIdMapper.get(key);
-            MouseEventDetails details = MouseEventDetails.deSerialize((String) variables
-                    .get("clickEvent"));
+            MouseEventDetails details = MouseEventDetails
+                    .deSerialize((String) variables.get("clickEvent"));
             fireEvent(new ItemClickEvent(this, getItem(id), id, null, details));
         }
 
index 2799bb7c0e1b7020cc95b913fb2ad330d99240a8..ec0a1ab7bd019f5e02877e84f1c72f8c939504ec 100644 (file)
@@ -50,7 +50,7 @@ public class TwinColSelect extends AbstractSelect {
      * adapter.
      * 
      * @param columns
-     *                the number of columns to set.
+     *            the number of columns to set.
      */
     public void setColumns(int columns) {
         if (columns < 0) {
@@ -76,7 +76,7 @@ public class TwinColSelect extends AbstractSelect {
      * adapter.
      * 
      * @param rows
-     *                the number of rows to set.
+     *            the number of rows to set.
      */
     public void setRows(int rows) {
         if (rows < 0) {