Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Does the ve support custom data type?
Does the ve support custom data type? [message #128008] Sat, 08 July 2006 10:18 Go to next message
Eclipse UserFriend
Originally posted by: xubin.wei.ellingtonpcb.com

Hi Rich:
Does the ve support custom data type?

background:
when i add a control to ve, but the control has a custom data type(not
primitive types).
eg:

MyControl contrl = new MyControl();
MyDataType mdt = MyDataType();
mdt.setName("ABC");
contrl.setMyDataType(mdt);
How to do the ve can generate the code like that?
Is there has any example?

Thanks a lot!

gdufo
Re: Does the ve support custom data type? [message #128187 is a reply to message #128008] Mon, 10 July 2006 10:31 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The property sheet should allow you to do that. There should be
myDataType property on your MyControl. The propertysheet should have a
"..." button on it for the myDataType property. This will allow you to
create a MyDataType instance. Once that is done, the property sheet
should allow you to now set the name property.

gdufo wrote:
> Hi Rich:
> Does the ve support custom data type?
>
> background:
> when i add a control to ve, but the control has a custom data type(not
> primitive types).
> eg:
>
> MyControl contrl = new MyControl();
> MyDataType mdt = MyDataType();
> mdt.setName("ABC");
> contrl.setMyDataType(mdt);
> How to do the ve can generate the code like that?
> Is there has any example?
>
> Thanks a lot!
>
> gdufo
>
>
>

--
Thanks,
Rich Kulp
Re: Does the ve support custom data type? [message #613496 is a reply to message #128008] Mon, 10 July 2006 10:31 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

The property sheet should allow you to do that. There should be
myDataType property on your MyControl. The propertysheet should have a
"..." button on it for the myDataType property. This will allow you to
create a MyDataType instance. Once that is done, the property sheet
should allow you to now set the name property.

gdufo wrote:
> Hi Rich:
> Does the ve support custom data type?
>
> background:
> when i add a control to ve, but the control has a custom data type(not
> primitive types).
> eg:
>
> MyControl contrl = new MyControl();
> MyDataType mdt = MyDataType();
> mdt.setName("ABC");
> contrl.setMyDataType(mdt);
> How to do the ve can generate the code like that?
> Is there has any example?
>
> Thanks a lot!
>
> gdufo
>
>
>

--
Thanks,
Rich Kulp
Previous Topic:Best way to incorporate an existing visual class in another window
Next Topic:VE & setSize on JPanel class
Goto Forum:
  


Current Time: Tue Jun 17 20:07:11 EDT 2025

Powered by FUDForum. Page generated in 0.09072 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top