How to access group content, or anything inside?

Let's say I have this group:
var myGroup = Group{
     var someNumber:Number;
        var stf = SwingTextField{
             columns: 10,
              text: "TextField",
             editable: true
     content:[
          Text{
               x: 100;
               y: 100;
               content: someNumber;
               fill: Color.BLACK
                stf
}And let's say sometime when the program is running, the user changes the value of the SwingTextField. How do I access that? Like, I insert a rectangle inside the scene in the stage, and when the user moves the mouse it prints the content of the SwingTextField? And how do I access the variable "someNumber" as well? I tried things like println(myGroup.someNumber) or even println(myGroup) but nothing. Eclipse says it can't find "someNumber".
Thanks. JavaFX is a lot trickier than what it made me thought at first. It doesn't help that the tutorials I've read taught some bad habits.
_EDIT:_
I figured out myGroup.content[], but it doesn't let me access the attributes of the node, like when I use
myGroup.content[1].textIt can't find "text" even though it's already pointing to the SwingTextField (verified when I printed myGroup.content[1]), but the JavaFX documentation says it should have a text attribute.

If you look at the javafx doc for Group you will see that content is declated as a Node[] (a sequence of Node instances) which means each node included within will show up as a Node. It is up to you to cast it to its real type afterwards.
Alternatively, instead of direct access by index, you could set a unique id to each nodes and seach the content for a particular id. You will still need to cast afterward.

Similar Messages

  • UCM 11g - how to accessing secured content using open WCM service

    Hi All,
    Does any one has an idea on how to access the contents that are checked in with security groups as "Secured". If the contents are checked in as "Public" then, we can easily access the same with the following open WCM servervice:l
    http://<ucm_server>:16200/cs/idcplg??IdcService=WCM_PLACEHOLDER&dataFileDocName=<data_file_name>&templateDocName=<region_template_name>
    Regards,
    Sanjay

    Hi Donato,
    Did you ever get an answer for this issue? I'm trying to get a similar case working and would be curious on how you ended up doing this...
    For what I know so far, this may help you:
    1) The trigger-EBSProfile requires you to pass th afGuid value, this value, is created automatically by the IPM process, basically, when you click the MA button in EBS, the SOA call to IPM does 2 things:
    First, it creates a row in the AFGRANTS table in the WCContent DB, this basically overwrites UCM security and give the user access to the documents, this table has the information of the EBS record (Business Object, and Primary Key) as well as the auto generated afGuid
    Second it sends back the URL to WCContent, mainly "/cs/idcplg/_p/min/af/trigger-EBSProfile?IdcService=GET_SEARCH_RESULTS_FORCELOGIN" and passes the afGuid created in the first step, which identifies the EBS record.
    So if you need to make direct calls to UCM under the trigger-EBSProfile you will need to manually (custom) add the afGuid and details of the EBS record to the table, the entries in this table get removed automatically based on the dexpirationdate value
    2) While the IPM SOA call overwrites the UCM security, if you have implemented your own security structure (assign a different security group to the documents and give the users access to it) you could make calls directly to UCM bypassing the "trigger-EBSProfile"..
    for example, in the call you were trying to make originally to DOC_INFO, if you know the dDocName of the document, you can simply call the service as "/cs/idcplg?IdcService=DOC_INFO_BY_NAME&dDocName=POC2001" (I use DOC_INFO_BY_NAME because you need to know the dDocId for DOC_INFO)
    You can do the same with other services like checkin/checkout etc, (for checking you will need to pass the additional parameters dfBusinessObejct, dAFBusinessObject and dfApplication to link the document to the EBS record)
    Regards,
    Juan Becerra

  • As a new MacBook user I plug in my USB Flash Drive but don't know how to access its contents. Please help. Thanks.

    as a new MacBook user, when inserting my USB Flash Drive, I do not know how to access its contents. Please help. Thanks.

    Open a new Finder window, Finder > File > New Finder Window, and it should appear on the left under Devices.
    If you don't see it there, or to get it to show up on the Desktop: Finder > Preferences... General tab, check External disks to have it show on the Desktop,  Or Sidebar tab, check External disks under DEVICES.

  • Web Dynpro ABAP: How to access the content of a mime object?

    Hi everyone,
    does anybody know how to access the content of a mime object of a Web Dynpro component? I added a XML file as mime object to a web dynpro component. Now I want to read the content of this xml file within a method of the component controller. The code would look something like:
    DATA: xml_content type xstring.
    xml_content = read_mime_object("test_123.xml").
    Any ideas?
    Regards,
    Nils

    dude here's the modification that i've done but I can't still access the content of the properties...
               Mail mail = new Mail();
               String message2 = sqlException.getMessage();
               File file = new File("Add.properties");
               Properties props = new Properties();
               props.load(new FileInputStream(file));
               String[] emailadd = {props.getProperty("emailadd","defaultValue")};
               mail.postMail(emailadd,"An error has occurred, Auto-archive was unsuccessful.", message2,"[email protected]");
               Message was edited by:
    ryshi1264

  • How to access the content in the configuration files

    Hi, Folks,
    To make it easy, the questions can be like this:
    how to access the content in web.xml in a web application?
    Through ServletConfig and context?
    how to access the content in ejb-jar.xml in an ejb?
    initial context?
    Thanks

    There is no documented way to delete data stored in archived log files: you can only remove the archived log files if needed.

  • How To Access JSP Image file Path inside JavaBean Class

    In my Webapplication,i have jsp and javabeans files. i need to send one image file path contains in Image folder to JavaBean[MyBean.java].
    From MyBean i am trying to display that image using PdfGen Application[JAR] in a new PDF Document.
    The Web Application Structure is as
    MyWebApp
    Image
    \ mypic.gif
    JSP
    \myjsp.jsp
    WEB-INF
    classes
    \pack.MyBean.java
    My Question :
    Inside the webapplication[JSP] the image file is accessed as a URL.(like http://localhost:7001/mywebapp/Image/mypic.gif). but From JavaBean: How To access this file? becz inside javabean it needs a complete system path..How to solve this problem? plz send me any solutions related to my problem....Thank U.

    Dear Madruguinha!
    Thank you very much for your tips.
    but i find another one method for accessing the image.
    // Inside Servlet or JSP
    String realPath=getServletContext().getRealPath("Image"+"/pic1.gif");
    Now we can send this exact system path variable to any java beans or java class that needs the image path as "drivename:\foldername\filename" like "c:\myflolder\mypic.gif" and not web context path.

  • How to access var in outter class inside inner class

    I've problem with this, how to access var number1 and number2 at outter class inside inner class? what statement do i have to use to access it ? i tried with " int number1 = Kalkulator1.this.number1; " but there no value at class option var y when the program was running...
    import java.io.*;
    public class Kalkulator1{
    int number1,number2,x;
    /* The short way to create instance object for input console*/
    private static BufferedReader stdin =
    new BufferedReader( new InputStreamReader( System.in ) );
    public static void main(String[] args)throws IOException {
    System.out.println("---------------------------------------");
    System.out.println("Kalkulator Sayur by Cumi ");
    System.out.println("---------------------------------------");
    System.out.println("Tentukan jenis operasi bilangan [0-4] ");
    System.out.println(" 1. Penjumlahan ");
    System.out.println(" 2. Pengurangan ");
    System.out.println(" 3. Perkalian ");
    System.out.println(" 4. Pembagian ");
    System.out.println("---------------------------------------");
    System.out.print(" Masukan jenis operasi : ");
    String ops = stdin.readLine();
         int numberops = Integer.parseInt( ops );
    System.out.print("Masukan Bilangan ke-1 : ");
    String input1 = stdin.readLine();
    int number1 = Integer.parseInt( input1 );
    System.out.print("Masukan Bilangan ke-2 : ");
    String input2 = stdin.readLine();
    int number2 = Integer.parseInt( input2 );     
         Kalkulator1 op = new Kalkulator1();
    Kalkulator1.option b = op.new option();
         b.pilihan(numberops);
    System.out.println("Bilangan yang dimasukkan adalah = " + number1 +" dan "+ number2 );
    class option{
    int x,y;
         int number1 = Kalkulator1.this.number1;
         int number2 = Kalkulator1.this.number2;
    void pilihan(int x) {
    if (x == 1)
    {System.out.println("Operasi yang digunakan adalah Penjumlahan");
            int y = (number1+number2);
            System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 2) {System.out.println("Operasi yang digunakan adalah Pengurangan");
             int y = (number1-number2);
             System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 3) {System.out.println("Operasi yang digunakan adalah Perkalian");
             int y = (number1*number2);
             System.out.println("Hasil dari operasi adalah = " + y);}
    else
    {if (x == 4) {System.out.println("Operasi yang digunakan adalah Pembagian ");
             int y = (number1/number2);
             System.out.println("Hasil dari operasi adalah =" + y);}
    else {System.out.println( "Operasi yang digunakan adalah Pembagian ");
    }

    Delete the variables number1 and number2 from your inner class. Your inner class can access the variables in the outer class directly. Unless you need the inner and outer class variables to hold different values then you can give them different names.
    In future place code tags around your code to make it retain formatting. Highlight code and click code button.

  • How to access group policy in windows 8 home premium, not 8.1 to disable snipping tool

    how do I access group policy to disable the snipping tool in windows 8 home premium? client has not installed update 8.1. client is trying to save pictures to pictures album, but it also saves a screenshot to the documents folder as well regardless
    of what save method is used.
    thanks.

    You can disable the Snipping Tool by creating the below registry setting
    (save as a .REG file)
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\Policies\Microsoft\TabletPC]
    "DisableSnippingTool"=dword:00000001
    ref: http://gpsearch.azurewebsites.net/Default.aspx?PolicyID=2426
    I am not aware of any Snipping Tool feature which automatically saves the snip, as a file.
    (there are other utilities available which can perform similar functions)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)
    This has apparently resolved the problem with the saving of screenshots based on the customers response. thanks so much.

  • How to access cached content?

    Today my Safari browser crashed. When I had it "reopen all windows from last session," the windows from a database I had been searching wouldn't go to the articles I'd had open because the addresses only seem to work if you're navigating there from the search. (And I did so many different searches, many of which I don't remember exactly, that I can't just replicate it that way.)
    However, in each address I have there is a record number I can't use it to re-search the database, but I can use it to search Spotlight. It gives me the page, but, again, opening it like normal won't do any good. But if Spotlight can search all the text that has been open in my Safari browsing, I'm guessing there's some way I can access the content of those pages without opening them in Safari.
    Does that make sense? I'm basically asking how to find and read the content of webpages I've accessed.
    Thank you for any help you can offer. (By the way, I see that in the new beta version I could flip through and read all the pages that are in my history. I guess I should have upgraded to that yesterday!)

    I should note that when I search for words I remember from those webpages, the links to those pages show up. This confirms my suspicion that the content is stored somewhere on my computer. Unfortunately, when I click on the returns from these searches, it just opens up the link to the page (which, again, doesn't ultimately work) rather than the stored data from when I opened it earlier. So I'm looking for the place where those words are stored...
    Any thoughts now?

  • How to dynamically group contents in an attribute column

    I have question on group contents in an antribute column. I have analysis structured as below...
    Customer Industry Revenue
    One Customer can be in several different industry, which is dynamic. If the customer are in several different industries, I want to group the industries as "Various" instead of showing several line for that customer.
    How can I do this? Thanks in advance.

    You can try something similar to this:
    CASE WHEN count(distinct industry BY customer)> 1
    THEN 'Various'
    ELSE
    industry
    ENDAppreciate if you mark as Correct/Helpful.
    Best Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • How to access Infocube content using an ABAP program

    Hi,
       I am trying to access infocube contents using a ABAP program in BW.
       It is easy to access ODS content as we have NEW DATA or ACTIVE DATA
       tables. Is there any way we can access Infocube content.
       I tried using the FACT table but it has only Keyfigure data.
    thanks
    arshad.

    Hi,
    I would suggest to use a transactionnal cube, even if you do not use BPS to feed it.
    Then, you create a layout in transaction BPS0 (~ similar to a query), and you can access the cube content by simply using the SAP function <b>API_SEMBPS_GETDATA</b>.
    This is easy and fast.
    Regards,

  • How to Access Total Number Of Pages inside code

    Hi All,
    I would like to get the total number of pages in the report,inside the trigger.
    How can i access this value inside code.
    Pls Help me
    Thanks and Regards
    Binu

    I think this is not possible inside the code, because this value is deteremined after the code is executed and during the formatting of the report.

  • How to access loaded content of HTMLLoader

    I have a HTMLLoader and after the content is loaded, I'd like
    to access the loaded content. There should be an easy way but I
    could not find it ...
    And what if the loaded content is PDF?

    Suppose you have:
    var htmlLoader:HTMLLoader = new HTMLLoader();
    //Add to display list, load content, etc...
    Then you can access the window object of the loaded page
    thusly:
    htmlLoader.window
    If the HTMLLoader loads a PDF file directly, I suspect that
    under the covers AIR embeds it in an HTML page. So you could still
    access htmlLoader.window and then find the PDF object in the page.
    (I haven't tried this myself, though.)

  • How to access request content using MultipartMessage Object

    I want to take a file from the Client and upload it as a FileInputStream on the server.
    I have a simple form as follows:
    <form action="scan" name="scan_files" method="post"
    enctype="multipart/form-data">
    <input type="file" name="file1">
    <input type="file" name"file2"/>
    <input type="Submit" name="insert_scaned" value="Upload"/>
    </form>
    In my servlet I tried to use the com.sap.engine.services.servlets_jsp.lib.multipart.MultipartMessage
    class to parse the form information.
    protected void doPost(
    HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException {
    MultipartMessage multipartMsg =
    (MultipartMessage)request.getAttribute("com.sap.servlet.multipart.body");     
    if (multipartMsg != null) {
         multipartMsg.addFormParametersToRequest();
    The help said that once this is done the form information should be accessible via the
    request getParameter() method. However, I can't seem to get it working?
    How can I access the file so that I can parse it into a FileInputStream?
    Thanks.

    Hi Mat,
    first, welcome on SDN!
    About your question:
    From the APIDoc - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/javadocs/nw04/sp12/j2ee%20engine/com/sap/engine/services/servlets_jsp/lib/multipart/multipartmessage.html - I would expect this as a solution:
    MultipartMessage multipartMsg = (MultipartMessage)request.getAttribute(MultipartMessage.MULTIPART_BODY_KEY);
    if (multipartMsg != null) {
      for (int i = 0; i < multipartMsg.getCount(); i++) {
        MultiPart mp = multipartMsg.getBodyPart(i);
        // mp.getInputStream, mp.getBody() or whatever you need
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • How to access contents of textframe

    Hi all
    I've a textframe which contains the group of images pasted using 'paste into' command, any idea how to access the contents using script, i've tried
    var inlineFrame = myDocument.stories.everyItem().textFrames.everyItem().getElements();
    unfortunately this doesnt work for this case as the images or textframes are pasted using pasteInto command.
    any suggestions ?

    Try this:
    #target InDesign
    var _allRectangles = app.activeDocument.rectangles.everyItem().getElements();
    for (i=0; i<_allRectangles.length;i++) {   
         if (_allRectangles[i].groups.length > 0) {       
               var _imgArray = _allRectangles[i].groups[0].rectangles.everyItem().images.everyItem().getElements();
               alert("Rectangle " + i + " contains a group with " + _imgArray.length + " images.");
    Roland

Maybe you are looking for

  • Photos not showing up in MacOS Desktop

    I read in a response to a message about downloading photos the following: "However you can move photos as you have already seen by using the quick install tool." I don't undertand it what that stement meant.  Sooo my question is: Is there any way I c

  • Battery % is stuck, No permanent icons on bottom of screen

    Hi. My iphone 4 is 5 months old. I plugged it into my laptop to charge up and since then my battery percentage on the phone is stuck on 4% but the phone is charged. Also when the phone is charging the big battery icon in the middle of the screen stay

  • Programmatically disclosing a node in tree

    Hello Gurus, I am new in adf and using jdev 11.1.2.3. I am trying to disclose a node of tree on clicking commandImageLink added in tree. I am working with Dynamic UI shell. On navigation facet i have a tree. I want to disclose tree when click on link

  • Problems with sharing an Address Book via .Mac

    I am trying to share an address book for my company. The address book is on a Mac mini, running it's own .mac account, and there are three .mac users trying to access it. There are over 5,500 entries and the address book size is around 12MB. We can a

  • 1 iMac. 2 users. Don't want to mix pictures.

    I will be buying an iMac and there will be two users (wife and I) both with iPhones.  I want to sync both phones to the computer and not mix photos, music, notes, etc. (essentially using it as two computers).  Is this possible?  I will be backing up