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

Method createTab

CodenameOne/src/com/codename1/ui/Tabs.java:673–682  ·  view source on GitHub ↗
(String title, Font font, char icon, float size)

Source from the content-addressed store, hash-verified

671 ///
672 /// component instance
673 protected Component createTab(String title, Font font, char icon, float size) {
674 RadioButton b = new RadioButton(title != null ? title : "");
675 if (tabUIID != null) {
676 b.setUIID(tabUIID);
677 }
678 applyTabIconUIID(b);
679 b.setFontIcon(font, icon, size);
680 createTabImpl(b);
681 return b;
682 }
683
684 /// Detaches the tab's icon style from the Button's selection-state styles.
685 /// FontImage.setIcon copies the Button's unselected/selected/pressed styles

Callers 1

insertTabMethod · 0.95

Calls 4

applyTabIconUIIDMethod · 0.95
createTabImplMethod · 0.95
setFontIconMethod · 0.65
setUIIDMethod · 0.45

Tested by

no test coverage detected