• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
accessing swing component values in awakeFromInsertion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

accessing swing component values in awakeFromInsertion


  • Subject: accessing swing component values in awakeFromInsertion
  • From: email@hidden
  • Date: Thu, 14 Apr 2005 16:10:56 -0400

How do I access a certain dropdown value from within an awakeFromInsertion
method ( or any method in a client-side entity class) in a D2J client app?

I am able to find the controller, but casting it to a JComboBox fails. Any
ideas on this?

EOController eoc = (
EOControllerFactory.sharedControllerFactory()).formControllerWithEntity("entityname");
            EOWidgetController controller
= (EOWidgetController)(eoc.controllerWithKeyValuePair(EOController.SubcontrollersEnumeration,
 null, "label","Label Name"));
            if (controller == null)
            {
              EODialogs.runInformationDialog("test", "not found controller
");}                     else
             {
                  EODialogs.runInformationDialog("test", " found controller
");
                   EODialogs.runInformationDialog("test", (String)
(((JComboBox)controller.widget()).getItemAt(2)));
             }


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: accessing swing component values in awakeFromInsertion
      • From: Christian Pekeler <email@hidden>
  • Prev by Date: Re: NoClassDefFoundError com/webobjects/_eoproject/_WBInterfaceDescriptor
  • Next by Date: Re: NoClassDefFoundError com/webobjects/_eoproject/_WBInterfaceDescriptor
  • Previous by thread: Re: NoClassDefFoundError com/webobjects/_eoproject/_WBInterfaceDescriptor
  • Next by thread: Re: accessing swing component values in awakeFromInsertion
  • Index(es):
    • Date
    • Thread