diff options
Diffstat (limited to 'src/com/itmill/toolkit/ui/Component.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/Component.java | 19 |
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. * |