From 3fcf847e0cadfb9ede930f538c2f277483442175 Mon Sep 17 00:00:00 2001
From: xue <>
Date: Sat, 21 Jan 2006 17:29:40 +0000
Subject: BE AWARE: Significant change! Changed event definition from XXX to
OnXXX.
---
.../protected/pages/Configurations/Templates1.page | 2 +-
.../pages/Controls/Samples/TBulletedList/Home.page | 2 +-
.../pages/Controls/Samples/TButton/Home.page | 4 +-
.../pages/Controls/Samples/TCheckBoxList/Home.page | 6 ++-
.../pages/Controls/Samples/TDropDownList/Home.page | 8 +--
.../pages/Controls/Samples/TLinkButton/Home.page | 4 +-
.../pages/Controls/Samples/TListBox/Home.page | 16 +++---
.../pages/Controls/Samples/TPanel/Home.page | 4 +-
.../Controls/Samples/TRadioButtonList/Home.page | 6 ++-
.../pages/Controls/Samples/TTextBox/Home.page | 6 +--
.../protected/pages/Fundamentals/Components.page | 12 ++---
.../pages/Fundamentals/Samples/Hangman/Home.page | 60 +++++++++++-----------
.../Fundamentals/Samples/HelloWorld/Home.page | 2 +-
13 files changed, 70 insertions(+), 62 deletions(-)
(limited to 'demos/quickstart/protected/pages')
diff --git a/demos/quickstart/protected/pages/Configurations/Templates1.page b/demos/quickstart/protected/pages/Configurations/Templates1.page
index 37a389ba..102ee035 100644
--- a/demos/quickstart/protected/pages/Configurations/Templates1.page
+++ b/demos/quickstart/protected/pages/Configurations/Templates1.page
@@ -23,7 +23,7 @@ body content
It is required that component tags nest properly with each other and an opening component tag be paired with a closing tag, similar to that in XML. The following shows a component tag specifying the Text property and Click event of a button control,
-<com:TButton Text="Register" Click="registerUser" />
+<com:TButton Text="Register" OnClick="registerUser" />
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page
index c85ff574..77cc9f7c 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TBulletedList/Home.page
@@ -67,7 +67,7 @@ Bulleted list of hyperlinks:
Bulleted list of link buttons (click on them to see the result):
-
+
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page
index eb1bc235..3d49331f 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TButton/Home.page
@@ -19,7 +19,7 @@ Button with customized color, font and width:
A click button:
|
-
+
|
@@ -27,7 +27,7 @@ A command button:
|
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
index d4833ea9..bc750cb8 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
@@ -107,7 +107,7 @@ Check box list's behavior upon postback:
-
+
|
@@ -118,7 +118,9 @@ Check box list's behavior upon postback:
Auto postback check box list:
-
+
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.page
index 3554729b..5123cc94 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.page
@@ -32,7 +32,7 @@ Dropdown list with initial items:
List box with customized row number, color and font:
|
-
+
@@ -60,7 +60,9 @@ Disabled dropdown list:
Auto postback dropdown list:
|
-
+
@@ -81,7 +83,7 @@ Dropdown list's behavior upon postback:
-
+
|
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page
index 497e5083..f0e0b9cd 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TLinkButton/Home.page
@@ -26,7 +26,7 @@ body content
A click link button:
|
-
+
|
@@ -34,7 +34,7 @@ A command link button:
|
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page
index 66ac4fa2..161f68a4 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TListBox/Home.page
@@ -62,7 +62,9 @@ Disabled list box:
Auto postback list box:
|
-
+
@@ -83,7 +85,7 @@ List box's behavior upon postback:
-
+
|
@@ -131,7 +133,7 @@ List box's behavior upon postback:
-
+
|
@@ -144,7 +146,7 @@ Auto postback list box:
+ OnSelectedIndexChanged="multiSelectionChanged">
@@ -170,7 +172,7 @@ Databind to an integer-indexed array:
+ OnSelectedIndexChanged="DBListBox1Changed" />
|
@@ -183,7 +185,7 @@ Databind to an associative array:
+ OnSelectedIndexChanged="DBListBox2Changed" />
@@ -198,7 +200,7 @@ Databind with DataTextField and DataValueField specified:
SelectionMode="Multiple"
DataTextField="name"
DataValueField="id"
- SelectedIndexChanged="DBListBox3Changed" />
+ OnSelectedIndexChanged="DBListBox3Changed" />
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page
index c5c0d538..794b9dd0 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TPanel/Home.page
@@ -58,8 +58,8 @@ Panel with a default button (hit 'enter' key to see what happened):
This is panel content with a
and two buttons:
-
-
+
+
When you change focus to the panel and hit 'enter' key, button2
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page
index 3f5f7053..a65c4d2d 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TRadioButtonList/Home.page
@@ -107,7 +107,7 @@ Radio button list's behavior upon postback:
-
+
@@ -118,7 +118,9 @@ Radio button list's behavior upon postback:
Auto postback radio button list:
-
+
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
index f771b2ba..7bbe1744 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
@@ -51,7 +51,7 @@ Auto postback text box not causing validation:
Text="change me"
AutoPostBack="true"
CausesValidation="false"
- TextChanged="textChanged" />
+ OnTextChanged="textChanged" />
|
@@ -76,7 +76,7 @@ Text box's behavior upon postback:
+ OnClick="submitText" />
|
@@ -148,7 +148,7 @@ Auto postback text box not causing validation:
Text="change me"
AutoPostBack="true"
CausesValidation="false"
- TextChanged="textChanged" />
+ OnTextChanged="textChanged" />
|
diff --git a/demos/quickstart/protected/pages/Fundamentals/Components.page b/demos/quickstart/protected/pages/Fundamentals/Components.page
index 32d82e1c..c419a5fa 100644
--- a/demos/quickstart/protected/pages/Fundamentals/Components.page
+++ b/demos/quickstart/protected/pages/Fundamentals/Components.page
@@ -58,7 +58,7 @@ $component->getFont()->setName( $name );
Component events are special properties that take method names as their values. Attaching (setting) a method to an event will hook up the method to the places at which the event is raised. Therefore, the behavior of a component can be modified in a way that may not be foreseen during the development of the component.
-A component event is defined by the existence of an on-method. For example, in TButton, we have
+A component event is defined by the existence of a method whose name starts with the word on. The event name is the method name and is thus case-insensitve. For example, in TButton, we have
class TButton extends TWebControl {
public function onClick( $param ) {
@@ -66,12 +66,12 @@ class TButton extends TWebControl {
}
}
-This defines an event named Click, and a handler can be attached to the event using one of the following ways,
+This defines an event named OnClick, and a handler can be attached to the event using one of the following ways,
-$button->Click = $callback;
-$button->Click->add( $callback );
-$button->Click[] = $callback;
-$button->attachEventHandler( 'Click' , $callback );
+$button->OnClick = $callback;
+$button->OnClick->add( $callback );
+$button->OnClick[] = $callback;
+$button->attachEventHandler( 'OnClick' , $callback );
where $callback refers to a valid PHP callback (e.g. a function name, a class method array($object,'method'), etc.)
diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/Home.page b/demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/Home.page
index bae7b308..977b2a04 100644
--- a/demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/Home.page
+++ b/demos/quickstart/protected/pages/Fundamentals/Samples/Hangman/Home.page
@@ -11,7 +11,7 @@ If you make too many mistakes, you lose the game!
-
+
@@ -21,46 +21,46 @@ If you make too many mistakes, you lose the game!
You have made <%=$this->Page->Misses %> bad guesses
out of a maximum of <%= $this->Page->Level %>.
Guess:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
You Win!
The word was: <%= $this->Page->Word %>.
-
+
You Lose!
The word was: <%= $this->Page->Word %>.
-
+
\ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page
index 8931dad6..60c7c3e2 100644
--- a/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page
+++ b/demos/quickstart/protected/pages/Fundamentals/Samples/HelloWorld/Home.page
@@ -1,6 +1,6 @@
<%@ Title="Hello World" %>
-
+
\ No newline at end of file
--
cgit v1.2.3
|