Changeset 623
- Timestamp:
- 01/24/10 18:20:25 (2 years ago)
- Location:
- trunk/LogicMail/src/org/logicprobe/LogicMail/ui
- Files:
-
- 3 edited
-
AccountConfigScreen.java (modified) (3 diffs)
-
BorderedFieldManager.java (modified) (5 diffs)
-
OutgoingConfigScreen.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LogicMail/src/org/logicprobe/LogicMail/ui/AccountConfigScreen.java
r608 r623 44 44 import net.rim.device.api.ui.component.ObjectChoiceField; 45 45 import net.rim.device.api.ui.component.PasswordEditField; 46 import net.rim.device.api.ui.component.SeparatorField; 46 47 import net.rim.device.api.ui.component.TextField; 47 48 import net.rim.device.api.ui.container.VerticalFieldManager; … … 270 271 manager.add(serverUserField); 271 272 manager.add(serverPassField); 272 manager.add(new LabelField());273 manager.add(new SeparatorField()); 273 274 manager.add(identityField); 274 275 manager.add(outgoingServerField); … … 328 329 manager.add(enableWiFiCheckboxField); 329 330 331 manager.add(new SeparatorField()); 332 330 333 if(accountConfig instanceof ImapConfig) { 331 334 ImapConfig imapConfig = (ImapConfig)accountConfig; -
trunk/LogicMail/src/org/logicprobe/LogicMail/ui/BorderedFieldManager.java
r595 r623 43 43 public class BorderedFieldManager extends Manager { 44 44 /** The border width. */ 45 private static int borderWidth = 4; 45 private static final int borderWidth = 4; 46 47 private static final int borderMargin = borderWidth * 2; 46 48 47 49 /** 48 50 * Show a normal border on the bottom. 49 51 */ 50 public static long BOTTOM_BORDER_NORMAL = 0x0000000000000L;52 public static final long BOTTOM_BORDER_NORMAL = 0x0000000000000L; 51 53 52 54 /** … … 55 57 * vertically stacked instances. 56 58 */ 57 public static long BOTTOM_BORDER_NONE = 0x0000000000020L;59 public static final long BOTTOM_BORDER_NONE = 0x0000000000020L; 58 60 59 61 /** 60 62 * Show a line on the bottom of the border. 61 63 */ 62 public static long BOTTOM_BORDER_LINE = 0x0000000000040L;64 public static final long BOTTOM_BORDER_LINE = 0x0000000000040L; 63 65 64 66 private boolean bottomBorderNone; … … 114 116 // Paint the rounded rectangular cutout section for the contents 115 117 graphics.setColor(backgroundColor); 116 graphics.fillRoundRect(borderWidth, borderWidth, width - (borderWidth * 2), height - (bottomBorderNone ? borderWidth : (borderWidth * 2)), 10, 10);118 graphics.fillRoundRect(borderWidth, borderWidth, width - borderMargin, height - (bottomBorderNone ? borderWidth : borderMargin), 10, 10); 117 119 118 120 // Paint the inner border of the cutout section 119 121 graphics.setColor(Color.DARKGRAY); 120 graphics.drawRoundRect(borderWidth, borderWidth, width - (borderWidth * 2), height - (bottomBorderNone ? borderWidth : (borderWidth * 2)), 10, 10);122 graphics.drawRoundRect(borderWidth, borderWidth, width - borderMargin, height - (bottomBorderNone ? borderWidth : borderMargin), 10, 10); 121 123 } 122 124 … … 136 138 y += 2; 137 139 Field field = this.getField(i); 138 this.setPositionChild(field, 8, y);139 this.layoutChild(field, maxWidth - (border Width * 2) - 6, getPreferredHeightOfChild(field));140 this.setPositionChild(field, borderMargin, y); 141 this.layoutChild(field, maxWidth - (borderMargin * 2), getPreferredHeightOfChild(field)); 140 142 y += field.getHeight(); 141 143 } … … 170 172 */ 171 173 public int getPreferredHeight() { 172 int sum = (bottomBorderNone ? borderWidth : (borderWidth * 2));174 int sum = (bottomBorderNone ? borderWidth : borderMargin); 173 175 int count = this.getFieldCount(); 174 176 for(int i=0; i<count; i++) { -
trunk/LogicMail/src/org/logicprobe/LogicMail/ui/OutgoingConfigScreen.java
r608 r623 38 38 import net.rim.device.api.ui.component.CheckboxField; 39 39 import net.rim.device.api.ui.component.Dialog; 40 import net.rim.device.api.ui.component.LabelField;41 40 import net.rim.device.api.ui.component.ObjectChoiceField; 42 41 import net.rim.device.api.ui.component.PasswordEditField; 42 import net.rim.device.api.ui.component.SeparatorField; 43 43 import net.rim.device.api.ui.text.TextFilter; 44 44 … … 170 170 contentFieldManager.add(serverUserField); 171 171 contentFieldManager.add(serverPassField); 172 contentFieldManager.add(new LabelField());172 contentFieldManager.add(new SeparatorField()); 173 173 contentFieldManager.add(networkTransportChoiceField); 174 174 contentFieldManager.add(enableWiFiCheckboxField);
Note: See TracChangeset
for help on using the changeset viewer.
