| Modifiers | Name | Description |
|---|---|---|
enum |
TextLabel.Align |
| Type | Name and description |
|---|---|
boolean |
active |
TextLabel.Align |
align |
java.util.List<LabelDecorator> |
decorators |
java.lang.Integer |
max |
java.lang.Object |
value |
int |
width |
| Constructor and description |
|---|
TextLabel
(java.lang.Object value)Create a label with the provided value |
| Type Params | Return Type | Name and description |
|---|---|---|
|
TextLabel |
add(LabelDecorator deco) |
|
java.lang.String |
applyMax(java.lang.String str) |
|
TextLabel |
left() |
|
TextLabel |
leftShift(LabelDecorator deco) |
|
TextLabel |
max(int value) |
|
TextLabel |
number() |
|
static TextLabel |
of(java.lang.Object value)Create a new TextLabel object with the specified value |
|
TextLabel |
right() |
|
TextLabel |
switchOff()Switch OFF the decorators rendering |
|
TextLabel |
switchOn()Turn ON the decorators rendering |
|
java.lang.String |
toString()@return Renders the string applying the provided decorators |
|
TextLabel |
width(int num) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a new TextLabel object with the specified value
Switch OFF the decorators rendering
Turn ON the decorators rendering
Groovy Documentation