diff options
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java | 4 | ||||
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java index 72589937d..474cc0a6a 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Button.java @@ -327,14 +327,14 @@ public class Button extends BaseButton { } return this; } - public final Button setLabel(final String labelText) { + public final Button setText(final CharSequence labelText) { if( !label.getText().equals(labelText) ) { label.setText(labelText); markShapeDirty(); } return this; } - public final Button setLabel(final Font labelFont, final String labelText) { + public final Button setText(final Font labelFont, final CharSequence labelText) { if( !label.getText().equals(labelText) || !label.getFont().equals(labelFont) ) { label.setFont(labelFont); label.setText(labelText); diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java index 3192488c2..a01b892ad 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Label.java @@ -91,7 +91,7 @@ public class Label extends GraphShape { * @param text the text to be set. * @return true if text has been updated, false if unchanged. */ - public boolean setText(final String text) { + public boolean setText(final CharSequence text) { if( !this.text.equals(text) ) { this.text = text; markShapeDirty(); @@ -107,7 +107,7 @@ public class Label extends GraphShape { * @param text the text to be set. * @return true if text has been updated, false if unchanged. */ - public boolean setText(final GL2ES2 gl, final String text) { + public boolean setText(final GL2ES2 gl, final CharSequence text) { if( setText(text) ) { validate(gl); return true; @@ -122,7 +122,7 @@ public class Label extends GraphShape { * @param text the text to be set. * @return true if text has been updated, false if unchanged. */ - public boolean setText(final GLProfile glp, final String text) { + public boolean setText(final GLProfile glp, final CharSequence text) { if( setText(text) ) { validate(glp); return true; |