aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/Component.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-08-11 07:58:18 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-08-11 07:58:18 +0000
commit3e4a244e5a5623fbda7da9a07ade7253fe11148d (patch)
tree4bf907068fac529fb348017d69bdf189d5e1b089 /src/com/itmill/toolkit/ui/Component.java
parentbefc0df6da8eef56c3698b41bfc219e2e906708b (diff)
downloadvaadin-framework-3e4a244e5a5623fbda7da9a07ade7253fe11148d.tar.gz
vaadin-framework-3e4a244e5a5623fbda7da9a07ade7253fe11148d.zip
caption and icon setters to Paintable interface, major tabsheet refactoring, client side caption handling for layouts
svn changeset:5161/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/Component.java')
-rw-r--r--src/com/itmill/toolkit/ui/Component.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/ui/Component.java b/src/com/itmill/toolkit/ui/Component.java
index e500d17255..08628ddf5b 100644
--- a/src/com/itmill/toolkit/ui/Component.java
+++ b/src/com/itmill/toolkit/ui/Component.java
@@ -169,6 +169,16 @@ 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}.
+ *
+ * @param caption
+ * the new caption <code>String</code> for the component.
+ */
+ public void setCaption(String caption);
+
+ /**
* Gets the component's icon. A component may have a graphical icon
* associated with it, this method retrieves it if it is defined.
*
@@ -177,6 +187,15 @@ public interface Component extends Paintable, VariableOwner, Sizeable {
public Resource getIcon();
/**
+ * Sets the component's icon. This method will trigger a
+ * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}.
+ *
+ * @param icon
+ * the icon to be shown with the component's caption.
+ */
+ public void setIcon(Resource icon);
+
+ /**
* Gets the component's parent window. If the component does not yet belong
* to a window <code>null</code> is returned.
*