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

Method setText

CodenameOne/src/com/codename1/ui/Button.java:1137–1147  ·  view source on GitHub ↗
(String t)

Source from the content-addressed store, hash-verified

1135 /// Overriden to implement the caps mode `#setCapsText(boolean)`
1136 /// {@inheritDoc}
1137 @Override
1138 public void setText(String t) {
1139 if (isCapsText()) {
1140 putClientProperty("cn1$origText", t);
1141 if (t != null) {
1142 super.setText(getUIManager().localize(t, t).toUpperCase());
1143 return;
1144 }
1145 }
1146 super.setText(t);
1147 }
1148}

Callers 14

initUIMethod · 0.95
setTabTitleMethod · 0.95
setCommandMethod · 0.95
applyStylesMethod · 0.95
createRowMethod · 0.95
applyStylesMethod · 0.95
rebuildAssetLibraryMethod · 0.95
showMethod · 0.95
showDialogMethod · 0.95

Calls 6

isCapsTextMethod · 0.95
setTextMethod · 0.65
toUpperCaseMethod · 0.65
putClientPropertyMethod · 0.45
localizeMethod · 0.45
getUIManagerMethod · 0.45

Tested by 1