Properties sheet [message #609140] |
Wed, 20 July 2005 21:01 |
Eclipse User |
|
|
|
Originally posted by: lgodl.2die4.com
Hi, I have two questions concerning the addition of a component to VE.
First, I would like to know if there is a way to group properties of an
Object in a category other than creating a class containing those
properties. Lets say I have a class that extends JButton to which I added
two properties, I would like to have those properties grouped (showing
under a category with the + sign in the properties view).
Also, if I throw an illegal argument exception in a setter of a component,
there is an exclamation mark showing over the component in the graphical
editor. Is there a way to do the same thing with setters for a class
which is used for a property? Let me explain what I mean. If I extends a
JButton with two properties, foo which is an int and bar which is a point
(a class I created with 2 variables, x and y). If a throw an illegal
argument exception in setFoo(int aFoo) when the argument equals 2, I will
have a exclamation mark showing in the graphical editor when I set that
property to 2. If I throw an illegal argument exception in setX from the
bar class, nothing is showed when I set x to 2 in the property editor. Is
there a way to have the same comportment in the second case?
Thanks
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03451 seconds