This is an automated email from the ASF dual-hosted git repository.

carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 1831252  tour-de-jewel: updates to CheckBox and RadioButton pages
1831252 is described below

commit 1831252c5710a6613ddcb53f3c23675cdc525999
Author: Carlos Rovira <[email protected]>
AuthorDate: Mon Jan 4 19:27:54 2021 +0100

    tour-de-jewel: updates to CheckBox and RadioButton pages
---
 .../src/main/royale/CheckBoxPlayGround.mxml        | 135 ++++++++++++---------
 .../src/main/royale/RadioButtonPlayGround.mxml     | 133 ++++++++++++--------
 2 files changed, 161 insertions(+), 107 deletions(-)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml 
b/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
index 984d78f..df85d32 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/CheckBoxPlayGround.mxml
@@ -36,70 +36,97 @@ limitations under the License.
 
                <j:GridCell desktopNumerator="1" desktopDenominator="2" 
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" 
phoneDenominator="1">
             <j:Card>
-                               <html:H3 text="Jewel CheckBox"/>
-
-                               <j:CheckBox text="Not Checked"/>
-
-                               <j:CheckBox text="Checked" selected="true"/>
-
-                               <j:CheckBox text="Disabled">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:CheckBox>
-
-                               <j:CheckBox text="Checked And Disabled" 
selected="true">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:CheckBox>
+                               <j:CardHeader>
+                                       <j:CardTitle text="States" 
className="primary-normal"/>
+                               </j:CardHeader>
+                               <j:CardPrimaryContent>
+
+                                       <j:Label multiline="true">
+                                               <j:html><![CDATA[<p>A CheckBox 
can have the following four states.</p>]]></j:html>
+                                       </j:Label>
+
+                                       <j:CheckBox text="Not Checked"/>
+
+                                       <j:CheckBox text="Checked" 
selected="true"/>
+
+                                       <j:CheckBox text="Disabled">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:CheckBox>
+
+                                       <j:CheckBox text="Checked And Disabled" 
selected="true">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:CheckBox>
+                               </j:CardPrimaryContent>
                        </j:Card>
         </j:GridCell>
                
                <j:GridCell desktopNumerator="1" desktopDenominator="2" 
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" 
phoneDenominator="1">
             <j:Card>
-                               <html:H3 text="Jewel SwitchCheckBox"/>
-
-                               <j:SwitchCheckBox text="Not Checked"/>
-
-                               <j:SwitchCheckBox text="Checked" 
selected="true"/>
-
-                               <j:SwitchCheckBox text="Disabled">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:SwitchCheckBox>
-                               
-                               <j:SwitchCheckBox text="Checked And Disabled" 
selected="true">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:SwitchCheckBox>
+                               <j:CardHeader>
+                                       <j:CardTitle text="Switch Version" 
className="primary-normal"/>
+                               </j:CardHeader>
+                               <j:CardPrimaryContent>
+
+                                       <j:Label multiline="true">
+                                               
<j:html><![CDATA[<p>SwitchCheckBox is s Switch representation of CheckBox with 
same capabilities.</p>]]></j:html>
+                                       </j:Label>
+
+                                       <j:SwitchCheckBox text="Not Checked"/>
+
+                                       <j:SwitchCheckBox text="Checked" 
selected="true"/>
+
+                                       <j:SwitchCheckBox text="Disabled">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:SwitchCheckBox>
+                                       
+                                       <j:SwitchCheckBox text="Checked And 
Disabled" selected="true">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:SwitchCheckBox>
+                               </j:CardPrimaryContent>
                        </j:Card>
         </j:GridCell>
                
                <j:GridCell desktopNumerator="1" desktopDenominator="1" 
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1" 
phoneDenominator="1">
             <j:Card>
-                               <html:H3 text="Jewel CheckBox Sizing"/>
-
-                               <j:CheckBox text="No size"/>
-                               
-                               <j:CheckBox text="width and height to 60">
-                                       <j:beads>
-                                               <j:InputButtonSize width="60" 
height="60"/>
-                                       </j:beads>
-                               </j:CheckBox>
-                               <j:CheckBox text="Only width to 45">
-                                       <j:beads>
-                                               <j:InputButtonSize width="45"/>
-                                       </j:beads>
-                               </j:CheckBox>
-                               <j:CheckBox text="Only height to 35 and 
disabled" selected="true">
-                                       <j:beads>
-                                               <j:Disabled 
localId="opt3disable" disabled="true"/>
-                                               <j:InputButtonSize height="35"/>
-                                       </j:beads>
-                               </j:CheckBox>
+                               <j:CardHeader>
+                                       <j:CardTitle text="InputButton Size" 
className="primary-normal"/>
+                               </j:CardHeader>
+                               <j:CardPrimaryContent>
+
+                                       <j:Label multiline="true">
+                                               <j:html><![CDATA[<p>The 
InputButtonSize bead allow to change dimensions of the check.</p>]]></j:html>
+                                       </j:Label>
+
+                                       <j:CheckBox text="No size"/>
+                                       
+                                       <j:CheckBox text="width and height to 
60">
+                                               <j:beads>
+                                                       <j:InputButtonSize 
width="60" height="60"/>
+                                               </j:beads>
+                                       </j:CheckBox>
+
+                                       <j:CheckBox text="Only width to 45">
+                                               <j:beads>
+                                                       <j:InputButtonSize 
width="45"/>
+                                               </j:beads>
+                                       </j:CheckBox>
+
+                                       <j:CheckBox text="Only height to 35 and 
disabled" selected="true">
+                                               <j:beads>
+                                                       <j:Disabled 
localId="opt3disable" disabled="true"/>
+                                                       <j:InputButtonSize 
height="35"/>
+                                               </j:beads>
+                                       </j:CheckBox>
+
+                               </j:CardPrimaryContent>
                        </j:Card>
         </j:GridCell>
        </j:Grid>
diff --git 
a/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml 
b/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
index 003648c..f022e82 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/RadioButtonPlayGround.mxml
@@ -36,69 +36,96 @@ limitations under the License.
 
                <j:GridCell desktopNumerator="1" desktopDenominator="2" 
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" 
phoneDenominator="1">
             <j:Card>
-                               <html:H3 text="Jewel RadioButton"/>
-
-                               <j:RadioButton text="RadioButton 1" 
groupName="radios" value="Test 1"/>
-                               <j:RadioButton text="RadioButton 2" 
groupName="radios" value="Test 2" selected="true"/>
-                               <j:RadioButton text="RadioButton 3" 
groupName="radios" value="Test 3"/>
-
-                               <j:RadioButton text="Disabled">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:RadioButton>
-
-                               <j:RadioButton text="Set and Disabled" 
selected="true">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:RadioButton>
+                               <j:CardHeader>
+                                       <j:CardTitle text="States" 
className="primary-normal"/>
+                               </j:CardHeader>
+                               <j:CardPrimaryContent>
+
+                                       <j:Label multiline="true">
+                                               <j:html><![CDATA[<p>A 
RadioButton can have the following four states.</p>]]></j:html>
+                                       </j:Label>
+
+                                       <j:RadioButton text="RadioButton 1" 
groupName="radios" value="Test 1"/>
+                                       <j:RadioButton text="RadioButton 2" 
groupName="radios" value="Test 2" selected="true"/>
+                                       <j:RadioButton text="RadioButton 3" 
groupName="radios" value="Test 3"/>
+
+                                       <j:RadioButton text="Disabled">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:RadioButton>
+
+                                       <j:RadioButton text="Set and Disabled" 
selected="true">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:RadioButton>
+                               </j:CardPrimaryContent>
                        </j:Card>
         </j:GridCell>
 
                <j:GridCell desktopNumerator="1" desktopDenominator="2" 
tabletNumerator="1" tabletDenominator="2" phoneNumerator="1" 
phoneDenominator="1">
             <j:Card>
-                               <html:H3 text="Jewel SwitchRadioButton"/>
-
-                               <j:SwitchRadioButton text="SwitchRadioButton 1" 
groupName="radios" value="Test 1"/>
-                               <j:SwitchRadioButton text="SwitchRadioButton 2" 
groupName="radios" value="Test 2" selected="true"/>
-                               <j:SwitchRadioButton text="SwitchRadioButton 3" 
groupName="radios" value="Test 3"/>
-
-                               <j:SwitchRadioButton text="Disabled">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:SwitchRadioButton>
-
-                               <j:SwitchRadioButton text="Set and Disabled" 
selected="true">
-                                       <j:beads>
-                                               <j:Disabled/>
-                                       </j:beads>
-                               </j:SwitchRadioButton>
+                               <j:CardHeader>
+                                       <j:CardTitle text="Switch Version" 
className="primary-normal"/>
+                               </j:CardHeader>
+                               <j:CardPrimaryContent>
+
+                                       <j:Label multiline="true">
+                                               
<j:html><![CDATA[<p>SwitchRadioButton is s Switch representation of RadioButton 
with same capabilities.</p>]]></j:html>
+                                       </j:Label>
+
+                                       <j:SwitchRadioButton 
text="SwitchRadioButton 1" groupName="radios2" value="Test 1"/>
+                                       <j:SwitchRadioButton 
text="SwitchRadioButton 2" groupName="radios2" value="Test 2" selected="true"/>
+                                       <j:SwitchRadioButton 
text="SwitchRadioButton 3" groupName="radios2" value="Test 3"/>
+
+                                       <j:SwitchRadioButton text="Disabled">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:SwitchRadioButton>
+
+                                       <j:SwitchRadioButton text="Set and 
Disabled" selected="true">
+                                               <j:beads>
+                                                       <j:Disabled/>
+                                               </j:beads>
+                                       </j:SwitchRadioButton>
+                               </j:CardPrimaryContent>
                        </j:Card>
         </j:GridCell>
 
                <j:GridCell desktopNumerator="1" desktopDenominator="1" 
tabletNumerator="1" tabletDenominator="1" phoneNumerator="1" 
phoneDenominator="1">
             <j:Card>
-                               <html:H3 text="Jewel RadioButton Sizing"/>
-
-                               <j:RadioButton groupName="radios_sizes" 
text="No size"/>
-                               <j:RadioButton groupName="radios_sizes" 
text="width and height to 60">
-                                       <j:beads>
-                                               <j:InputButtonSize width="60" 
height="60"/>
-                                       </j:beads>
-                               </j:RadioButton>
-                               <j:RadioButton groupName="radios_sizes" 
text="Only width to 45">
-                                       <j:beads>
-                                               <j:InputButtonSize width="45"/>
-                                       </j:beads>
-                               </j:RadioButton>
-                               <j:RadioButton groupName="radios_sizes" 
text="Only height to 35 and disabled" selected="true">
-                                       <j:beads>
-                                               <j:Disabled 
localId="opt3disable" disabled="true"/>
-                                               <j:InputButtonSize height="35"/>
-                                       </j:beads>
-                               </j:RadioButton>
+                               <j:CardHeader>
+                                       <j:CardTitle text="InputButton Size" 
className="primary-normal"/>
+                               </j:CardHeader>
+                               <j:CardPrimaryContent>
+
+                                       <j:Label multiline="true">
+                                               <j:html><![CDATA[<p>The 
InputButtonSize bead allow to change dimensions of the radio.</p>]]></j:html>
+                                       </j:Label>
+
+                                       <j:RadioButton groupName="radios_sizes" 
text="No size"/>
+                                       
+                                       <j:RadioButton groupName="radios_sizes" 
text="width and height to 60">
+                                               <j:beads>
+                                                       <j:InputButtonSize 
width="60" height="60"/>
+                                               </j:beads>
+                                       </j:RadioButton>
+                                       
+                                       <j:RadioButton groupName="radios_sizes" 
text="Only width to 45">
+                                               <j:beads>
+                                                       <j:InputButtonSize 
width="45"/>
+                                               </j:beads>
+                                       </j:RadioButton>
+                                       
+                                       <j:RadioButton groupName="radios_sizes" 
text="Only height to 35 and disabled" selected="true">
+                                               <j:beads>
+                                                       <j:Disabled 
localId="opt3disable" disabled="true"/>
+                                                       <j:InputButtonSize 
height="35"/>
+                                               </j:beads>
+                                       </j:RadioButton>
+                               </j:CardPrimaryContent>
                        </j:Card>
         </j:GridCell>
        </j:Grid>

Reply via email to