diff options
Diffstat (limited to 'demos/composer/protected/pages/Home.page')
-rw-r--r-- | demos/composer/protected/pages/Home.page | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/demos/composer/protected/pages/Home.page b/demos/composer/protected/pages/Home.page index b446abd2..ae4149ee 100644 --- a/demos/composer/protected/pages/Home.page +++ b/demos/composer/protected/pages/Home.page @@ -2,30 +2,32 @@ <com:TContent ID="body" >
<com:TPanel GroupingText="Class Information">
-class <com:TTextBox ID="ClassName" CssClass="slTextBox"/>
-extends <com:TTextBox ID="ParentClass" CssClass="slTextBox"/>
+class
+<com:TTextBox ID="ClassName"
+ Text=<%#$this->Page->ClassDefinition->ClassName%>
+ CssClass="slTextBox"/>
+extends
+<com:TTextBox ID="ParentClass"
+ Text=<%#$this->Page->ClassDefinition->ParentClass%>
+ CssClass="slTextBox"/>
implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/>
</com:TPanel>
<com:TPanel GroupingText="Property Definitions">
<table>
<tr>
- <th>Accessibility</th>
<th>Name</th>
<th>Type</th>
<th>Default Value</th>
<th>Storage Mode</th>
+ <th>Accessibility</th>
<th>Comments</th>
<th>Actions</th>
</tr>
-<com:TRepeater ID="PropertyList">
+<com:TRepeater ID="PropertyList" ItemCommand="itemAction">
<prop:ItemTemplate>
<tr>
<td>
- <com:TCheckBox ID="IsProtected" Text="protected" Checked=<%# $this->Parent->DataItem->IsProtected %> />
- <com:TCheckBox ID="ReadOnly" Text="read-only" Checked=<%# $this->Parent->DataItem->ReadOnly %> />
- </td>
- <td>
<com:TTextBox ID="PropertyName" Text=<%# $this->Parent->DataItem->Name %> CssClass="slTextBox"/>
</td>
<td>
@@ -49,11 +51,21 @@ implements <com:TTextBox ID="Interfaces" CssClass="slTextBox"/> </com:TDropDownList>
</td>
<td>
+ <com:TCheckBox ID="IsProtected" Text="protected" Checked=<%# $this->Parent->DataItem->IsProtected %> />
+ <com:TCheckBox ID="ReadOnly" Text="read-only" Checked=<%# $this->Parent->DataItem->ReadOnly %> />
+ </td>
+ <td>
<com:TTextBox ID="Comments" Text=<%# $this->Parent->DataItem->Comments %> CssClass="slTextBox"/>
</td>
<td>
- <com:TButton Text="Add" />
- <com:TButton Text="Remove" />
+ <com:TButton ID="AddButton"
+ Text="Add"
+ CommandName="add"
+ CommandParameter=<%# $this->Parent->ItemIndex %> />
+ <com:TButton ID="RemoveButton"
+ Text="Remove"
+ CommandName="remove"
+ CommandParameter=<%# $this->Parent->ItemIndex %> />
</td>
</tr>
</prop:ItemTemplate>
@@ -65,13 +77,18 @@ Event Definitions: </com:TPanel>
<br/>
Comments
-(
-Author Name: <com:TTextBox ID="AuthorName" CssClass="slTextBox"/>
-Author Email: <com:TTextBox ID="AuthorEmail" CssClass="slTextBox"/>
-)
<br/>
<com:TTextBox ID="Comments" TextMode="MultiLine" Columns="80" Rows="6" />
<br/>
+Author Name
+<com:TTextBox ID="AuthorName"
+ Text=<%#$this->Page->ClassDefinition->Author%>
+ CssClass="slTextBox"/>
+Author Email
+<com:TTextBox ID="AuthorEmail"
+ Text=<%#$this->Page->ClassDefinition->Email%>
+ CssClass="slTextBox"/>
+<br/>
<com:TButton Text="Generate Code" Click="generateCode" />
<pre>
<com:TLiteral ID="SourceCode" />
|