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

Method getPropertyValue

CodenameOne/src/com/codename1/ui/Tabs.java:1773–1797  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

1771
1772 /// {@inheritDoc}
1773 @Override
1774 public Object getPropertyValue(String name) {
1775 if ("titles".equals(name)) {
1776 String[] t = new String[getTabCount()];
1777 for (int iter = 0; iter < t.length; iter++) {
1778 t[iter] = getTabTitle(iter);
1779 }
1780 return t;
1781 }
1782 if ("icons".equals(name)) {
1783 Image[] t = new Image[getTabCount()];
1784 for (int iter = 0; iter < t.length; iter++) {
1785 t[iter] = getTabIcon(iter);
1786 }
1787 return t;
1788 }
1789 if ("selectedIcons".equals(name)) {
1790 Image[] t = new Image[getTabCount()];
1791 for (int iter = 0; iter < t.length; iter++) {
1792 t[iter] = getTabSelectedIcon(iter);
1793 }
1794 return t;
1795 }
1796 return null;
1797 }
1798
1799 /// {@inheritDoc}
1800 @Override

Callers

nothing calls this directly

Calls 5

getTabCountMethod · 0.95
getTabTitleMethod · 0.95
getTabIconMethod · 0.95
getTabSelectedIconMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected