@@ -36,12 +36,12 @@ | |||
********************************************************************** */ | |||
package com.enably.tk; | |||
package com.itmill.tk; | |||
import com.enably.tk.service.ApplicationContext; | |||
import com.enably.tk.terminal.*; | |||
import com.enably.tk.ui.AbstractComponent; | |||
import com.enably.tk.ui.Window; | |||
import com.itmill.tk.service.ApplicationContext; | |||
import com.itmill.tk.terminal.*; | |||
import com.itmill.tk.ui.AbstractComponent; | |||
import com.itmill.tk.ui.Window; | |||
import java.util.Collection; | |||
import java.util.Collections; | |||
@@ -60,7 +60,7 @@ import java.net.URL; | |||
/** <p>Abstract base class required for all MillStone applications. This | |||
* class provides all the basic services required by the MillStone | |||
* framework. These services allow external discovery and manipulation of | |||
* the user, {@link com.enably.tk.ui.Window windows} and | |||
* the user, {@link com.itmill.tk.ui.Window windows} and | |||
* themes, and starting and stopping the application.</p> | |||
* | |||
* <p>As mentioned, all MillStone applications must inherit this class. | |||
@@ -76,7 +76,7 @@ import java.net.URL; | |||
* correspond to a URL gotten by catenating the window's name to the | |||
* application URL.</p> | |||
* | |||
* <p>See the class <code>com.enably.tk.demo.HelloWorld</code> for | |||
* <p>See the class <code>com.itmill.tk.demo.HelloWorld</code> for | |||
* a simple example of a fully working MillStone Application.</p> | |||
* | |||
* <p><strong>Window access.</strong> <code>Application</code> provides | |||
@@ -93,7 +93,7 @@ import java.net.URL; | |||
* for a preferred theme. If the window does not prefer a specific theme, | |||
* the application containing the window is queried. If neither the | |||
* application prefers a theme, the default theme for the | |||
* {@link com.enably.tk.terminal.Terminal terminal} is used. The | |||
* {@link com.itmill.tk.terminal.Terminal terminal} is used. The | |||
* terminal always defines a default theme.</p> | |||
* | |||
* @author IT Mill Ltd. | |||
@@ -176,7 +176,7 @@ public abstract class Application | |||
/** Adds a new window to the application. | |||
* | |||
* <p>This implicitly invokes the | |||
* {@link com.enably.tk.ui.Window#setApplication(Application)} | |||
* {@link com.itmill.tk.ui.Window#setApplication(Application)} | |||
* method. </p> | |||
* | |||
* @param window the new <code>Window</code> to add | |||
@@ -475,7 +475,7 @@ public abstract class Application | |||
return "APP/" + key + "/" + filename; | |||
} | |||
/* @see com.enably.tk.terminal.URIHandler#handleURI(URL, String) | |||
/* @see com.itmill.tk.terminal.URIHandler#handleURI(URL, String) | |||
*/ | |||
public DownloadStream handleURI( | |||
URL context, | |||
@@ -740,7 +740,7 @@ public abstract class Application | |||
} | |||
/** | |||
* @see com.enably.tk.terminal.Terminal.ErrorListener#terminalError(com.enably.tk.terminal.Terminal.ErrorEvent) | |||
* @see com.itmill.tk.terminal.Terminal.ErrorListener#terminalError(com.itmill.tk.terminal.Terminal.ErrorEvent) | |||
*/ | |||
public void terminalError(Terminal.ErrorEvent event) { | |||
@@ -36,13 +36,13 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
import com.enably.tk.terminal.ErrorMessage; | |||
import com.enably.tk.terminal.PaintException; | |||
import com.enably.tk.terminal.PaintTarget; | |||
import com.enably.tk.terminal.SystemError; | |||
import com.itmill.tk.terminal.ErrorMessage; | |||
import com.itmill.tk.terminal.PaintException; | |||
import com.itmill.tk.terminal.PaintTarget; | |||
import com.itmill.tk.terminal.SystemError; | |||
/** <p>Defines the interface to commit and discard changes to an object, | |||
* supporting read-through and write-through modes.</p> | |||
@@ -226,7 +226,7 @@ public interface Buffered { | |||
* <code>ERROR</code> level. Also source exception without any causes | |||
* are of level <code>ERROR</code>. | |||
* | |||
* @see com.enably.tk.terminal.ErrorMessage#getErrorLevel() | |||
* @see com.itmill.tk.terminal.ErrorMessage#getErrorLevel() | |||
*/ | |||
public int getErrorLevel() { | |||
@@ -36,7 +36,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
/** <p>This interface defines the combination of Validatable and Buffered interfaces. |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
import java.util.Collection; | |||
@@ -521,7 +521,7 @@ public interface Container { | |||
* <code>false</code> is returned; the children must be first | |||
* explicitly removed with | |||
* {@link #setParent(Object itemId, Object newParentId)}or | |||
* {@link com.enably.tk.data.Container#removeItem(Object itemId)}. | |||
* {@link com.itmill.tk.data.Container#removeItem(Object itemId)}. | |||
* </p> | |||
* | |||
* <p> |
@@ -36,7 +36,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
import java.util.Collection; | |||
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
/** Property is a simple data object that contains one typed value. This | |||
* interface contains methods to inspect and modify the stored value and its |
@@ -36,7 +36,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
import java.util.Collection; | |||
@@ -47,7 +47,7 @@ import java.util.Collection; | |||
* @author IT Mill Ltd. | |||
* @version @VERSION@ | |||
* @since 3.0 | |||
* @see com.enably.tk.data.Validator | |||
* @see com.itmill.tk.data.Validator | |||
*/ | |||
public interface Validatable { | |||
@@ -36,14 +36,14 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data; | |||
package com.itmill.tk.data; | |||
import com.enably.tk.terminal.ErrorMessage; | |||
import com.enably.tk.terminal.PaintException; | |||
import com.enably.tk.terminal.PaintTarget; | |||
import com.itmill.tk.terminal.ErrorMessage; | |||
import com.itmill.tk.terminal.PaintException; | |||
import com.itmill.tk.terminal.PaintTarget; | |||
/** Object validator interface. Implementors of this class can be added to | |||
* any {@link com.enably.tk.data.Validatable} object to verify | |||
* any {@link com.itmill.tk.data.Validatable} object to verify | |||
* its value. The <code>Validatable#isValid(Object)</code> iterates all | |||
* registered <code>Validator</code>s, calling their {@link #validate(Object)} | |||
* methods. <code>validate(Object)</code> should throw the |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.beans.Introspector; | |||
import java.beans.BeanInfo; | |||
@@ -44,7 +44,7 @@ import java.lang.reflect.Method; | |||
import java.util.Collection; | |||
import java.util.Iterator; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Property; | |||
/** A wrapper class for adding the Item interface to any Java Bean. | |||
* |
@@ -36,7 +36,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.util.Collection; | |||
import java.util.Iterator; | |||
@@ -45,12 +45,12 @@ import java.util.Collections; | |||
import java.util.Hashtable; | |||
import java.util.HashSet; | |||
import com.enably.tk.data.Container; | |||
import com.enably.tk.data.Item; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Container; | |||
import com.itmill.tk.data.Item; | |||
import com.itmill.tk.data.Property; | |||
/** <p>A wrapper class for adding external hierarchy to containers not | |||
* implementing the {@link com.enably.tk.data.Container.Hierarchical} | |||
* implementing the {@link com.itmill.tk.data.Container.Hierarchical} | |||
* interface.</p> | |||
* | |||
* <p>If the wrapped container is changed directly (that is, not through | |||
@@ -278,7 +278,7 @@ public class ContainerHierarchicalWrapper | |||
* <code>areChildrenAllowed</code> is false this method fails and | |||
* <code>false</code> is returned; the children must be first explicitly | |||
* removed with {@link #setParent(Object itemId, Object newParentId)} or | |||
* {@link com.enably.tk.data.Container#removeItem(Object itemId)}.</p> | |||
* {@link com.itmill.tk.data.Container#removeItem(Object itemId)}.</p> | |||
* | |||
* @param itemId ID of the Item in the container whose child | |||
* capability is to be set |
@@ -36,19 +36,19 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.util.Collection; | |||
import java.util.Iterator; | |||
import java.util.LinkedList; | |||
import java.util.Hashtable; | |||
import com.enably.tk.data.Container; | |||
import com.enably.tk.data.Item; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Container; | |||
import com.itmill.tk.data.Item; | |||
import com.itmill.tk.data.Property; | |||
/** <p>A wrapper class for adding external ordering to containers not | |||
* implementing the {@link com.enably.tk.data.Container.Ordered} | |||
* implementing the {@link com.itmill.tk.data.Container.Ordered} | |||
* interface.</p> | |||
* | |||
* <p>If the wrapped container is changed directly (that is, not through | |||
@@ -457,7 +457,7 @@ public class ContainerOrderedWrapper | |||
listener); | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container.Ordered#addItemAfter(Object, Object) | |||
* @see com.itmill.tk.data.Container.Ordered#addItemAfter(Object, Object) | |||
*/ | |||
public Item addItemAfter(Object previousItemId, Object newItemId) | |||
throws UnsupportedOperationException { | |||
@@ -477,7 +477,7 @@ public class ContainerOrderedWrapper | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container.Ordered#addItemAfter(Object) | |||
* @see com.itmill.tk.data.Container.Ordered#addItemAfter(Object) | |||
*/ | |||
public Object addItemAfter(Object previousItemId) | |||
throws UnsupportedOperationException { |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.util.ArrayList; | |||
import java.util.Arrays; | |||
@@ -50,11 +50,11 @@ import java.io.FilenameFilter; | |||
import java.io.IOException; | |||
import java.lang.reflect.Method; | |||
import com.enably.tk.data.Container; | |||
import com.enably.tk.data.Item; | |||
import com.enably.tk.data.Property; | |||
import com.enably.tk.service.FileTypeResolver; | |||
import com.enably.tk.terminal.Resource; | |||
import com.itmill.tk.data.Container; | |||
import com.itmill.tk.data.Item; | |||
import com.itmill.tk.data.Property; | |||
import com.itmill.tk.service.FileTypeResolver; | |||
import com.itmill.tk.terminal.Resource; | |||
/** A hierarchical container wrapper for a filesystem. | |||
* | |||
@@ -627,7 +627,7 @@ public class FilesystemContainer implements Container.Hierarchical { | |||
} | |||
/** Filesystem container does not support adding new properties. | |||
* @see com.enably.tk.data.Item#addItemProperty(Object, Property) | |||
* @see com.itmill.tk.data.Item#addItemProperty(Object, Property) | |||
*/ | |||
public boolean addItemProperty(Object id, Property property) | |||
throws UnsupportedOperationException { | |||
@@ -637,7 +637,7 @@ public class FilesystemContainer implements Container.Hierarchical { | |||
} | |||
/** Filesystem container does not support removing properties. | |||
* @see com.enably.tk.data.Item#removeItemProperty(Object) | |||
* @see com.itmill.tk.data.Item#removeItemProperty(Object) | |||
*/ | |||
public boolean removeItemProperty(Object id) | |||
throws UnsupportedOperationException { | |||
@@ -710,7 +710,7 @@ public class FilesystemContainer implements Container.Hierarchical { | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#addContainerProperty(Object, Class, Object) | |||
* @see com.itmill.tk.data.Container#addContainerProperty(Object, Class, Object) | |||
*/ | |||
public boolean addContainerProperty( | |||
Object propertyId, | |||
@@ -721,28 +721,28 @@ public class FilesystemContainer implements Container.Hierarchical { | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#addItem() | |||
* @see com.itmill.tk.data.Container#addItem() | |||
*/ | |||
public Object addItem() throws UnsupportedOperationException { | |||
throw new UnsupportedOperationException("File system container does not support this operation"); | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#addItem(Object) | |||
* @see com.itmill.tk.data.Container#addItem(Object) | |||
*/ | |||
public Item addItem(Object itemId) throws UnsupportedOperationException { | |||
throw new UnsupportedOperationException("File system container does not support this operation"); | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#removeAllItems() | |||
* @see com.itmill.tk.data.Container#removeAllItems() | |||
*/ | |||
public boolean removeAllItems() throws UnsupportedOperationException { | |||
throw new UnsupportedOperationException("File system container does not support this operation"); | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#removeItem(Object) | |||
* @see com.itmill.tk.data.Container#removeItem(Object) | |||
*/ | |||
public boolean removeItem(Object itemId) | |||
throws UnsupportedOperationException { | |||
@@ -750,7 +750,7 @@ public class FilesystemContainer implements Container.Hierarchical { | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#removeContainerProperty(Object) | |||
* @see com.itmill.tk.data.Container#removeContainerProperty(Object) | |||
*/ | |||
public boolean removeContainerProperty(Object propertyId) | |||
throws UnsupportedOperationException { |
@@ -36,7 +36,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.util.Collection; | |||
import java.util.LinkedList; | |||
@@ -44,8 +44,8 @@ import java.util.Collections; | |||
import java.util.Hashtable; | |||
import java.util.HashSet; | |||
import com.enably.tk.data.Container; | |||
import com.enably.tk.data.Item; | |||
import com.itmill.tk.data.Container; | |||
import com.itmill.tk.data.Item; | |||
/** A specialized Container whose contents can be accessed like it was a | |||
* tree-like structure. | |||
@@ -126,7 +126,7 @@ public class HierarchicalContainer | |||
* <code>areChildrenAllowed</code> is false this method fails and | |||
* <code>false</code> is returned; the children must be first explicitly | |||
* removed with {@link #setParent(Object itemId, Object newParentId)} or | |||
* {@link com.enably.tk.data.Container#removeItem(Object itemId)}.</p> | |||
* {@link com.itmill.tk.data.Container#removeItem(Object itemId)}.</p> | |||
* | |||
* @param itemId ID of the Item in the container whose child | |||
* capability is to be set | |||
@@ -232,7 +232,7 @@ public class HierarchicalContainer | |||
return true; | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#addItem() | |||
* @see com.itmill.tk.data.Container#addItem() | |||
*/ | |||
public Object addItem() { | |||
Object id = super.addItem(); | |||
@@ -243,7 +243,7 @@ public class HierarchicalContainer | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#addItem(Object) | |||
* @see com.itmill.tk.data.Container#addItem(Object) | |||
*/ | |||
public Item addItem(Object itemId) { | |||
Item item = super.addItem(itemId); | |||
@@ -253,7 +253,7 @@ public class HierarchicalContainer | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#removeAllItems() | |||
* @see com.itmill.tk.data.Container#removeAllItems() | |||
*/ | |||
public boolean removeAllItems() { | |||
boolean success = super.removeAllItems(); | |||
@@ -268,7 +268,7 @@ public class HierarchicalContainer | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container#removeItem(Object) | |||
* @see com.itmill.tk.data.Container#removeItem(Object) | |||
*/ | |||
public boolean removeItem(Object itemId) { | |||
boolean success = super.removeItem(itemId); |
@@ -35,25 +35,25 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.util.*; | |||
import java.lang.reflect.Constructor; | |||
import com.enably.tk.data.Container; | |||
import com.enably.tk.data.Item; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Container; | |||
import com.itmill.tk.data.Item; | |||
import com.itmill.tk.data.Property; | |||
/** | |||
* Indexed container implementation. | |||
* <p> | |||
* A list implementation of the com.enably.tk.data.Container interface. A | |||
* A list implementation of the com.itmill.tk.data.Container interface. A | |||
* list is a ordered collection wherein the user has a precise control over | |||
* where in the list each new Item is inserted. The user may access the Items by | |||
* their integer index (position in the list) or by their Item ID. | |||
* </p> | |||
* | |||
* @see com.enably.tk.data.Container | |||
* @see com.itmill.tk.data.Container | |||
* | |||
* @author IT Mill Ltd. | |||
* @version | |||
@@ -185,7 +185,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
* ID of the Property to retrieve | |||
* @return Property with the given ID or <code>null</code> | |||
* | |||
* @see com.enably.tk.data.Container#getContainerProperty(Object, | |||
* @see com.itmill.tk.data.Container#getContainerProperty(Object, | |||
* Object) | |||
*/ | |||
public Property getContainerProperty(Object itemId, Object propertyId) { | |||
@@ -459,7 +459,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container.Ordered#addItemAfter(Object, | |||
* @see com.itmill.tk.data.Container.Ordered#addItemAfter(Object, | |||
* Object) | |||
*/ | |||
public Item addItemAfter(Object previousItemId, Object newItemId) { | |||
@@ -476,7 +476,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container.Ordered#addItemAfter(Object) | |||
* @see com.itmill.tk.data.Container.Ordered#addItemAfter(Object) | |||
*/ | |||
public Object addItemAfter(Object previousItemId) { | |||
@@ -516,7 +516,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container.Indexed#addItemAt(int, Object) | |||
* @see com.itmill.tk.data.Container.Indexed#addItemAt(int, Object) | |||
*/ | |||
public Item addItemAt(int index, Object newItemId) { | |||
@@ -535,7 +535,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
} | |||
/** | |||
* @see com.enably.tk.data.Container.Indexed#addItemAt(int) | |||
* @see com.itmill.tk.data.Container.Indexed#addItemAt(int) | |||
*/ | |||
public Object addItemAt(int index) { | |||
@@ -817,7 +817,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
/* Internal Item and Property implementations *************************** */ | |||
/* | |||
* A class implementing the com.enably.tk.data.Item interface to be | |||
* A class implementing the com.itmill.tk.data.Item interface to be | |||
* contained in the list. @author IT Mill Ltd. | |||
* | |||
* @version @VERSION@ | |||
@@ -926,7 +926,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
/** | |||
* Indexed container does not support adding new properties. | |||
* | |||
* @see com.enably.tk.data.Item#addProperty(Object, Property) | |||
* @see com.itmill.tk.data.Item#addProperty(Object, Property) | |||
*/ | |||
public boolean addItemProperty(Object id, Property property) | |||
throws UnsupportedOperationException { | |||
@@ -937,7 +937,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
/** | |||
* Indexed container does not support removing properties. | |||
* | |||
* @see com.enably.tk.data.Item#removeProperty(Object) | |||
* @see com.itmill.tk.data.Item#removeProperty(Object) | |||
*/ | |||
public boolean removeItemProperty(Object id) | |||
throws UnsupportedOperationException { | |||
@@ -948,7 +948,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
} | |||
/* | |||
* A class implementing the com.enably.tk.data.Property interface to be | |||
* A class implementing the com.itmill.tk.data.Property interface to be | |||
* contained in the Items contained in the list. @author IT Mill Ltd. | |||
* | |||
* @version @VERSION@ | |||
@@ -1139,7 +1139,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
* | |||
* @param listener | |||
* the new Listener to be registered | |||
* @see com.enably.tk.data.Property.ValueChangeNotifier#addListener(ValueChangeListener) | |||
* @see com.itmill.tk.data.Property.ValueChangeNotifier#addListener(ValueChangeListener) | |||
*/ | |||
public void addListener(Property.ValueChangeListener listener) { | |||
addSinglePropertyChangeListener(propertyId, itemId, listener); | |||
@@ -1150,7 +1150,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
* | |||
* @param listener | |||
* listener to be removed | |||
* @see com.enably.tk.data.Property.ValueChangeNotifier#removeListener(ValueChangeListener) | |||
* @see com.itmill.tk.data.Property.ValueChangeNotifier#removeListener(ValueChangeListener) | |||
*/ | |||
public void removeListener(Property.ValueChangeListener listener) { | |||
removeSinglePropertyChangeListener(propertyId, itemId, listener); | |||
@@ -1165,7 +1165,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
/* | |||
* (non-Javadoc) | |||
* | |||
* @see com.enably.tk.data.Container.Sortable#sort(java.lang.Object[], | |||
* @see com.itmill.tk.data.Container.Sortable#sort(java.lang.Object[], | |||
* boolean[]) | |||
*/ | |||
public synchronized void sort(Object[] propertyId, boolean[] ascending) { | |||
@@ -1201,7 +1201,7 @@ public class IndexedContainer implements Container, Container.Indexed, | |||
/* | |||
* (non-Javadoc) | |||
* | |||
* @see com.enably.tk.data.Container.Sortable#getSortableContainerPropertyIds() | |||
* @see com.itmill.tk.data.Container.Sortable#getSortableContainerPropertyIds() | |||
*/ | |||
public Collection getSortableContainerPropertyIds() { | |||
@@ -35,14 +35,14 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.lang.reflect.InvocationTargetException; | |||
import java.lang.reflect.Method; | |||
import java.lang.reflect.Constructor; | |||
import java.util.LinkedList; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Property; | |||
/** <p>Proxy class for creating Properties from pairs of getter and setter | |||
* methods of a Bean property. An instance of this class can be thought as |
@@ -35,16 +35,16 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Property; | |||
import java.lang.reflect.Constructor; | |||
import java.util.LinkedList; | |||
/** A simple data object containing one typed value. This class is a | |||
* straightforward implementation of the the | |||
* {@link com.enably.tk.data.Property} interface. | |||
* {@link com.itmill.tk.data.Property} interface. | |||
* | |||
* @author IT Mill Ltd. | |||
* @version @VERSION@ |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.util; | |||
package com.itmill.tk.data.util; | |||
import java.util.Collection; | |||
import java.util.Collections; | |||
@@ -44,8 +44,8 @@ import java.util.HashMap; | |||
import java.util.Iterator; | |||
import java.util.LinkedList; | |||
import com.enably.tk.data.Item; | |||
import com.enably.tk.data.Property; | |||
import com.itmill.tk.data.Item; | |||
import com.itmill.tk.data.Property; | |||
/** | |||
* Class for handling a set of identified Properties. The elements contained in |
@@ -35,14 +35,14 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.validator; | |||
package com.itmill.tk.data.validator; | |||
import java.util.Collection; | |||
import java.util.HashSet; | |||
import java.util.Iterator; | |||
import java.util.LinkedList; | |||
import com.enably.tk.data.*; | |||
import com.itmill.tk.data.*; | |||
/** Composite validator. | |||
* |
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.validator; | |||
package com.itmill.tk.data.validator; | |||
import com.enably.tk.data.*; | |||
import com.itmill.tk.data.*; | |||
/* This validator is used for validating properties that |
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.data.validator; | |||
package com.itmill.tk.data.validator; | |||
import com.enably.tk.data.*; | |||
import com.itmill.tk.data.*; | |||
/** |
@@ -1,6 +1,6 @@ | |||
package com.enably.tk.demo; | |||
package com.itmill.tk.demo; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
/** <p>An example application implementing a simple web-based calculator. | |||
* using the MillStone UI library. The application opens up a window and | |||
@@ -11,11 +11,11 @@ import com.enably.tk.ui.*; | |||
* button was pressed, figures what that button does, and updates the user | |||
* interface accordingly.</p> | |||
* | |||
* @see com.enably.tk.Application | |||
* @see com.enably.tk.ui.Button.ClickListener | |||
* @see com.itmill.tk.Application | |||
* @see com.itmill.tk.ui.Button.ClickListener | |||
*/ | |||
public class Calc | |||
extends com.enably.tk.Application | |||
extends com.itmill.tk.Application | |||
implements Button.ClickListener { | |||
/** The label used as the display */ | |||
@@ -45,7 +45,7 @@ public class Calc | |||
public void init() { | |||
/* | |||
* Create a new {@link com.enably.tk.ui.GridLayout GridLayout} | |||
* Create a new {@link com.itmill.tk.ui.GridLayout GridLayout} | |||
* to hold the UI components needed by the calculator. | |||
*/ | |||
GridLayout layout = new GridLayout(4, 5); |
@@ -1,11 +1,11 @@ | |||
package com.enably.tk.demo; | |||
package com.itmill.tk.demo; | |||
import java.io.*; | |||
import java.util.*; | |||
import java.lang.ref.WeakReference; | |||
import com.enably.tk.terminal.StreamResource; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.StreamResource; | |||
import com.itmill.tk.ui.*; | |||
/** Chat example application. | |||
* | |||
@@ -20,13 +20,13 @@ import com.enably.tk.ui.*; | |||
* </ul> | |||
* </p> | |||
* | |||
* @see com.enably.tk.Application | |||
* @see com.enably.tk.ui.FrameWindow | |||
* @see com.enably.tk.terminal.StreamResource | |||
* @see com.itmill.tk.Application | |||
* @see com.itmill.tk.ui.FrameWindow | |||
* @see com.itmill.tk.terminal.StreamResource | |||
*/ | |||
public class Chat | |||
extends com.enably.tk.Application | |||
extends com.itmill.tk.Application | |||
implements StreamResource.StreamSource, Button.ClickListener { | |||
/** Linked list of Chat applications who participate the discussion */ |
@@ -1,21 +1,21 @@ | |||
package com.enably.tk.demo; | |||
package com.itmill.tk.demo; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
/** The classic "hello, world!" example for the MillStone framework. The | |||
* class simply implements the abstract | |||
* {@link com.enably.tk.Application#init() init()} method | |||
* {@link com.itmill.tk.Application#init() init()} method | |||
* in which it creates a Window and adds a Label to it. | |||
* | |||
* @author IT Mill Ltd. | |||
* @see com.enably.tk.Application | |||
* @see com.enably.tk.ui.Window | |||
* @see com.enably.tk.ui.Label | |||
* @see com.itmill.tk.Application | |||
* @see com.itmill.tk.ui.Window | |||
* @see com.itmill.tk.ui.Label | |||
*/ | |||
public class HelloWorld extends com.enably.tk.Application { | |||
public class HelloWorld extends com.itmill.tk.Application { | |||
/** The initialization method that is the only requirement for | |||
* inheriting the com.enably.tk.service.Application class. It will | |||
* inheriting the com.itmill.tk.service.Application class. It will | |||
* be automatically called by the framework when a user accesses the | |||
* application. | |||
*/ |
@@ -1,16 +1,16 @@ | |||
package com.enably.tk.demo; | |||
package com.itmill.tk.demo; | |||
import com.enably.tk.Application; | |||
import com.enably.tk.data.*; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.Application; | |||
import com.itmill.tk.data.*; | |||
import com.itmill.tk.ui.*; | |||
/** <p>Example application demonstrating simple user login.</p> | |||
* | |||
* @author IT Mill Ltd. | |||
* @see com.enably.tk.service.Application | |||
* @see com.enably.tk.ui.Window | |||
* @see com.enably.tk.ui.TextField | |||
* @see com.enably.tk.ui.Button | |||
* @see com.itmill.tk.service.Application | |||
* @see com.itmill.tk.ui.Window | |||
* @see com.itmill.tk.ui.TextField | |||
* @see com.itmill.tk.ui.Button | |||
*/ | |||
public class Login | |||
extends Application |
@@ -35,11 +35,11 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.terminal.ClassResource; | |||
import com.enably.tk.terminal.Resource; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.ClassResource; | |||
import com.itmill.tk.terminal.Resource; | |||
import com.itmill.tk.ui.*; | |||
public class Feature extends CustomComponent { | |||
@@ -35,14 +35,14 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.util.Iterator; | |||
import java.util.StringTokenizer; | |||
import com.enably.tk.data.*; | |||
import com.enably.tk.terminal.ClassResource; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.data.*; | |||
import com.itmill.tk.terminal.ClassResource; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureBrowser | |||
extends CustomComponent |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
public class FeatureBuffering extends Feature { | |||
protected String getExampleSrc() { | |||
@@ -46,7 +46,7 @@ public class FeatureBuffering extends Feature { | |||
return "Buffering"; | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "<p>Millstone data model provides interface for implementing " | |||
@@ -68,7 +68,7 @@ public class FeatureBuffering extends Feature { | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getImage() | |||
* @see com.itmill.tk.demo.features.Feature#getImage() | |||
*/ | |||
protected String getImage() { | |||
return "buffering.jpg"; |
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureButton extends Feature { | |||
@@ -75,7 +75,7 @@ public class FeatureButton extends Feature { | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "In Millstone, boolean input values are represented by buttons. " |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
public class FeatureContainers extends Feature { | |||
@@ -35,13 +35,13 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.net.MalformedURLException; | |||
import java.net.URL; | |||
import com.enably.tk.terminal.ExternalResource; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.ExternalResource; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureCustomLayout extends Feature { | |||
@@ -35,13 +35,13 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.util.Locale; | |||
import com.enably.tk.data.util.IndexedContainer; | |||
import com.enably.tk.data.util.MethodProperty; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.data.util.IndexedContainer; | |||
import com.itmill.tk.data.util.MethodProperty; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureDateField extends Feature { | |||
@@ -35,11 +35,11 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.terminal.ClassResource; | |||
import com.enably.tk.terminal.Sizeable; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.ClassResource; | |||
import com.itmill.tk.terminal.Sizeable; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureEmbedded extends Feature { | |||
@@ -35,12 +35,12 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.util.Date; | |||
import com.enably.tk.data.Property; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.data.Property; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureForm | |||
extends Feature |
@@ -35,13 +35,13 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.util.HashMap; | |||
import java.util.List; | |||
import com.enably.tk.ui.*; | |||
import com.enably.tk.ui.Button.ClickEvent; | |||
import com.itmill.tk.ui.*; | |||
import com.itmill.tk.ui.Button.ClickEvent; | |||
public class FeatureFrameWindow | |||
extends Feature |
@@ -35,11 +35,11 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.util.Date; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureGridLayout extends Feature { | |||
@@ -82,7 +82,7 @@ public class FeatureGridLayout extends Feature { | |||
+ "gl.addComponent(new Label(\"Label 4 in GridLayout\"));\n"; | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "<p>This feature provides a container that lays out components " |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
public class FeatureItems extends Feature { | |||
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureLabel extends Feature { | |||
@@ -83,7 +83,7 @@ public class FeatureLabel extends Feature { | |||
return "Label l = new Label(\"Caption\");\n"; | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "Labels components are for captions and plain text. " |
@@ -35,10 +35,10 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.terminal.ExternalResource; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.ExternalResource; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureLink extends Feature { | |||
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureOrderedLayout extends Feature { | |||
@@ -85,7 +85,7 @@ public class FeatureOrderedLayout extends Feature { | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "This feature provides a container for laying out components either " |
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeaturePanel extends Feature { | |||
@@ -35,17 +35,17 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.net.URL; | |||
import java.util.Iterator; | |||
import java.util.Map; | |||
import com.enably.tk.terminal.DownloadStream; | |||
import com.enably.tk.terminal.ExternalResource; | |||
import com.enably.tk.terminal.ParameterHandler; | |||
import com.enably.tk.terminal.URIHandler; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.DownloadStream; | |||
import com.itmill.tk.terminal.ExternalResource; | |||
import com.itmill.tk.terminal.ParameterHandler; | |||
import com.itmill.tk.terminal.URIHandler; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureParameters | |||
extends Feature | |||
@@ -120,7 +120,7 @@ public class FeatureParameters | |||
} | |||
/** Add URI and parametes handlers to window. | |||
* @see com.enably.tk.ui.Component#attach() | |||
* @see com.itmill.tk.ui.Component#attach() | |||
*/ | |||
public void attach() { | |||
super.attach(); | |||
@@ -129,7 +129,7 @@ public class FeatureParameters | |||
} | |||
/** Remove all handlers from window | |||
* @see com.enably.tk.ui.Component#detach() | |||
* @see com.itmill.tk.ui.Component#detach() | |||
*/ | |||
public void detach() { | |||
super.detach(); | |||
@@ -138,7 +138,7 @@ public class FeatureParameters | |||
} | |||
/** Update URI | |||
* @see com.enably.tk.terminal.URIHandler#handleURI(URL, String) | |||
* @see com.itmill.tk.terminal.URIHandler#handleURI(URL, String) | |||
*/ | |||
public DownloadStream handleURI(URL context, String relativeUri) { | |||
this.context.setValue(context.toString()); | |||
@@ -147,7 +147,7 @@ public class FeatureParameters | |||
} | |||
/** Update parameters table | |||
* @see com.enably.tk.terminal.ParameterHandler#handleParameters(Map) | |||
* @see com.itmill.tk.terminal.ParameterHandler#handleParameters(Map) | |||
*/ | |||
public void handleParameters(Map parameters) { | |||
params.removeAllItems(); |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
public class FeatureProperties extends Feature { | |||
@@ -70,7 +70,7 @@ public class FeatureProperties extends Feature { | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getImage() | |||
* @see com.itmill.tk.demo.features.Feature#getImage() | |||
*/ | |||
protected String getImage() { | |||
return "properties.jpg"; |
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureSelect extends Feature { | |||
@@ -80,7 +80,7 @@ public class FeatureSelect extends Feature { | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "The select component combines two different modes of item selection. " |
@@ -35,13 +35,13 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.net.MalformedURLException; | |||
import java.net.URL; | |||
import com.enably.tk.terminal.ExternalResource; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.terminal.ExternalResource; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureServerEvents extends Feature { | |||
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureTabSheet extends Feature { | |||
@@ -35,10 +35,10 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.event.Action; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.event.Action; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureTable extends Feature implements Action.Handler { | |||
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureTextField extends Feature { | |||
@@ -79,7 +79,7 @@ public class FeatureTextField extends Feature { | |||
+ "tf.setValue(\"Contents\");"; | |||
} | |||
/** | |||
* @see com.enably.tk.demo.features.Feature#getDescriptionXHTML() | |||
* @see com.itmill.tk.demo.features.Feature#getDescriptionXHTML() | |||
*/ | |||
protected String getDescriptionXHTML() { | |||
return "<p>Millstone combines the logic of both the single line text-entry field and the multi-line " |
@@ -35,12 +35,12 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.util.Iterator; | |||
import com.enably.tk.event.Action; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.event.Action; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureTree extends Feature implements Action.Handler { | |||
@@ -35,21 +35,21 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.io.ByteArrayInputStream; | |||
import java.io.ByteArrayOutputStream; | |||
import java.io.InputStream; | |||
import java.io.OutputStream; | |||
import com.enably.tk.terminal.StreamResource; | |||
import com.enably.tk.ui.Component; | |||
import com.enably.tk.ui.Label; | |||
import com.enably.tk.ui.Link; | |||
import com.enably.tk.ui.OrderedLayout; | |||
import com.enably.tk.ui.Panel; | |||
import com.enably.tk.ui.Upload; | |||
import com.enably.tk.ui.Upload.FinishedEvent; | |||
import com.itmill.tk.terminal.StreamResource; | |||
import com.itmill.tk.ui.Component; | |||
import com.itmill.tk.ui.Label; | |||
import com.itmill.tk.ui.Link; | |||
import com.itmill.tk.ui.OrderedLayout; | |||
import com.itmill.tk.ui.Panel; | |||
import com.itmill.tk.ui.Upload; | |||
import com.itmill.tk.ui.Upload.FinishedEvent; | |||
public class FeatureUpload | |||
extends Feature | |||
@@ -159,7 +159,7 @@ public class FeatureUpload | |||
} | |||
/** | |||
* @see com.enably.tk.ui.Upload.Receiver#receiveUpload(String, String) | |||
* @see com.itmill.tk.ui.Upload.Receiver#receiveUpload(String, String) | |||
*/ | |||
public OutputStream receiveUpload(String filename, String MIMEType) { | |||
fileName = filename; |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
public class FeatureValidators extends Feature { | |||
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeatureWindow extends Feature { | |||
Button addButton = new Button("Add to application", this, "addWin"); |
@@ -35,12 +35,12 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.ui.*; | |||
public class FeaturesApplication | |||
extends com.enably.tk.Application { | |||
extends com.itmill.tk.Application { | |||
public void init() { | |||
Window main = new Window("Millstone Features Tour"); |
@@ -36,7 +36,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
import java.beans.BeanInfo; | |||
import java.beans.IntrospectionException; | |||
@@ -47,10 +47,10 @@ import java.util.HashSet; | |||
import java.util.Iterator; | |||
import java.util.LinkedList; | |||
import com.enably.tk.data.*; | |||
import com.enably.tk.data.util.*; | |||
import com.enably.tk.terminal.*; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.data.*; | |||
import com.itmill.tk.data.util.*; | |||
import com.itmill.tk.terminal.*; | |||
import com.itmill.tk.ui.*; | |||
public class PropertyPanel | |||
extends Panel |
@@ -1,4 +1,4 @@ | |||
package com.enably.tk.demo.features; | |||
package com.itmill.tk.demo.features; | |||
public class UIComponents extends Feature { | |||
@@ -1,12 +1,12 @@ | |||
package com.enably.tk.demo.gogame; | |||
package com.itmill.tk.demo.gogame; | |||
import java.util.Map; | |||
import java.util.NoSuchElementException; | |||
import java.util.StringTokenizer; | |||
import com.enably.tk.terminal.PaintException; | |||
import com.enably.tk.terminal.PaintTarget; | |||
import com.enably.tk.ui.AbstractComponent; | |||
import com.itmill.tk.terminal.PaintException; | |||
import com.itmill.tk.terminal.PaintTarget; | |||
import com.itmill.tk.ui.AbstractComponent; | |||
public class Board extends AbstractComponent implements Game.Listener { | |||
@@ -1,4 +1,4 @@ | |||
package com.enably.tk.demo.gogame; | |||
package com.itmill.tk.demo.gogame; | |||
import java.util.Iterator; | |||
import java.util.LinkedList; |
@@ -1,16 +1,16 @@ | |||
package com.enably.tk.demo.gogame; | |||
package com.itmill.tk.demo.gogame; | |||
import com.enably.tk.Application; | |||
import com.enably.tk.data.Item; | |||
import com.enably.tk.data.Property; | |||
import com.enably.tk.data.util.IndexedContainer; | |||
import com.enably.tk.event.*; | |||
import com.enably.tk.ui.*; | |||
import com.itmill.tk.Application; | |||
import com.itmill.tk.data.Item; | |||
import com.itmill.tk.data.Property; | |||
import com.itmill.tk.data.util.IndexedContainer; | |||
import com.itmill.tk.event.*; | |||
import com.itmill.tk.ui.*; | |||
/** The classic game 'Go' as an example for the Millstone framework. | |||
* | |||
* @author IT Mill Ltd. | |||
* @see com.enably.tk.Application | |||
* @see com.itmill.tk.Application | |||
*/ | |||
public class Go | |||
extends Application | |||
@@ -48,7 +48,7 @@ public class Go | |||
private Board board = null; | |||
/** The initialization method that is the only requirement for | |||
* inheriting the com.enably.tk.service.Application class. It will | |||
* inheriting the com.itmill.tk.service.Application class. It will | |||
* be automatically called by the framework when a user accesses the | |||
* application. | |||
* We'll initialize our components here. | |||
@@ -118,7 +118,7 @@ public class Go | |||
/** Implementing the Action.Handler interface - this function returns | |||
* the available actions. | |||
* @see com.enably.tk.event.Action.Handler | |||
* @see com.itmill.tk.event.Action.Handler | |||
*/ | |||
public Action[] getActions(Object target, Object source) { | |||
Property p = players.getContainerProperty(target, "Current game"); | |||
@@ -135,7 +135,7 @@ public class Go | |||
/** Implementing the Action.Handler interface - this function handles | |||
* the specified action. | |||
* @see com.enably.tk.event.Action.Handler | |||
* @see com.itmill.tk.event.Action.Handler | |||
*/ | |||
public void handleAction(Action action, Object sender, Object target) { | |||
if (action == challengeAction) { | |||
@@ -154,7 +154,7 @@ public class Go | |||
/** Implementing the Property.ValueChangeListener interface - this function | |||
* is called when a value change event occurs. | |||
* @see com.enably.tk.data.Property.ValueChangeListener | |||
* @see com.itmill.tk.data.Property.ValueChangeListener | |||
*/ | |||
public void valueChange(Property.ValueChangeEvent event) { | |||
if (board != null) |
@@ -1,20 +1,20 @@ | |||
package com.enably.tk.demo.table; | |||
package com.itmill.tk.demo.table; | |||
import com.enably.tk.Application; | |||
import com.enably.tk.event.Action; | |||
import com.enably.tk.terminal.ExternalResource; | |||
import com.enably.tk.ui.Button; | |||
import com.enably.tk.ui.DateField; | |||
import com.enably.tk.ui.GridLayout; | |||
import com.enably.tk.ui.Label; | |||
import com.enably.tk.ui.Link; | |||
import com.enably.tk.ui.Panel; | |||
import com.enably.tk.ui.Select; | |||
import com.enably.tk.ui.TabSheet; | |||
import com.enably.tk.ui.Table; | |||
import com.enably.tk.ui.TextField; | |||
import com.enably.tk.ui.Tree; | |||
import com.enably.tk.ui.Window; | |||
import com.itmill.tk.Application; | |||
import com.itmill.tk.event.Action; | |||
import com.itmill.tk.terminal.ExternalResource; | |||
import com.itmill.tk.ui.Button; | |||
import com.itmill.tk.ui.DateField; | |||
import com.itmill.tk.ui.GridLayout; | |||
import com.itmill.tk.ui.Label; | |||
import com.itmill.tk.ui.Link; | |||
import com.itmill.tk.ui.Panel; | |||
import com.itmill.tk.ui.Select; | |||
import com.itmill.tk.ui.TabSheet; | |||
import com.itmill.tk.ui.Table; | |||
import com.itmill.tk.ui.TextField; | |||
import com.itmill.tk.ui.Tree; | |||
import com.itmill.tk.ui.Window; | |||
public class TableDemoApplication extends Application implements Action.Handler { |
@@ -35,9 +35,9 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.event; | |||
package com.itmill.tk.event; | |||
import com.enably.tk.terminal.*; | |||
import com.itmill.tk.terminal.*; | |||
/** Implements the MillStone action framework. This class contains | |||
* subinterfaces for action handling and listing, and for action handler |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.event; | |||
package com.itmill.tk.event; | |||
import java.util.EventObject; | |||
import java.util.LinkedList; | |||
@@ -44,7 +44,7 @@ import java.lang.reflect.Method; | |||
/** Event router class implementing the MillStone inheritable event | |||
* listening model. For more information on the event model see the | |||
* {@link com.enably.tk.event package documentation}. | |||
* {@link com.itmill.tk.event package documentation}. | |||
* | |||
* @author IT Mill Ltd. | |||
* @version @VERSION@ |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.event; | |||
package com.itmill.tk.event; | |||
import java.util.EventListener; | |||
import java.util.EventObject; |
@@ -35,7 +35,7 @@ | |||
********************************************************************** */ | |||
package com.enably.tk.event; | |||
package com.itmill.tk.event; | |||
import java.lang.reflect.Method; | |||
@@ -44,7 +44,7 @@ import java.lang.reflect.Method; | |||
* | |||
* <p>For more information on the MillStone inheritable event mechanism | |||
* see the | |||
* {@link com.enably.tk.event com.enably.tk.event package documentation}.</p> | |||
* {@link com.itmill.tk.event com.itmill.tk.event package documentation}.</p> | |||
* | |||
* @author IT Mill Ltd. | |||
* @version @VERSION@ | |||
@@ -59,7 +59,7 @@ public interface MethodEventSource { | |||
* | |||
* <p>For more information on the MillStone inheritable event mechanism | |||
* see the | |||
* {@link com.enably.tk.event com.enably.tk.event package documentation}.</p> | |||
* {@link com.itmill.tk.event com.itmill.tk.event package documentation}.</p> | |||
* | |||
* @param eventType type of the listened event. Events of this type or | |||
* its subclasses activate the listener. | |||
@@ -82,7 +82,7 @@ public interface MethodEventSource { | |||
* | |||
* <p>For more information on the MillStone inheritable event mechanism | |||
* see the | |||
* {@link com.enably.tk.event com.enably.tk.event package documentation}.</p> | |||
* {@link com.itmill.tk.event com.itmill.tk.event package documentation}.</p> | |||
* | |||
* @param eventType type of the listened event. Events of this type or | |||
* its subclasses activate the listener. | |||
@@ -101,7 +101,7 @@ public interface MethodEventSource { | |||
* | |||
* <p>For more information on the MillStone inheritable event mechanism | |||
* see the | |||
* {@link com.enably.tk.event com.enably.tk.event package documentation}.</p> | |||
* {@link com.itmill.tk.event com.itmill.tk.event package documentation}.</p> | |||
* | |||
* @param eventType exact event type the <code>object</code> listens to | |||
* @param target target object that has registered to listen to events | |||
@@ -115,7 +115,7 @@ public interface MethodEventSource { | |||
* | |||
* <p>For more information on the MillStone inheritable event mechanism | |||
* see the | |||
* {@link com.enably.tk.event com.enably.tk.event package documentation}.</p> | |||
* {@link com.itmill.tk.event com.itmill.tk.event package documentation}.</p> | |||
* | |||
* @param eventType exact event type the <code>object</code> listens to | |||
* @param target target object that has registered to listen to events | |||
@@ -136,7 +136,7 @@ public interface MethodEventSource { | |||
* | |||
* <p>For more information on the MillStone inheritable event mechanism | |||
* see the | |||
* {@link com.enably.tk.event com.enably.tk.event package documentation}.</p> | |||
* {@link com.itmill.tk.event com.itmill.tk.event package documentation}.</p> | |||
* | |||
* @param eventType exact event type the <code>object</code> listens to | |||
* @param target target object that has registered to listen to events |