Skip to main content

Label text wrapping

4 replies [Last post]
asumma66061
Offline
Joined: 2007-04-12

Would be nice if there was a way to signal to a label to use as many lines as needed to show itself. Simple case of multi-line label can be redone as a non-editable textArea sure. But when you want to show all the text of a check box, radio button, or other label descendent it seems like this would really be handy.

Any other suggestions on forcing all my text to show if we need a longer label for one of these controls? A container w/ a textless checkbox paired with a non-editable textarea whose rows is > 1 sounds a little heavy handed for what seems to be a pretty common need.

Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

> There are certainly times - especially on small screens - where you
> may have several items that are longer than one screen. Tickering
> everything at once is a nightmare.

The performance penalty of multi-line labels is MUCH higher than you
would expect.... MUCH is upper cased for a reason!
The calculations required for line breaking are slow but the
font.width methods are REALLY slow on devices and you can't implement
something like that without them.

Then we get into the complexity of integrating something like that
with images and alignment, you will be shocked at the amount of code
we implemented for the "simple" one line label and all the different
alignment cases. I assume you need an image otherwise you would have
just used a text box, right ;-)

A multi-line label is definitely a component we would like to have
and its relatively simple to build (using a container with text area
and label for the icon) when there is no text-image wrapping.
Building a true "rich" widget with varying fonts and embedded images
would be REALLY cool but again expensive and time consuming.

Feel free to contribute...

Thanks.

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

chen

Why won't use the ticker functionality?

Chen

lwuit-users@mobileandembedded.org wrote:
> Would be nice if there was a way to signal to a label to use as many lines as needed to show itself. Simple case of multi-line label can be redone as a non-editable textArea sure. But when you want to show all the text of a check box, radio button, or other label descendent it seems like this would really be handy.
>
> Any other suggestions on forcing all my text to show if we need a longer label for one of these controls? A container w/ a textless checkbox paired with a non-editable textarea whose rows is > 1 sounds a little heavy handed for what seems to be a pretty common need.
>
> Thanks!
> [Message sent by forum member 'asumma66061' (asumma66061)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289083
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

asumma66061
Offline
Joined: 2007-04-12

I didn't look at tickering much - I'm not a big fan of that visually.

Not sure when it tickers - seems like 2 cases: only w/ focus or always.

I think it is annoying to have to put focus on each item you want to read on a screen. What about touch screens that typically don't have a focus notion - would users think to tap a label so they can read it?

There are certainly times - especially on small screens - where you may have several items that are longer than one screen. Tickering everything at once is a nightmare.

Aaron

chen

Hi,

lwuit-users@mobileandembedded.org wrote:
> I didn't look at tickering much - I'm not a big fan of that visually.
>
>
tickering is widely use especially in cell phone where you don't have
enough real estate to show long text.

> Not sure when it tickers - seems like 2 cases: only w/ focus or always.
>
>
That's configurable in LWUIT
> I think it is annoying to have to put focus on each item you want to read on a screen. What about touch screens that typically don't have a focus notion - would users think to tap a label so they can read it?
>
>
Usually touch screens has bigger screens, so you can show more text(even
in 1 row).
> There are certainly times - especially on small screens - where you may have several items that are longer than one screen. Tickering everything at once is a nightmare.
>
I agree, the UE should be designed carefully for small screens,
Anyway, I don't want to make a philosophy argument around tickers vs.
multiple lines, each has it's own use case.

Regards,
Chen

> Aaron
> [Message sent by forum member 'asumma66061' (asumma66061)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289099
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net