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

Method setTabTextPosition

CodenameOne/src/com/codename1/ui/Tabs.java:467–475  ·  view source on GitHub ↗
(int textPosition)

Source from the content-addressed store, hash-verified

465 ///
466 /// - #TOP
467 public void setTabTextPosition(int textPosition) {
468 if (textPosition != LEFT && textPosition != RIGHT && textPosition != BOTTOM && textPosition != TOP) {
469 throw new IllegalArgumentException("Text position can't be set to " + textPosition);
470 }
471 this.textPosition = textPosition;
472 for (int iter = 0; iter < getTabCount(); iter++) {
473 setTextPosition(tabsContainer.getComponentAt(iter), textPosition);
474 }
475 }
476
477 /// Adds a `component`
478 /// represented by a `title` and/or `icon`,

Callers 2

createComponentMethod · 0.45
createInstanceMethod · 0.45

Calls 3

getTabCountMethod · 0.95
setTextPositionMethod · 0.95
getComponentAtMethod · 0.45

Tested by

no test coverage detected