How can I to control any element of my GUI from another class?

How can I to control any element of my GUI from another class?

For that, you need the external class to have the reference to your element.. If your idea is to change basic properties like width, height etc.. then you can have the constructor of the external class to take the object of the parent of your class as the parameter and modify ..
However, if the properties to be altered/accessed are custom to your element, then you will have to have the class accept an object of your class as the parameter. No other option..
What exactly is your requirement?

Similar Messages

  • How can I call a public function in one component from another component?

    I have two components: Form and Confirmation.  Form is a Canvas and Confirmation is a TitleWindow.
    Form contains several controls and a submit button.  Confirmation contains an OK button.  When the user clicks the submit button, the Confirmation appears over the Form (Form is blurred).  When the user clicks the OK button on the Confirmation, I want to run a function on Form to set some default values in the controls.
    How can I address the function in the Form component from the Confirmation component so I can fire the function?
    Thanks!

    Here is the source
    CustomForm.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    public function callBack(): void {
    lblStatus.text = "Success";
    ]]>
    </mx:Script>
    <mx:Label id="lblStatus"/>
    <mx:Form x="50" y="50" verticalGap="15">
            <mx:FormHeading label="Send us comments" />
            <mx:FormItem label="Full Name:">
                <mx:TextInput id="fullName" />
            </mx:FormItem>
            <mx:FormItem label="Email:">
                <mx:TextInput id="email" />
            </mx:FormItem>
            <mx:FormItem label="Comments:">
                <mx:TextArea id="comments" />
            </mx:FormItem>
            <mx:FormItem>
                <mx:Button id="submit"
                    label="Submit" />
            </mx:FormItem>
         </mx:Form>
    </mx:Canvas>
    CustomTitle.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="200" height="80"
    showCloseButton="true" close="closeMe(event)"
    backgroundAlpha="1"
    color="#173553" backgroundColor="#EEEEEE"
    headerColors="#FFFFFF, #CBCCCC"
    borderColor="#666666" borderStyle="solid">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    public var callBack: Function = new Function();
    private function closeMe(event: Event): void {
    PopUpManager.removePopUp(this);
    callBack();
    ]]>
    </mx:Script>
    <mx:HBox width="100%" height="100%" horizontalAlign="center" verticalAlign="bottom">
    <mx:Button id="btnOK" label="OK" click="closeMe(event)" />
    </mx:HBox>
    </mx:TitleWindow>
    TitleWindowSample.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns="*"
    layout="absolute"
    width="100%" height="100%"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    private function init(): void {
    customForm.submit.addEventListener(MouseEvent.CLICK, onMouseClick);
    private function onMouseClick(event: MouseEvent): void {
    customForm.lblStatus.text = "";
    var customTitle: CustomTitle = new CustomTitle();
    customTitle.callBack = customForm.callBack;
    PopUpManager.addPopUp(customTitle, this);
    PopUpManager.centerPopUp(customTitle);
    ]]>
    </mx:Script>
    <mx:VBox
    width="100%" height="100%"
    verticalAlign="middle" horizontalAlign="center">
    <CustomForm id="customForm" width="500" height="300">
    </CustomForm>
    </mx:VBox>
    </mx:Application>

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • How can I uninstall a previously installed version of Aperature from another owner?

    Hi,
    I purcased my iMac from a previous owner.  His version of Aperature is still on it - registered under his AppleID.  I would like to uninstall it as it is preventing me from using my own version of iPhoto.  How can I do this?  Would it be asvisable to uninstall it and then purchase a new version of Aperature and then convert my iPhoto library to Aperature?  Right now, iPhoto wont launch becuase it wants me to upgrade Aperature, but I don't own a registered copy to my Apple ID, so I can't upgrade it.
    My setup is:
    iMac 27" 12,2
    3.4 GHz Intel Core i7
    32GB 1333 MHz DDR3
    Graphics AMD Radeon HD 6970M 2048MB
    OS X 10.9.2 (13C64)
    Aperature 3.2.4
    iPhoto 9.5.1
    Thank you!

    The previous owner of that machine should have wiped it and install the original OS that shipped with the system leaving the system at the point where the new owner takes over and enters all there own information.
    Before you go much further with this machine you should seriously consider backing up any new stuff you have done and wiping it and starting from scratch. If you keep the system like it is you  will be plagued with problems. Even doing OS updates will prove frustrating.
    Right now the best you can do is to move the Aperture that is on the system into the trash, log into the App Store using your ID and buying Aperture. That should work but to be honest I have never had to do it so can;t say for sure.
    You might want to look at this What to do before selling or giving away your Mac from Apple to read what they recommend.
    good luck
    regards

  • How can I invoke a JSP using a URL instance from another JSP?

              Hi all.
              I've been developed a J2EE application using Oracle 9iAS.
              Now I'm migrating to WL Server and I have the following problem.
              I was using the following code to read a URL contents from another JSP:
              URL url = config.getServletContext().getResource("/path/to/url/of/textfile.xsl");
              This was working fine in a expanded directory project structure (typical during
              development time) and Oracle 9iAS.
              When I execute this code from my WL packed .ear file I get a URL not found exception.
              Which is the right way to get a resource available from the same context root?
              Thanks in advance for your answers (and sorry for my bad english ;-))
              

    The previous owner of that machine should have wiped it and install the original OS that shipped with the system leaving the system at the point where the new owner takes over and enters all there own information.
    Before you go much further with this machine you should seriously consider backing up any new stuff you have done and wiping it and starting from scratch. If you keep the system like it is you  will be plagued with problems. Even doing OS updates will prove frustrating.
    Right now the best you can do is to move the Aperture that is on the system into the trash, log into the App Store using your ID and buying Aperture. That should work but to be honest I have never had to do it so can;t say for sure.
    You might want to look at this What to do before selling or giving away your Mac from Apple to read what they recommend.
    good luck
    regards

  • How can I disassociate my songs in the iTunes store from another musician with the same name?

    My songs in the iTunes store are showing up with the artist John Powers. That is my name. There seems to be another musician called John Powers, and our songs seem to be grouped together. I feel bad for the guy, as he seems quite clean-cut and my songs are all a bit... edgy. Is there any way to clarify that there is another artist also called John Powers, or will my songs forever be linked to his through our common name?
    Here's a link to the artist page.
    My songs are "Empire State of Meh," "Venereal Disease," and "Get Some Blow."
    https://itunes.apple.com/us/artist/john-powers/id19118058
    Thanks,
    John Powers

    alamoangels wrote:
    Can someone please help me figure out how to make our recordings available to the world via iTunes??
    go here: _*iTunes Content Providers*_.
    JGG

  • How can other people invite me to their events not from another AppleID and that event will appear in my default calendar?

    What e-mail they have to invite me by which can grab their events and put into my calendar ?

    this:
    Did not exist at the point of delivery to the consumer.
    Nor did the white corrosive agent present exist at the point of sale.
    " exposure   of copper   alloys   to   moisture   or   salt   spray   will   cause   the formation  of  blue  or  green  salts  called  verdigris.  The presence   of   verdigris   indicates   active   corrosion."
    I see also 2 contact points with DEEP corrosion pitting not indicative of any defect from the factory.

  • How can i open a particular ibook in ibook app from another app

    I am preparing some presentation, so  i want to open an particular ibook in ibook app via another app on click event . Click event is such as <a href="path" ></a>.But i am not getting that particular ibook path. I can open ibook app using url Scheme i. e. "ibooks://", but how to pass parameter for paricular ibook.
    Thanks in advance.

    You might be better served posting this in the developers forum. https://discussions.apple.com/community/developer_forums

  • How can I unlock my iPhone when the phone come from another country?

    My iPhone is from South Korea, not as a call to the number that I got from twitter (@ olleh_expats) and in my country I want to help even though they said that if they had done in a statement through e-mail.
    Attached copy of the press.

    Wrong forum. This forum is for questions about the Apple Support Communities forums themselves.

  • On iTunes 11, how can I access home sharing if the music is from a CD? Is there any way I can download these songs if (A) I no longer have the CD, or (B) I do not want to pay $25 a year for iTunes Match?

    On iTunes 11, how can I access home sharing if the music is from a CD on a different computer using Home Sharing? Is there any way I can download these songs if (A) I no longer have the CD, or (B) I do not want to pay $25 a year for iTunes Match?

    Yes, you can copy songs that you ripped from a CD to your Home Sharing computer.
    Turn on Home Sharing first on both computers.  To do that, go to File > Home Sharing > Turn on Home Sharing.  Enter your Apple ID and password.
    Now go to your computer that you want to copy the songs to and connect to your Home Share.  You can do that by clicking on the popover button located at the left top corner right below the play control buttons.  Click on it and scroll to the bottom until you see your Home Share and select it.
    Go to Music in your Home Share.  Select the songs that you want to copy in your Home Share and click Import at the bottom right corner.

  • I upgraded my computer to 64bit.  How can I transfer my Premiere Elements 8.0 (32bit) to new computer?

    In October 2014, I purchased Adobe Premier Elements 8.0 (and the APE Templates 8.0) for my work computer (32bit Windows 7).  Now they gave me a new computer which is 64bit (Windows 7).  How can I get my Premier Elements program back on my new computer without having to purchase it all over again?  I only had the program for a couple of months before they upgraded my computer  to a 64bit  I submitted my question through "Adobe Chat" and they said they couldn't help and I would need to check the forums.  Thanks to anyone who can help!   Jay
    [Moved from Premiere PRO forum to Premiere Elements... Mod]

    jaym
    What did you have for installation...
    a. installation files from a purchased download from Adobe
    or
    b. installation disc from boxed packaging of the product?
    If you have an installation disc, then insert the disc into the burner tray and follow the instructions for the installation
    that present sequentially. Remember that Premiere Elements 8 on Windows 7 64 bit is still going to be a 32 bit application.
    It will be running in the 32 bit compatibility mode of the 64 bit computer and the 32 bit limitations would apply. But Premiere Elements
    8 will install on Windows 7, 8, or 8.1 64 bit but not as a 64 bit application.
    Now if you purchased an download, those downloads are typically specific to the operating system to which it was downloaded.
    Whether or not installation files downloaded to a 32 bit computer will work on 64 bit computer is questionable. Best advice is to
    try it. You will get an immediate message from the computer and program if it is a no go.
    Please review and let us know the outcome.
    Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR
    Add On...Premiere Elements Windows is a 64 bit application only when it is version 10, 11, 12, or 13 run specifically on
    Windows 7, 8, or 8.1 64 bit computer.

  • How can I avoid crashes of elements 9

    How can I resolve crashes of Elements 9? All software updates are current.

    Thanks you
    See, whenever it crashes, you must be getting a crash report, right after the crash. Can you please copy paste the detailed contents of the crash somewhere here? A look into the crash logs will tell us where the crash is happening.
    Also, you didn't tell whether the crash is happening for Editor module or Organizer module?
    Has it always been like this.. crashing?? A third party s/w is often responsible for such crashes, so any updates there?
    Thanks
    Andaleeb

  • New computer, how can I get my photoshop elements onto it?

    New computer, how can I get my photoshop elements onto it?

    I have no idea where the original installation media is, cloning the entire system right now is very unwise as there were many problems which I do not want to affect my new system.  Is there any other way to do it.  I see that the key is registered in my stuff box.

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • How can I move my Premiere elements 8 from my old pc to my new imac?

    How can I move my Premiere elements 8 from my old pc to my new imac?

    tenfootprints
    Does your imac come with a Windows Mac interface?
    If not, you cannot. There is no Premiere Elements 8 Mac version. And, you cannot install Premiere Elements 8 Windows on
    a Mac computer. As I recall, Premiere Elements 9.0/9.0.1 was the first Premiere Elements version to be offered in Windows and Mac versions.
    Please explain with more details.
    Thanks.
    ATR

Maybe you are looking for