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

Method setHint

CodenameOne/src/com/codename1/ui/Component.java:8520–8530  ·  view source on GitHub ↗
(String hint, Image icon)

Source from the content-addressed store, hash-verified

8518 ///
8519 /// - `icon`: the hint icon to display
8520 void setHint(String hint, Image icon) {
8521 Label hintLabel = getHintLabelImpl();
8522 if (hintLabel == null) {
8523 hintLabel = new Label(hint);
8524 hintLabel.setUIID("TextHint");
8525 setHintLabelImpl(hintLabel);
8526 } else {
8527 hintLabel.setText(hint);
8528 }
8529 hintLabel.setIcon(icon);
8530 }
8531
8532 /// This property is useful for blocking in z-order touch events, sometimes we might want to grab touch events in
8533 /// a specific component without making it focusable.

Callers

nothing calls this directly

Calls 5

getHintLabelImplMethod · 0.95
setUIIDMethod · 0.95
setHintLabelImplMethod · 0.95
setTextMethod · 0.95
setIconMethod · 0.95

Tested by

no test coverage detected