MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / setText

Method setText

CodenameOne/src/com/codename1/ui/Label.java:640–648  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

638 ///
639 /// - `text`: the string that the label presents.
640 @Override
641 public void setText(String text) {
642 widthAtLastCheck = -1;
643 this.text = text;
644 localize();
645 stringWidthUnselected = -1;
646 setShouldCalcPreferredSize(true);
647 repaint();
648 }
649
650 @Override
651 void checkAnimation() {

Callers 15

ShareFormMethod · 0.95
setBoundPropertyValueMethod · 0.95
setHintMethod · 0.95
trimLongStringMethod · 0.95
handleImageMethod · 0.95
addStringMethod · 0.95
handleImageMethod · 0.95
setComponentValueMethod · 0.95
addComponentsMethod · 0.95
rebuildStepperMethod · 0.95
runTestMethod · 0.95

Calls 3

localizeMethod · 0.95
repaintMethod · 0.65

Tested by 15

runTestMethod · 0.76
runTestMethod · 0.76
TestFormMethod · 0.76
startMethod · 0.76
startMethod · 0.76
TestFormMethod · 0.76
TestFormMethod · 0.76
testSimpleDateFormatMethod · 0.76