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/CustomComponent.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/CustomComponent.java')
-rw-r--r-- | src/com/itmill/toolkit/ui/CustomComponent.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/com/itmill/toolkit/ui/CustomComponent.java b/src/com/itmill/toolkit/ui/CustomComponent.java index 2c5267e033..786fdae539 100644 --- a/src/com/itmill/toolkit/ui/CustomComponent.java +++ b/src/com/itmill/toolkit/ui/CustomComponent.java @@ -228,7 +228,7 @@ public class CustomComponent implements Component { * * @see com.itmill.toolkit.ui.Component#getStyle() */ - public String getStyle() { + public String getStyleName() { return null; } @@ -244,7 +244,7 @@ public class CustomComponent implements Component { } /** - * Custom component is allways enabled by default. + * Custom component is always enabled by default. * * @see com.itmill.toolkit.ui.Component#isEnabled() */ @@ -380,11 +380,11 @@ public class CustomComponent implements Component { } /** - * Sets the look-and-feel style of the component. + * Custom component does not implement custom styles by default. * * @see com.itmill.toolkit.ui.Component#setStyle(java.lang.String) */ - public void setStyle(String style) { + public void setStyleName(String style) { } /** @@ -433,13 +433,16 @@ public class CustomComponent implements Component { } /* Dependency -framework is deprecated */ - public void dependsOn(VariableOwner depended) {} - public void removeDirectDependency(VariableOwner depended) {} + public void dependsOn(VariableOwner depended) { + } + + public void removeDirectDependency(VariableOwner depended) { + } + public Set getDirectDependencies() { return null; } - /* Event functions are not implemented by default -------------------- */ /** |