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

Method repaint

CodenameOne/src/com/codename1/ui/Dialog.java:2067–2076  ·  view source on GitHub ↗
(Component cmp)

Source from the content-addressed store, hash-verified

2065
2066 /// {@inheritDoc}
2067 @Override
2068 void repaint(Component cmp) {
2069 if (getParent() != null) {
2070 super.repaint(cmp);
2071 return;
2072 }
2073 if (isVisible() && !disposed && (isMenu() || CN.getCurrentForm() == this)) { //NOPMD CompareObjectsWithEquals
2074 Display.getInstance().repaint(cmp);
2075 }
2076 }
2077
2078 /// Allows a dialog component to grow or shrink to its new preferred size
2079 public void growOrShrink() {

Callers

nothing calls this directly

Calls 6

isMenuMethod · 0.95
getCurrentFormMethod · 0.95
getInstanceMethod · 0.95
getParentMethod · 0.65
repaintMethod · 0.65
isVisibleMethod · 0.65

Tested by

no test coverage detected