diff options
author | Marc Englund <marc.englund@itmill.com> | 2007-10-22 12:52:55 +0000 |
---|---|---|
committer | Marc Englund <marc.englund@itmill.com> | 2007-10-22 12:52:55 +0000 |
commit | e0e48472e6c3960b384e8dfdb03565c46d8b30bc (patch) | |
tree | 3e686165f370f54103f7fe962444769d92857ca4 /src/com/itmill/toolkit/ui/Component.java | |
parent | b14615a9a53115222455182679f68393e9bb82af (diff) | |
download | vaadin-framework-e0e48472e6c3960b384e8dfdb03565c46d8b30bc.tar.gz vaadin-framework-e0e48472e6c3960b384e8dfdb03565c46d8b30bc.zip |
setStyle() -> setStyleName() refactor (partial #890). Compromise: setStyle() _removed_ from Component, _deprecated_ in AbstractComponent.
svn changeset:2577/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/Component.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/Component.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/ui/Component.java b/src/com/itmill/toolkit/ui/Component.java index 7af0485e0e..eefa6ff11d 100644 --- a/src/com/itmill/toolkit/ui/Component.java +++ b/src/com/itmill/toolkit/ui/Component.java @@ -55,7 +55,7 @@ public interface Component extends Paintable, VariableOwner { * * @return the component's styleValue of property style. */ - public String getStyle(); + public String getStyleName(); /** * Sets and replaces all previous style names of the component. This method @@ -65,12 +65,12 @@ public interface Component extends Paintable, VariableOwner { * @param style * the new style of the component. */ - public void setStyle(String style); - + public void setStyleName(String style); + /** - * Adds style name to component. Handeling additional style names is - * terminal spesicif, but in web browser enviroment they will most likely - * become CSS classes as given on server side. + * Adds style name to component. Handling additional style names is terminal + * specific, but in web browser environment they will most likely become CSS + * classes as given on server side. * * This method will trigger a * {@link com.itmill.toolkit.terminal.Paintable.RepaintRequestEvent RepaintRequestEvent}. |