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

Method initAdPadding

CodenameOne/src/com/codename1/ui/Form.java:599–612  ·  view source on GitHub ↗
(Display d)

Source from the content-addressed store, hash-verified

597 }
598
599 void initAdPadding(Display d) {
600 // this is injected automatically by the implementation in case of ads
601 String adPaddingBottom = d.getProperty("adPaddingBottom", null);
602 if (adPaddingBottom != null && adPaddingBottom.length() > 0) {
603 Container pad = new Container();
604 int dim = Integer.parseInt(adPaddingBottom);
605 dim = d.convertToPixels(dim, true);
606 if (Display.getInstance().isTablet()) {
607 dim *= 2;
608 }
609 pad.setPreferredSize(new Dimension(dim, dim));
610 addComponentToForm(BorderLayout.SOUTH, pad);
611 }
612 }
613
614 /// This method returns the value of the theme constant `paintsTitleBarBool` and it is
615 /// invoked internally in the code. You can override this method to toggle the appearance of the status

Callers 1

FormMethod · 0.95

Calls 8

lengthMethod · 0.95
parseIntMethod · 0.95
getInstanceMethod · 0.95
addComponentToFormMethod · 0.95
getPropertyMethod · 0.65
convertToPixelsMethod · 0.65
isTabletMethod · 0.45
setPreferredSizeMethod · 0.45

Tested by

no test coverage detected