MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / getFontSizes

Method getFontSizes

src/org/albite/albite/AlbiteMIDlet.java:2069–2087  ·  view source on GitHub ↗

Returns an initiliazed instance of fontSizes component. @return the initialized component instance

()

Source from the content-addressed store, hash-verified

2067 * @return the initialized component instance
2068 */
2069 public List getFontSizes() {
2070 if (fontSizes == null) {//GEN-END:|558-getter|0|558-preInit
2071 // write pre-init user code here
2072 fontSizes = new List("Select font size", Choice.IMPLICIT);//GEN-BEGIN:|558-getter|1|558-postInit
2073 fontSizes.addCommand(getAPPLY_COMMAND());
2074 fontSizes.addCommand(getBACK_COMMAND());
2075 fontSizes.setCommandListener(this);
2076 fontSizes.setSelectCommand(getAPPLY_COMMAND());//GEN-END:|558-getter|1|558-postInit
2077 // write post-init user code here
2078 final byte[] fonts = bookCanvas.fontSizes;
2079
2080 for (int i = 0; i < fonts.length; i++) {
2081 fontSizes.append(Integer.toString(fonts[i]), null);
2082 }
2083
2084 fontSizes.setSelectedIndex(bookCanvas.getFontSizeIndex(), true);
2085 }//GEN-BEGIN:|558-getter|2|
2086 return fontSizes;
2087 }
2088 //</editor-fold>//GEN-END:|558-getter|2|
2089
2090 //<editor-fold defaultstate="collapsed" desc=" Generated Method: fontSizesAction ">//GEN-BEGIN:|558-action|0|558-preAction

Callers 2

fontSizesActionMethod · 0.95
useNativeFontsMethod · 0.95

Calls 5

getAPPLY_COMMANDMethod · 0.95
getBACK_COMMANDMethod · 0.95
toStringMethod · 0.80
getFontSizeIndexMethod · 0.80
setCommandListenerMethod · 0.45

Tested by

no test coverage detected