summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2012-01-18 14:06:23 +0000
committerMarc Englund <marc.englund@itmill.com>2012-01-18 14:06:23 +0000
commit22eb633dcb50ea7ce302cdf4a0af127e44bf36f6 (patch)
tree3be0991c26de56ca74435d2587020c444d94c953 /src
parent69d6bf76820929777168055bf0a941d691463a6b (diff)
downloadvaadin-framework-22eb633dcb50ea7ce302cdf4a0af127e44bf36f6.tar.gz
vaadin-framework-22eb633dcb50ea7ce302cdf4a0af127e44bf36f6.zip
Merged patch found in #7111 from 6.7, also for #5095 #5096 #6996
svn changeset:22691/svn branch:6.8
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
index 6c912fec19..d30d999d16 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
@@ -52,7 +52,7 @@ public class VTabsheet extends VTabsheetBase {
/**
* Representation of a single "tab" shown in the TabBar
- *
+ *
*/
private static class Tab extends SimplePanel {
private static final String TD_CLASSNAME = CLASSNAME + "-tabitemcell";
@@ -62,6 +62,8 @@ public class VTabsheet extends VTabsheetBase {
+ "-selected";
private static final String TD_SELECTED_FIRST_CLASSNAME = TD_SELECTED_CLASSNAME
+ "-first";
+ private static final String TD_DISABLED_CLASSNAME = TD_CLASSNAME
+ + "-disabled";
private static final String DIV_CLASSNAME = CLASSNAME + "-tabitem";
private static final String DIV_SELECTED_CLASSNAME = DIV_CLASSNAME
@@ -114,6 +116,7 @@ public class VTabsheet extends VTabsheetBase {
public void setEnabledOnServer(boolean enabled) {
enabledOnServer = enabled;
+ setStyleName(td, TD_DISABLED_CLASSNAME, !enabled);
}
public void addClickHandler(ClickHandler handler) {