On Wed, Oct 2, 2013 at 11:58 PM, Alex Harui <aha...@adobe.com> wrote:

> My defaults CSS is pasted below.  Label's type selector has an IBeadModel.
>  I could be out of date though, but it wouldn't make sense for Label to
> not have an IBeadModel entry.
>
>
My defaults.css has the same identical entry for Label.  Somehow that does
not seem to get populated.

Thanks,
Om


> ------- defaults.css ----------
>
> /*
>  *
>  *  Licensed to the Apache Software Foundation (ASF) under one or more
>  *  contributor license agreements.  See the NOTICE file distributed with
>  *  this work for additional information regarding copyright ownership.
>  *  The ASF licenses this file to You under the Apache License, Version 2.0
>  *  (the "License"); you may not use this file except in compliance with
>  *  the License.  You may obtain a copy of the License at
>  *
>  *      http://www.apache.org/licenses/LICENSE-2.0
>  *
>  *  Unless required by applicable law or agreed to in writing, software
>  *  distributed under the License is distributed on an "AS IS" BASIS,
>  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
> implied.
>  *  See the License for the specific language governing permissions and
>  *  limitations under the License.
>  *
>  */
>
> @namespace "library://ns.apache.org/flexjs/basic";
> @namespace h5 "library://ns.apache.org/flexjs/html5";
> @namespace jq "library://ns.apache.org/flexjs/jquery";
> @namespace createjs "library://ns.apache.org/flexjs/createjs";
>
> /* Global style declaration */
> *
> {
>     font-family: "Arial";
>     font-size: 12px;
> }
>
> Button
> {
>         background-color: #d8d8d8;
>         border: 1px solid #000000;
>         padding: 4px;
> }
>
> Button:hover
> {
>         background-color: #9fa0a1;
>         border: 1px solid #000000;
>         padding: 4px;
> }
>
> Button:active
> {
>         background-color: #929496;
>         border: 1px solid #000000;
>         padding: 4px;
> }
>
> @media -flex-flash
> {
>
> /* Global style declaration */
> global
> {
>     IStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl");
> }
>
> Alert
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
> ");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.AlertView");
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
> Controller");
>     iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
>     iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
>
>     background-color: #FFFFFF;
>     border-style: solid;
>     border-color: #000000;
>     border-thickness: 1;
> }
>
> CheckBox
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> onModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>
> }
>
> ComboBox
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
> del");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Combo
> BoxController");
>     IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> Container
> {
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ContainerView")
> }
>
> ControlBar
> {
>     IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> lHorizontalLayout");
>     iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.ControlBarMeasure
> mentBead");
>     iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
>     iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
>
>     background-color: #CECECE;
>     border-style: solid;
>     border-color: #000000;
>     border-thickness: 1;
> }
>
> DropDownList
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.DropDownListView"
> );
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.DropD
> ownListController");
>     IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> DropDownListList
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> }
>
> Label
> {
>         width: 95;
>         height: 18;
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");
>         iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMea
> surementBead");
> }
>
> List
> {
>         IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ListView");
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ListS
> ingleSelectionMouseController");
>     IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> lVerticalScrollingLayout");
>     IDataProviderItemRendererMapper:
> ClassReference("org.apache.flex.html.staticControls.beads.TextItemRendererF
> actoryForArrayData");
>     IItemRendererClassFactory:
> ClassReference("org.apache.flex.core.ItemRendererClassFactory");
>     IItemRenderer:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.TextFiel
> dItemRenderer");
> }
>
> NumericStepper
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> ");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.NumericStepperVie
> w");
>
>     padding: 0px;
>     border-style: solid;
>     border-color: #000000;
>     border-thickness: 1;
>     background-color: #FFFFFF;
>     iBorderBead:
> ClassReference('org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead');
>     iBackgroundBead:
> ClassReference('org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad');
> }
>
> Panel
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.PanelModel
> ");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.PanelView");
>     iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
>     iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
>
>     background-color: #FFFFFF;
>     border-style: solid;
>     border-color: #000000;
>     border-thickness: 1;
> }
>
> RadioButton
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> eButtonModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> ;
> }
>
> ScrollBar
> {
>     IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.VScrollBa
> rLayout");
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ScrollBarM
> odel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ScrollBarView");
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.VScro
> llBarMouseController");
> }
>
> SimpleAlert
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.AlertModel
> ");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.SimpleAlertView")
> ;
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Alert
> Controller");
>     iBorderBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SingleLineBorderB
> ead");
>     iBackgroundBead:
> ClassReference("org.apache.flex.html.staticControls.beads.SolidBackgroundBe
> ad");
>
>     background-color: #FFFFFF;
>     border-style: solid;
>     border-color: #000000;
>     border-thickness: 1;
> }
>
> Slider
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> ");
>     iBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.SliderView");
>     iBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Slide
> rMouseController");
>     iThumbView:
> ClassReference("org.apache.flex.html.staticControls.beads.SliderThumbView")
> ;
>     iTrackView:
> ClassReference("org.apache.flex.html.staticControls.beads.SliderTrackView")
> ;
> }
>
> Spinner
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.RangeModel
> ");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.SpinnerView");
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.Spinn
> erMouseController");
> }
>
> TextArea
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextAreaView");
>     width: 135;
>     height: 20;
> }
>
> TextButton
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
> ");
>     iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonMeasure
> mentBead");
> }
>
> TextFieldItemRenderer
> {
>     IBeadController:
> ClassReference("org.apache.flex.html.staticControls.beads.controllers.ItemR
> endererMouseController");
>     height: 16;
> }
>
> TextInput
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
> erView");
>         width: 135;
>         height: 20;
> }
>
> TitleBar
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TitleBarMo
> del");
>     IBeadLayout:
> ClassReference("org.apache.flex.html.staticControls.beads.layouts.NonVirtua
> lHorizontalLayout");
>     iMeasurementBead:
> ClassReference("org.apache.flex.html.staticControls.beads.TitleBarMeasureme
> ntBead");
> }
>
> /* HTML5 */
>
> h5|TextButton
> {
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CSSTextButtonView
> ");
> }
>
> h5|TextInput
> {
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextInputWithBord
> erView");
> }
>
> h5|CheckBox
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> onModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>
> }
>
> h5|RadioButton
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> eButtonModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> ;
> }
>
> h5|List
> {
>         IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
> }
>
> h5|DropDownList
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ArraySelec
> tionModel");
>     IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> h5|ComboBox
> {
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.ComboBoxView");
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ComboBoxMo
> del");
>     IPopUp:
> ClassReference("org.apache.flex.html.staticControls.supportClasses.DropDown
> ListList");
> }
>
> /* jQuery */
>
> jq|TextButton
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
> }
>
>
> jq|CheckBox
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ToggleButt
> onModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
>
> }
>
> jq|RadioButton
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.ValueToggl
> eButtonModel");
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.RadioButtonView")
> ;
> }
>
> /* createjs */
>
> createjs|TextButton
> {
>     IBeadModel:
> ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel"
> );
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.TextButtonView");
> }
>
> createjs|CheckBox
> {
>     IBeadView:
> ClassReference("org.apache.flex.html.staticControls.beads.CheckBoxView");
> }
>
> }
>
>
>
>
> On 10/2/13 11:50 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
>
> >On Wed, Oct 2, 2013 at 7:52 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >>
> >>
> >> On 10/2/13 4:55 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
> >> >
> >> >I am still trying to get the jQuery_Sample app to run.  I added
> >> >'implements
> >> >IFlexInfo' to the jquery application class.
> >> >    at
> >>
> >>>org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\worksp
> >>>ac
> >>
> >>>e\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCS
> >>>SV
> >> >aluesImpl.as:237]
> >>
> >>>========================================================================
> >>>==
> >> >===========================================
> >> >
> >> >It seems like the iBeadModel property is not available in the Label
> >> >instance.  I see that in defaults.css, we do set IBeadModel, though:
> >> >
> >> >I did spend quite a bit of time figuring out why it is not being set.
> >>Any
> >> >idea what is going on here?
> >> Hmm.  SimpleCSSValuesImpl line 237 is trying to find the global
> >>selector.
> >> I have one in my copy of defaults.css but I'm not synced up.  For sure,
> >> there should be a null check there so that's a bug.
> >>
> >>
> >I added the null checks - will check it in soon.  But the real problem is
> >that no such value exists in global or in *  So, at the end a null is
> >returned by the getValue() function and it fails like this:
> >
> >TypeError: Error #1007: Instantiation attempted on a non-constructor.
> >    at org.apache.flex.core::UIBase/get
> >model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\or
> >g\apache\flex\core\UIBase.as:173]
> >    at org.apache.flex.html.staticControls::Label/set
> >text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org
> >\apache\flex\html\staticControls\Label.as:46]
> >    at org.apache.flex.binding::SimpleBinding/set
> >strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\o
> >rg\apache\flex\binding\SimpleBinding.as:51]
> >    at
> >org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git
> >\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
> >    at
> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_
> >os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\util
> >s\MXMLDataInterpreter.as:153]
> >    at
> >org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\f
> >lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\
> >utils\MXMLDataInterpreter.as:224]
> >    at
> >org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flex
> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
> >    at
> >org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flex
> >root\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:1
> >33]
> >    at
> >org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\fle
> >xroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:
> >63]
> >
> >
> >
> >> >
> >> >Also, there seems to be an inconsistent usage of "iSomething" vs.
> >> >"ISomething" throughout the codebase.  Could that be causing these
> >>issues?
> >> >Maybe we should standardize on one naming convention.
> >> Yeah, that needs to be ironed out.  I was planning on waiting until I
> >>see
> >> what it takes to get custom CSS styles to work on the JS side.  There
> >>was
> >> some code somewhere that was automatically changing the capital "I" to
> >> small "i" and so we had to use small "i" in the code, at least for now.
> >>
> >
> >Do you have an idea where this piece of code could be in?  I can take a
> >shot at fixing this.
> >
> >
> >>
> >> -Alex
> >>
> >>
>
>

Reply via email to