diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2006-12-27 11:15:25 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2006-12-27 11:15:25 +0000 |
commit | 33ace3ac0d5e5b21838a0a6482f9f2a8a341e589 (patch) | |
tree | 49822cd5da43feda44e65f7eb421642d0a4fa412 | |
parent | dc2a4eda077447a5fc6fd361712146a24431a287 (diff) | |
download | vaadin-framework-33ace3ac0d5e5b21838a0a6482f9f2a8a341e589.tar.gz vaadin-framework-33ace3ac0d5e5b21838a0a6482f9f2a8a341e589.zip |
started work for #45
svn changeset:152/svn branch:toolkit
-rw-r--r-- | WebContent/themes/default/theme.js | 7 | ||||
-rw-r--r-- | src/com/itmill/toolkit/demo/features/FeatureTable.java | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/WebContent/themes/default/theme.js b/WebContent/themes/default/theme.js index 9a2365d306..1dccce680a 100644 --- a/WebContent/themes/default/theme.js +++ b/WebContent/themes/default/theme.js @@ -70,6 +70,7 @@ DefaultTheme.prototype.registerTo = function(client) { client.registerRenderer(this,"tabsheet",null,this.renderTabSheet);
client.registerRenderer(this,"table",null,this.renderScrollTable);
+ client.registerRenderer(this,"table","paging",this.renderPagingTable);
client.registerRenderer(this,"tree",null,this.renderTree);
client.registerRenderer(this,"tree","coolmenu",this.renderTreeMenu);
//client.registerRenderer(this,"tree","menu",this.renderTreeMenu);
@@ -2345,7 +2346,7 @@ DefaultTheme.prototype.addLinkOpenWindowListener = function(theme,client,element }
);
}
-DefaultTheme.prototype.renderTable = function(renderer,uidl,target,layoutInfo) {
+DefaultTheme.prototype.renderPagingTable = function(renderer,uidl,target,layoutInfo) {
// Shortcut variables
var theme = renderer.theme;
var client = renderer.client;
@@ -2540,7 +2541,7 @@ DefaultTheme.prototype.renderTable = function(renderer,uidl,target,layoutInfo) { theme.addCSSClass(button,"clickable");
theme.addAddClassListener(theme,client,button,"mouseover","bg");
theme.addRemoveClassListener(theme,client,button,"mouseout","bg");
- theme.addSetVarListener(theme,client,button,"click",firstvisibleVar,(parseInt(firstvisible)-parseInt(pagelength)),true);
+ theme.addSetVarListener(theme,client,button,"click",firstvisibleVar,(String) (parseInt(firstvisible)-parseInt(pagelength)),true);
} else {
theme.addCSSClass(button,"disabled");
}
@@ -2554,7 +2555,7 @@ DefaultTheme.prototype.renderTable = function(renderer,uidl,target,layoutInfo) { theme.addCSSClass(button,"clickable");
theme.addAddClassListener(theme,client,button,"mouseover","bg");
theme.addRemoveClassListener(theme,client,button,"mouseout","bg");
- theme.addSetVarListener(theme,client,button,"click",firstvisibleVar,(parseInt(firstvisible)+parseInt(pagelength)),true);
+ theme.addSetVarListener(theme,client,button,"click",firstvisibleVar, (String) (parseInt(firstvisible)+parseInt(pagelength)),true);
} else {
theme.addCSSClass(button,"disabled");
}
diff --git a/src/com/itmill/toolkit/demo/features/FeatureTable.java b/src/com/itmill/toolkit/demo/features/FeatureTable.java index 013031dabb..e8f30c1573 100644 --- a/src/com/itmill/toolkit/demo/features/FeatureTable.java +++ b/src/com/itmill/toolkit/demo/features/FeatureTable.java @@ -158,6 +158,10 @@ public class FeatureTable extends Feature implements Action.Handler { .addItem("list") .getItemProperty(themes.getItemCaptionPropertyId()) .setValue("list"); + themes + .addItem("paging") + .getItemProperty(themes.getItemCaptionPropertyId()) + .setValue("paging"); p.addProperties("Table Properties", ap); l.addComponent(p); |