Why IVisualElementContainer does not have "getChildren" method defined?

Hi all,
In Flex 3 SDK Container.as has method getChildren() and rawChildren property typed as IChildList.
But In Flex 4 the interface IVisualElementContainer does not have a definition for getChildren() > thus neither SkinnableContainer nor Group have this method defined.
Was this decision made deliberately to simplify the interface API?
I find it convenient to have "getChildren" method implemented inside Group and SkinnableContainer,  for example this can be useful if I want to access all visual childs of those containers to pass them along to some manager class or to dynamically set some common property of all childs ( e.g visibility).

MX had a concept of two sets of children: regular children and raw children.  One component could have two children lists.
Spark simplifies this concept because of the skin.  Now there's really only one set of children.  Because of this IVisualElementContainer acts like IChildList and has a very similar API.  You should be able to use IVisualElementContainer as you would IChildList before.
Note that in places where we do have more than one-set of children, we don't expose them on the main object, but require you to dig down in to the separate object (the skin or the controlBarGroup for example).
Hope that helps,
Ryan

Similar Messages

  • Why Set does not have get() method

    Can some one tell me why set does not have get method?...

    user12203354 wrote:
    ya u are right that designer of this class thought there is no implementation required for get but why he/she thought like this...
    there must be some valid reason for the same.Because a Set's purpose is not to keep things in order; it's to ensure there are no duplicate entries. Set would require extra code to be able to keep track of an order.
    Note that there is a Set implementation that does keep track of insertion order--LinkedHashSet--but it doesn't have a get() method.

  • How to resolve Nqserror:15033 : FACT_TABLE does not have a properly defined

    Hello All,
    I have a model wherein when i modify a join(b/w a fact and a dim1 is modified to fact and dim2), i get the following error..
    [nQSError: 15001] Could not load navigation space for subject area SA.
    [nQSError: 15033] Logical table Fact_Marketing does not have a properly defined primary key.
    Why am i getting an error to have a primary key on a fact table..!
    Yet if i define a key, no errors come up. But, it throws error in the presentation services.
    and one more important one is..
    the error it is throwing on a table "Fact_Marketing" is not at all included in the modifications mentioned above..
    only thing i have in common is,
    both the dimensions dim1, dim2 are joined directly to both the facts..
    Any pointers into this issue would definitely help me..
    Thanks in advance.

    Sounds like it's not recognising that your table is a fact table. Is the icon showing as the fact table icon rather than the dimension icon against it?
    If not then is your logical join the correct way around? (many end towards the fact table)
    If you're on 10g then also make sure you're using a complex join, not a foreign key join in the business model.

  • OBIEE 11g: Fact table does not have  a properly defined primary key

    Hi,
    We have two fact tables and two dimension tables.
    We have joined the tables like
    D1-->F1
    D2-->F2
    D1-->D2
    We dont have any hieracies.
    It is throwing error in consistency check,
    [nQSError: 15001] Could not load navigation space for subject area ABC.
    [nQSError: 15033] Logical table Fact1 does not have a properly defined primary key.
    It is not like STAR Schema, its like snowflake schema. How to define primary key for fact table.
    Thanks.

    Hi,
    My suggestion would be bring both the facts to the same logical table sources and have a single fact table in the BMM layer joined with multiple dimensions.
    Build a dimension hierarchy for the dimensions and then in the content logical layer mapping, map the dimensions to the fact tables with detailed level/Total
    Refer the below link-
    http://108obiee.blogspot.com/2009/08/joining-two-fact-tables-with-different.html
    Hope this help's
    Thanks,
    Satya

  • Error message: $host does not have a method 'resetDataPermsCheck'

    LiveCycle Designer 8.05.
    I am trying to reset the data in a subform. It is working great in certain subforms in my form. However, some of the code is as follows:
    if (form1.P1.docSF.new_revision.rawValue == "0") {
    // do something
    } else {
    xfa.host.resetData("form1.P1.newdoc_numberSF");
    With this code, I receive an error (in the Warnings panel) that says "$host does not have a method 'resetDataPermsCheck'", yet the subform fields still reset properly. If I move the "xfa.host.resetData..." line out of the "else" section into the "if" section, the error message goes away.
    Any idea what might be going on?

    Welcome to the forum.
    Could someone point to the cause of the error.Could you please mention the complete error message ( the ORA-xxxxx code ) and your database version ( the result of: select * from v$version; )

  • Help with Error: $host does not have a method 'messageBox'

    Greetings Everyone:
    I get this error in my Log window:
    Error: $host does not have a method 'messageBox'
    I'm calling xfa.host.messageBox("MyMessage") from form's initialize event.
    What am I doing wroing?
    Acrobat Pro 9 - Java Script is enabled.
    Thanks in advance,
    iL

    Hi Steve:
    Thanks for your prompt responses. I appreicate that. I got the latest version.
    I'm OT on at home looking for more answers...I'm guessing it's an installation issue...
    I even tried console.println("Message"); CTRL + J and blank. I did this on Acrobat and LC.
    I'm gonna do a full unistnall and reinstall when I get back to office.
    The software is coming from our IS dept so I know it's squeaky clean.
    I did an Installer Repair but the problem has returned.
    I also can't use/access any xfa.layout memebers....
    I get this errors even on newly created forms...it hasn't crashed again so I can't get any bucket ID log yet.
    Here's whats on my office box that giving me grief:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    OS Platform: (HP Box)
    SQL Server 2008 Express (HotFix installed)
    VS2008,Office2k7.
    XP SP3
    iL

  • Re: Error: $host does not have a method 'messageBox'

    Hello Experts:
    I'm experiencing strange behavior on my LC Designer ES application.
    I recieve a warning and my console window (ctrl+j) doesn't show up nor does the message box.
    I cannot see xfa.layout members on the object drop-down menu. I have re-installed to no avail.
    This occurs on every all forms. The default script is set to JavaScript.
    Can anyone explain this behavior.  Is it an installation issue?
    Thank you for your time, iL.
    Log:
    Generating PDF Document...
    Script failed (language is javascript; context is xfa[0].form[0].form1[0])
    script = xfa.host.messageBox("My Message");
      Error: $host does not have a method 'messageBox'
    PDF generated successfully.
    Script:
    form1::initialize - (JavaScript, client)
         xfa.host.messageBox("My Message");
    System Info:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    SQL Server 2008 Express (HotFix installed)
    XP SP3, Office 2k7

    Hi Steve:
    Thanks for your prompt responses. I appreicate that. I got the latest version.
    I'm OT on at home looking for more answers...I'm guessing it's an installation issue...
    I even tried console.println("Message"); CTRL + J and blank. I did this on Acrobat and LC.
    I'm gonna do a full unistnall and reinstall when I get back to office.
    The software is coming from our IS dept so I know it's squeaky clean.
    I did an Installer Repair but the problem has returned.
    I also can't use/access any xfa.layout memebers....
    I get this errors even on newly created forms...it hasn't crashed again so I can't get any bucket ID log yet.
    Here's whats on my office box that giving me grief:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    OS Platform: (HP Box)
    SQL Server 2008 Express (HotFix installed)
    VS2008,Office2k7.
    XP SP3
    iL

  • Getting the Entity does not have a key defined but it actually does.

    So I am trying to use EF 6 with the AdventureWorks database to build out some web api services.
    Everything was going well until I added the EmployeeDepartmentHistory table and then I keep getting the  "The entity "EmployeeDepartmentHistory' does not have a key defined."
    But here is my edmx file which does have it defined.
    edmx:
    <EntityType Name="EmployeeDepartmentHistory">
    <Key>
    <PropertyRef Name="BusinessEntityID" />
    <PropertyRef Name="DepartmentID" />
    <PropertyRef Name="ShiftID" />
    <PropertyRef Name="StartDate" />
    </Key>
    <Property Name="BusinessEntityID" Type="int" Nullable="false" />
    <Property Name="DepartmentID" Type="smallint" Nullable="false" />
    <Property Name="ShiftID" Type="tinyint" Nullable="false" />
    <Property Name="StartDate" Type="date" Nullable="false" />
    <Property Name="EndDate" Type="date" />
    <Property Name="ModifiedDate" Type="datetime" Nullable="false" />
    </EntityType>
    <EntityType Name="EmployeeDepartmentHistory" Abstract="false">
    <Key>
    <PropertyRef Name="BusinessEntityID" />
    <PropertyRef Name="DepartmentID" />
    <PropertyRef Name="ShiftID" />
    <PropertyRef Name="StartDate" />
    </Key>
    <Property Name="BusinessEntityID" Type="Int32" Nullable="false"/>
    <Property Name="DepartmentID" Type="Int16" Nullable="false" />
    <Property Name="ShiftID" Type="Byte" Nullable="false" />
    <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="0" />
    <Property Name="EndDate" Type="DateTime" Precision="0" />
    <Property Name="ModifiedDate" Type="DateTime" Nullable="false" Precision="3" />
    <NavigationProperty Name="Department" Relationship="AdventureWorks2012Model.FK_EmployeeDepartmentHistory_Department_DepartmentID" FromRole="EmployeeDepartmentHistory" ToRole="Department" />
    <NavigationProperty Name="Employee" Relationship="AdventureWorks2012Model.FK_EmployeeDepartmentHistory_Employee_BusinessEntityID" FromRole="EmployeeDepartmentHistory" ToRole="Employee" />
    <NavigationProperty Name="Shift" Relationship="AdventureWorks2012Model.FK_EmployeeDepartmentHistory_Shift_ShiftID" FromRole="EmployeeDepartmentHistory" ToRole="Shift" />
    </EntityType>
    Please help I've been stuck on this for days. I've tried deleting it and re-adding it but to no avail.

    EmployeeDepartmentHistory and this table itself has a primary key on it?

  • Why we does not have List.contains(E o) List.remove(E o)

    List class is having
    bool contains(Object o)
    bool remove(Object o)
    I was wondering why the List class doesn't have
    bool contains(Object o)
    bool remove(Object o)
    Isn't user will not protected by compiler if they try to do some wrong stuff?
    List<String> list = new ArrayList<String>();
    list.remove(new Integer(123)); // I expect compiler to prevent us to do this???
    Thanks!
    Cheok

    Peter__Lawrey wrote:
    KwangHooi wrote:
    Isn't user will not protected by compiler if they try to do some wrong stuff?User's should be protected, but developers need to understand what they are doing.
    List<String> list = new ArrayList<String>();
    list.remove(new Integer(123)); // I expect compiler to prevent us to do this???That assumes this is an error. The compiler could only determine trivial, pointless cases.
    As a developer you need to be able to determine much more complex cases than the compiler ever could.I do not agree with you.
    Generics feature in Java allow "a type or method to operate on objects of various types while providing compile-time type safety." When we mention about "compile-time type safety", we means the code may be compiled without errors and warnings and does not raise any unexpected ClassCastExceptions at runtime.
    Cosider the following code before we are having generic feature :-
    List v = new ArrayList();
    v.add("test");
    Integer i = (Integer)v.get(0);We will get java.lang.ClassCastException while trying to execute the third line. However, by using generic, programmers are protected from making mistake
    List<String> v = new ArrayList<String>();
    v.add("test");
    Integer i = v.get(0);Compiling the third line of this fragment with J2SE 1.5 will yield a compile-time error because the compiler will detect that v.get(0) returns String instead of Integer.
    So, a class designer, shall design the class in such a way that, "easy to be used, difficult to be mis-used"
    Come back to the original question :-
    If we already have a type safe
    public boolean add(E e)
    Why cann't we have
    public boolean contains(E e)
    public boolean remove(E e)

  • Why ipad does not have WHATSAPP as well as iphone?

    Why ipad doesn't have WHATSAPP as well as iphoe?

    Ask the developers of the app, nothing to do with Apple.

  • Problem Create ANE,ArgumentError: Error #3500: The extension context does not have a method with the name

    I little confuse about build ANE, I already follow all the direction, but the error always #3500 when I try to call the ANE.
    I create ANE using java android.
    The tools I use : Flash Builder running on Win-64 win.7. I think I must straight to the point, here what i made it first step by step;
    1. I create the JAVA application first, with package senigo.extension.android then I create 3 file, Sample.java, SampleContext.java, PassTextFunction.java
    Sample.Java Source Code
    package senigo.extension.android;
    import android.util.Log;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREExtension;
    public class Sample implements FREExtension {
      @Override
      public FREContext createContext(String arg0) {
      // TODO Auto-generated method stub
      Log.i("Sample", "createContext");
      return new SampleContext();
      @Override
      public void dispose() {
      // TODO Auto-generated method stub
      Log.i("Sample", "Dispose");
      @Override
      public void initialize() {
      // TODO Auto-generated method stub
      Log.i("Sample", "Initialize");
    SampleContext.Java Source Code
    package senigo.extension.android;
    import java.util.HashMap;
    import java.util.Map;
    import android.util.Log;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREFunction;
    public class SampleContext extends FREContext {
      public SampleContext()
      Log.i("SampleContext", "constructor");
      @Override
      public void dispose() {
      // TODO Auto-generated method stub
      Log.i("SampleContext", "dispose");
      @Override
      public Map<String, FREFunction> getFunctions() {
      // TODO Auto-generated method stub
      Log.i("SampleContext", "getFunctions");
      Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
      functionMap.put("passText", new PassTextFunction());
      return functionMap;
    PassTextFunction.Java Source Code
    package senigo.extension.android;
    import com.adobe.fre.FREContext;
    import com.adobe.fre.FREExtension;
    import com.adobe.fre.FREFunction;
    import com.adobe.fre.FREObject;
    public class PassTextFunction implements FREFunction {
      @Override
      public FREObject call(FREContext arg0, FREObject[] arg1) {
      // TODO Auto-generated method stub
      FREObject result = null;
      try{
      result =  FREObject.newObject("Hello World");
      }catch(Exception e)
      return result;
    after all the file I create the jar file using click right on the tree view >> Export >> Jar File >> Sample.Jar (i already create jar file that just contain the src folder and after i frustrated, i create .jar file contain all the whole project folder but still didn't work out).
    Ok, After that I create project Flex Library Project, That's contain the actionscript to call the native and the extension.xml, here the code.
    Test.as Source Code, FYI : i already create public function and the static function the error still same #3500.
    package senigo.extension.android
      import flash.external.ExtensionContext;
      public class test
      private static var extContext:ExtensionContext = null;
      public function test()
      trace ("Test Constructor");
      if (!extContext)
      initExtension();
      public static function get passText():String
      trace ("Test Pass Text");
      if (!extContext)
      initExtension();
      return extContext.call("passText") as String;
      private static function initExtension():void
      trace ("Vibration Constructor: Create an extension context");
      extContext = ExtensionContext.createExtensionContext("senigo.extension.android", null);
    extension.xml source code
    FYI: in Flex when i put the Native Extension, they said must have Windows-x86 so I already create 3 ANE, that just contain Android-ARM , Contain Android-ARM and Default, Contain Android-ARM,Default and Windows-x86 but the error still same. I didn't got it where is the error.
    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
      <id>senigo.extension.android</id>
      <versionNumber>1.0.0</versionNumber>
      <platforms>
      <platform name="Android-ARM">
      <applicationDeployment>
      <nativeLibrary>Sample.jar</nativeLibrary>
      <initializer>senigo.extension.android.Sample</initializer>
      <finalizer>senigo.extension.android.Sample</finalizer>
      </applicationDeployment>
      </platform>
      <!-- <platform name="Windows-x86">
      <applicationDeployment>
      <nativeLibrary>sample.jar</nativeLibrary>
      <initializer>senigo.extension.android.Sample</initializer>
      <finalizer>senigo.extension.android.Sample</finalizer>
      </applicationDeployment>
      </platform>
      -->
       <platform name="default">
    <applicationDeployment/>
    </platform>
      </platforms>
    </extension>
    After I create it, I copy the .swc file and extension file sample with the Sample.jar file.
    I extract the .swc file, copy the library.swf to folder Android-ARM,Default,Windows-86 and I create build.bat that contain the command like this
    adt -package  -storetype PKCS12 -keystore senigo.p12 -storepass l10nk1ng -target ane senigo.extension.android.ane extension.xml -swc AndroidLib.swc -platform Android-ARM -C ./Android-ARM/ . -platform default -C ./default/ .
    the I put the ane to Flex mobile project that I created:
    I run it but got error #3500, I really confuse?? what's wrong with my code? is there something I wrong or I Miss it?
    Please any one help me.. and when is already ane file can I debug it in Flex Mobile Project? I wanna looks the log.i code that i wrote but i confuse how to looking up in flash builder.
    at the end, I wanna said Sorry if my english not very goods, and thanks, because wanna see my problem and thank you very much if You can gave me a solution's

    Alex Rekish wrote:
    Why you comment Windows-x86 in your extension.xml ?
    I think that is a problem. You launch your application on Windows but ANE haven't got Windows-x86 implementation (also you don't include it while packaging). So your application use default implementation. But default implementation don't use any native code and cannot use ExtensionContext. And you got error.
    If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation.
    Thanks for you answer Alex Rekish, Sorry I didn't screen shoot all about the extension.xml. I comment it because the latest ANE that I build is contain Android-ARM and default. so I commented. but I already try it using just ANE that's just contain Android-ARM, with Android-ARM and windows-x86,and Android-ARM, and default, and Android-ARM,default,Windows-x86 the error still the same.
    here the screen shoot, I embeded the ane that's i contain Windows-x86
    in action script test.as I didn't change it anythings, I just play it on extension.xml to build the ane. is there any mistake over there? I interact with your answer that "If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation." I didn't need to user ExtensionContext? is means? in the actionscript? or in extension.xml? can you explained

  • Adobe air windows/C++:Error #3500: The extension context does not have a method with the name

    I created a C++ dynamic dll called by air.
    If the dll depends on other dlls, then the error#3500 occured. However removed other dlls, it works.
    Could that mean the air can only call one dynamic dll that doesn't depend any other dlls?
    does anybody met this problem before, or let me know what can I do?

    Alex Rekish wrote:
    Why you comment Windows-x86 in your extension.xml ?
    I think that is a problem. You launch your application on Windows but ANE haven't got Windows-x86 implementation (also you don't include it while packaging). So your application use default implementation. But default implementation don't use any native code and cannot use ExtensionContext. And you got error.
    If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation.
    Thanks for you answer Alex Rekish, Sorry I didn't screen shoot all about the extension.xml. I comment it because the latest ANE that I build is contain Android-ARM and default. so I commented. but I already try it using just ANE that's just contain Android-ARM, with Android-ARM and windows-x86,and Android-ARM, and default, and Android-ARM,default,Windows-x86 the error still the same.
    here the screen shoot, I embeded the ane that's i contain Windows-x86
    in action script test.as I didn't change it anythings, I just play it on extension.xml to build the ane. is there any mistake over there? I interact with your answer that "If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation." I didn't need to user ExtensionContext? is means? in the actionscript? or in extension.xml? can you explained

  • Why Namoroka does not have the Upgrade button?

    Does this happen on you machine?
    http://omploader.org/vNDNvMw

    because it's supposed to be updated with pacman (especially as this is an unofficial build so you can't update via mozilla)?

  • On demand error - box does not have enough credit

    For the duration of the day I cannot watch free on demand programs. For example, when I attempt to play an NBC show it states that that my box does not have enough credit and to call customer service. I am calling the The number given and entering the code 8362 as given in the error message. The line rings and then disconnects. I tried calling the customer svc nbr specified in the customer svc screen from the menu option. It rings and then just disconnects. Very disappointed that a company like Verizon does not have the methods or technology to accept inbound calls to their customer service centers. I am posting here in hopes of obtaining some support from verizon since I cannot obtain support by calling.

    NoShoreMA Contributor said
    "This happened to me earlier. Go to Menu and select Customer Support. Select In Home Agent. I tried to reboot (only gave me different error code). Select Set Top Box Auto Correct. This seemed to have done the trick. What do you know.....I am watching the movie that shut down when this all started. Good Luck!"
    worked for me hope it works for you

  • Why Math class does not have any constructor.

    Math class does not have any constructor.
    But all the classes have a default constructor. Then why the math class is not having any constructor. Is math class having some other constructor or is the default constructor concept applicable only for user defined classes.

    Math class does not have any constructor.
    But all the classes have a default constructor. Then
    why the math class is not having any constructor. Is
    math class having some other constructor or is the
    default constructor concept applicable only for user
    defined classes.You cannot instantiate a new Math object, nor can you extend the Math class. All you can do is use Math's static methods and variables. Its a utility class, thats what its susposed to do.
    JJ

Maybe you are looking for

  • Subfolders when syching photos?

    i have over 4000 pics on my pc from my travels and from everyday life, i have them all categorized into folder (ex:2004,2005,2006) and in those folders i have categorized folders (ex april,march, trip to boston,trip to australia etc) when itunes sync

  • Brush...I do not know how to bring it back....

    I am so sorry for this silly question but I was used to have on the screen the rectangular (or circle depending on the brush choosen) grid and now, no matter what brush I choose, I have always a cross pointer that does not help me in the drawing. Any

  • PDF problem: copy and paste results in squares

    hello all, I have problem with my PDF's. I'm afraid the problem maybe is not related to the distiller, but I hope someone here can guide me in the right direction. I don't know exactly what the right starting point is for this case. The problem is th

  • MacBook for field-/location audiorecording (film & video)

    Searching for tips about a recording setup for field/location use. My purpose is to record 4-5 wireless + 1-2 boom mikes in the field. The ability to timestamp files by incoming TC would be a strong plus. Also syncing to the cameras sync/blackburst v

  • Trouble understanding treemap question

    Okay, here is the question: Create 10,000 unique random key values in the range 10,000 to 100,000. Hold them in array key. Use Random class's nextInt(n) method to add a random offset to the last randomly value generated. Start with value 1. rn = rn +