Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. public class Search extends MainScreen {
  2. private ForegroundManager _foreground;
  3.  
  4. public Search() {
  5. super(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR);
  6.  
  7. _foreground = new ForegroundManager();
  8. _foreground.setBackground(BackgroundFactory
  9. .createSolidBackground(CloudTemplate.getForeColor()));
  10. _foreground.setMargin(0, 0, 0, 0);
  11. VerticalFieldManager srchMainVertical = new VerticalFieldManager() ;
  12.  
  13. Background verticalBgColr = BackgroundFactory.createSolidBackground(0x5d5d43);
  14. srchMainVertical.setBackground(verticalBgColr);
  15. VerticalFieldManager wer = new VerticalFieldManager(VERTICAL_SCROLL|VERTICAL_SCROLLBAR);
  16.  
  17. wer.setMargin(20, 50, 20, 50);
  18. wer.add(CloudUtilities.TxtLbl("name"));
  19. wer.add(CloudUtilities.TxtLbl("surname"));
  20. setStatus(CloudUtilities.addsrchfooter());
  21.  
  22. srchMainVertical.add(wer);
  23.  
  24. add(srchMainVertical);
  25.  
  26. public static Field TxtLbl( String lblView) {
  27. VerticalFieldManager txtLbl = new VerticalFieldManager(
  28. ) ;
  29. LabelField lblcal = new LabelField(lblView, DrawStyle.LEFT
  30. | Field.FIELD_LEFT) {
  31. public void paint(Graphics g) {
  32. g.setColor(CloudTemplate.getDescptnColor());
  33. super.paint(g);
  34. }
  35. };
  36. lblcal.setPadding(20, 0, 10, 0);
  37. txtLbl.add(lblcal);
  38.  
  39.  
  40. BasicEditField emailField = new BasicEditField("", " ",20,BasicEditField.NO_NEWLINE);
  41. Field labelField;
  42. // wer. add(labelField);
  43. // labelField.setPadding(0, 0, 5, 0);
  44. XYEdges xyEdge = new XYEdges(2, 2, 2, 2);
  45. XYEdges xyEdgeColors = new XYEdges(0x30A2EB, 0x30A2EB, 0x30A2EB,
  46. 0x30A2EB);
  47. Border aBorder = BorderFactory.createSimpleBorder(xyEdge, xyEdgeColors,
  48. Border.STYLE_SOLID);
  49.  
  50. emailField.setBorder(aBorder);
  51. emailField.setPadding(10, 5, 10, 5);
  52. txtLbl.add(emailField);
  53. return txtLbl;
  54. }
  55.  
  56. add(_foreground);
  57. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement