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

Method paint

CodenameOne/src/com/codename1/ui/TextField.java:1692–1711  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

1690
1691 /// {@inheritDoc}
1692 @Override
1693 public void paint(Graphics g) {
1694
1695 //the native input will show the string.
1696 if (useNativeTextInput && Display.getInstance().isNativeEditorVisible(this)) {
1697 if (!Display.impl.nativeEditorPaintsHint()) {
1698 paintHint(g);
1699 }
1700 return;
1701 }
1702
1703 UIManager manager = getUIManager();
1704 manager.getLookAndFeel().drawTextField(g, this);
1705
1706 if (drawCursor && hasFocus() && isEditable()) {
1707 manager.getLookAndFeel().drawTextFieldCursor(g, this);
1708 }
1709
1710 paintHint(g);
1711 }
1712
1713 /// {@inheritDoc}
1714 @Override

Callers

nothing calls this directly

Calls 10

getInstanceMethod · 0.95
getLookAndFeelMethod · 0.95
hasFocusMethod · 0.80
isEditableMethod · 0.65
isNativeEditorVisibleMethod · 0.45
paintHintMethod · 0.45
getUIManagerMethod · 0.45
drawTextFieldMethod · 0.45
drawTextFieldCursorMethod · 0.45

Tested by

no test coverage detected