Avg. Rating 4.7

Problem

There is no easy way to add a simple border around text and wrapping the text around a container is too much code to do so little. There needs to be an easy way to just border text!

Solution

BorderedText is a simple component that inherits from the Text component that allows for bordering. In addition to bordering, the BorderedText component allows for most of the styling implemented by the HaloBorder class including background coloring / alpha / image and corner radius and drop shadows ( drop shadow not fully tested ). Lastly, for really custom styling, you can now simply apply your own border skin to the BorderedText component and viola, custom look and feel of your text field will little to no effort.

Detailed explanation

BorderedText is a simple component that inherits from the Text component that allows for bordering. In addition to bordering, the BorderedText component allows for most of the styling implemented by the HaloBorder class including background coloring / alpha / image and corner radius and drop shadows ( drop shadow not fully tested ). 
 
Lastly, for really custom styling, you can now simply apply your own border skin to the BorderedText component and viola, custom look and feel of your text field will little to no effort.
BorderedText.zip
[BorderText Class]

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes