|Adding feature of control-lock [message #143025]
||Mon, 12 November 2007 07:31
Originally posted by: musashi.k.xxx.xxxxx|
I'm new Developer of VE.
# I'm not good at English.
# Please allow, even if I am writing the strange text.
I'm trying to add feature of control-lock on VE.
And I have two questions.
1.Adding feature of control-lock is impossible?
2.Why decode logic may not perform or perform?
(my approach is wrong?)
The following is how to have tried me.
eclipse ver : 3.1.1
VE ver : 22.214.171.124
j2re ver : 1.4.2_09
1.Extend java.awt.Button to add lock property and override setBounds()
# make ButtonEx.class extends java.awt.Button
# in setBounds(), if control was locked, don't set new Bounds
-> Graphical Part's control does't move.
Palette's bounds value doesn't changed.
Source Part's control was move.(boundsMethod's argument was changed...)
2.Custom code generation for bounds property
# The decoder/decoderHelper was made referring to the turotial.
Decoder class extends ComponentDecoder.
DecoderHelper class extends SimpleAttributeDecoderHelper.
In generateMethod of decoderHelper, get old Bounds Value of control by
And decode setBounds arguments from old bounds value.
-> It may not succeed or succeed...
(source Part's, boundsMethod's argument was changed/unchanged...)
so, I looked .log file, but no error's.
# A SAX parse error comes out rarely...(bounds property is already
And I tried debug on eclipse plugin Project, but generateMethod(in
helper) may not perform or perform...
Powered by FUDForum
. Page generated in 0.02058 seconds