Changes

Jump to: navigation, search
no edit summary
3.9. Add background to the ''keywordFilterField'':
<source lang="java">
// Attempt to load a bitmap background try { Background bitmapBackground = BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("background.png"), Background.POSITION_X_CENTER, Background.POSITION_Y_CENTER, Background.REPEAT_BOTH); _keywordFilterField.setBackground(bitmapBackground);
} catch (final IllegalArgumentException e) { UiApplication.getUiApplication().invokeLater(new Runnable() { public void run() { Dialog.alert(e.toString()); } }); }
</source>
 3.89. Add inner class for custom search field:
<source lang="java">
final static class CustomKeywordField extends BasicEditField {
}
</source>
 3.910. Add the method that creates lists of students:
<source lang="java">
private Vector getFromList() {
}
</source>
 3.1011. Add the method to access the <code>KeywordFilterField</code> object:
<source lang="java">
KeywordFilterField getKeywordFilterField() {
}
</source>
 3.1112. Run the application:<br/>
[[Image: BB_mainscreen.png | 300px]]<br/>
3.1213. Type the desired student name in the search field:<br/>
[[Image: BB_search.png | 300px]]
1
edit

Navigation menu