On Mon, Feb 27, 2017 at 5:10 AM, xhatti via CodenameOne Discussions <
[email protected]> wrote:

> Hey everyone!
>
> I just added a SignatureComponent into out app and realized, that it is
> another component i have to copy paste cause its way to inflexible.
>

This was intentional so that the internal workings of the component did not
bleed out.  When the component was created it was just a black box that
allowed users to add a signature.  The "how" was considered internal
workings.  I didn't want to open the flood gates to modifying the "how" too
much in case it needed to be changed later.  Better to add support for
specific use cases in a consistent manner as they came up.


> As example: The inner SignatureDialogBody class cant be accessed. All
> labels and other texts are hardcoded in english without any way to modify
> or translate them.
>

Please file an RFE.  By default all of the labels and buttons are set to be
localized anyways so you can translate these by simply adding the
appropriate translations to your resource file with the English version as
the key.  I can see how it would be good to add static keys for these
translations though in case the english text is changed.


> The dialog itself have methods for the done, reset and cancel button but
> cant be accessed. Instead of beeing able to override those methods or add a
> specific actionlistener for those actions,
>
Please file an RFE.  I'm not sure I want to expose these buttons directly.
There is already an action event fired when the user presses done.
Possibly other action listeners if it seems helpful.


> the SignatureComponent only have one eventdispatcher if something has
> changed which is pretty useless cause you cant remove the signature or
> leave it empty.
>
I'm not sure I understand why you can't remove the signature or leave it
empty?  You can call setSignatureImage(img) with some default image to
clear it out.


Best regards

Steve

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWqXhRD_DSgLwXaiA%3Dq7Gx%2BuYXSu00V%2BY7tvANjDf4yZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to