summaryrefslogtreecommitdiff
path: root/demos/composer/protected/pages/Home.page
diff options
context:
space:
mode:
authorxue <>2006-01-14 09:09:56 +0000
committerxue <>2006-01-14 09:09:56 +0000
commit4f16184b10420304bd8c48a45001d849fa605557 (patch)
tree02a29b56b9af2950c4328cbd582e3bf9bceb3d44 /demos/composer/protected/pages/Home.page
parentf8259bb73731552eb77dcd1254d711507e4932c4 (diff)
Diffstat (limited to 'demos/composer/protected/pages/Home.page')
-rw-r--r--demos/composer/protected/pages/Home.page25
1 files changed, 17 insertions, 8 deletions
diff --git a/demos/composer/protected/pages/Home.page b/demos/composer/protected/pages/Home.page
index e7d7eea0..d4a9ce2f 100644
--- a/demos/composer/protected/pages/Home.page
+++ b/demos/composer/protected/pages/Home.page
@@ -14,7 +14,7 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
</com:TPanel>
<com:TPanel GroupingText="Property Definitions">
-<com:TRepeater ID="PropertyList" ItemCommand="itemAction">
+<com:TRepeater ID="PropertyList" ItemCommand="propertyAction">
<prop:HeaderTemplate>
<table>
@@ -94,7 +94,7 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
</com:TPanel>
<com:TPanel GroupingText="Event Definitions">
-<com:TRepeater ID="EventList" ItemCommand="itemAction">
+<com:TRepeater ID="EventList" ItemCommand="eventAction">
<prop:HeaderTemplate>
<table>
@@ -118,14 +118,23 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
<com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
</td>
<td>
- <com:TButton ID="AddButton"
- Text="Add"
- CommandName="add"
- CommandParameter=<%# $this->Parent->ItemIndex %> />
- <com:TButton ID="RemoveButton"
+ <com:TButton
Text="Remove"
CommandName="remove"
- CommandParameter=<%# $this->Parent->ItemIndex %> />
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ />
+ <com:TButton
+ Text="Up"
+ CommandName="up"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->ItemIndex > 0%>
+ />
+ <com:TButton
+ Text="Down"
+ CommandName="down"
+ CommandParameter=<%# $this->Parent->ItemIndex %>
+ Enabled=<%# $this->Parent->ItemIndex < $this->Page->ClassDefinition->Events->Count-1 %>
+ />
</td>
</tr>
</prop:ItemTemplate>