accessing swing component values in awakeFromInsertion
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