For Label:
http://incubator.apache.org/pivot/1.3/docs/api/org/apache/pivot/wtk/skin/LabelSkin.html#setHorizontalAlignment(org.apache.pivot.wtk.HorizontalAlignment)
http://incubator.apache.org/pivot/1.3/docs/api/org/apache/pivot/wtk/skin/LabelSkin.html#setVerticalAlignment(org.apache.pivot.wtk.VerticalAlignment)

For TextInput and TextArea, this is a TODO.

-T

On Thu, Oct 8, 2009 at 5:31 AM, Sandro Martini <[email protected]>wrote:

> Hi,
> probably this is already implemented, at least partially but I'd like
> to share the following idea, needed by i18n applications where from
> the graphic design I have to specify the space available for example
> to a label, and usually in my main language all is Ok, but with text
> in another language not.
>
> This is for Labels, but more in general to any element displaying
> text: text inputs, list elements, table cell elements (alignment
> usually by column), etc ...
>
> An optional alignment attribute (this should be already implemented)
> with usual values: none (default), left, right, center.
> But to better solve the previous problem, why not also a "justified"
> alignment, like in Word processors ?
> This is done adding space between chars when the resulting text is
> smaller than the available space.
>
>
> And the opposite: another optional attribute that when enable could
> truncate the text is its length is higher than the available space.
> And in this case we could use some chars like "..." at the truncation.
> And these chars could be overridden if wanted.
>
>
> A new, dedicated multi-language tutorial/demo could show this, but in
> this case I'd use a Language selector directly in the main application
> GUI, so users could see what happens in a dynamic way ...
>
>
> What do you think ?
>
> Thanks,
> Sandro
>

Reply via email to