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

Method setUIID

CodenameOne/src/com/codename1/ui/Button.java:1003–1015  ·  view source on GitHub ↗
(String id)

Source from the content-addressed store, hash-verified

1001 /// Overriden to workaround issue with caps text and different UIID's
1002 /// {@inheritDoc}
1003 @Override
1004 public void setUIID(String id) {
1005 super.setUIID(id);
1006 String t = (String) getClientProperty("cn1$origText");
1007 if (t != null) {
1008 if (isCapsText()) {
1009 super.setText(UIManager.getInstance().localize(t, t).toUpperCase());
1010 } else {
1011 super.setText(UIManager.getInstance().localize(t, t));
1012 putClientProperty("cn1$origText", null);
1013 }
1014 }
1015 }
1016
1017
1018 /// {@inheritDoc}

Callers 15

createPopupContentMethod · 0.95
configureCommandsMethod · 0.95
initUIMethod · 0.95
MapComponentMethod · 0.95
showMethod · 0.95
getPendingAdMethod · 0.95
placeButtonCommandsMethod · 0.95
createSymbolTableMethod · 0.95
createSoftButtonMethod · 0.95
updateGridCommandsMethod · 0.95

Calls 7

isCapsTextMethod · 0.95
getInstanceMethod · 0.95
setTextMethod · 0.65
toUpperCaseMethod · 0.65
getClientPropertyMethod · 0.45
localizeMethod · 0.45
putClientPropertyMethod · 0.45

Tested by 15

startMethod · 0.76
buildRatingSheetMethod · 0.76
populateMethod · 0.76
populateMethod · 0.76
populateMethod · 0.76
startMethod · 0.76
showAnotherFormMethod · 0.76
createOpenButtonMethod · 0.76
testSelectByUIIDMethod · 0.76
testSelectNestedMethod · 0.76
testSetUIIDMethod · 0.76