Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Search extends MainScreen {
- private ForegroundManager _foreground;
- public Search() {
- super(Manager.NO_VERTICAL_SCROLL | Manager.NO_VERTICAL_SCROLLBAR);
- _foreground = new ForegroundManager();
- _foreground.setBackground(BackgroundFactory
- .createSolidBackground(CloudTemplate.getForeColor()));
- _foreground.setMargin(0, 0, 0, 0);
- VerticalFieldManager srchMainVertical = new VerticalFieldManager() ;
- Background verticalBgColr = BackgroundFactory.createSolidBackground(0x5d5d43);
- srchMainVertical.setBackground(verticalBgColr);
- VerticalFieldManager wer = new VerticalFieldManager(VERTICAL_SCROLL|VERTICAL_SCROLLBAR);
- wer.setMargin(20, 50, 20, 50);
- wer.add(CloudUtilities.TxtLbl("name"));
- wer.add(CloudUtilities.TxtLbl("surname"));
- setStatus(CloudUtilities.addsrchfooter());
- srchMainVertical.add(wer);
- add(srchMainVertical);
- public static Field TxtLbl( String lblView) {
- VerticalFieldManager txtLbl = new VerticalFieldManager(
- ) ;
- LabelField lblcal = new LabelField(lblView, DrawStyle.LEFT
- | Field.FIELD_LEFT) {
- public void paint(Graphics g) {
- g.setColor(CloudTemplate.getDescptnColor());
- super.paint(g);
- }
- };
- lblcal.setPadding(20, 0, 10, 0);
- txtLbl.add(lblcal);
- BasicEditField emailField = new BasicEditField("", " ",20,BasicEditField.NO_NEWLINE);
- Field labelField;
- // wer. add(labelField);
- // labelField.setPadding(0, 0, 5, 0);
- XYEdges xyEdge = new XYEdges(2, 2, 2, 2);
- XYEdges xyEdgeColors = new XYEdges(0x30A2EB, 0x30A2EB, 0x30A2EB,
- 0x30A2EB);
- Border aBorder = BorderFactory.createSimpleBorder(xyEdge, xyEdgeColors,
- Border.STYLE_SOLID);
- emailField.setBorder(aBorder);
- emailField.setPadding(10, 5, 10, 5);
- txtLbl.add(emailField);
- return txtLbl;
- }
- add(_foreground);
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement