Package net.rim.device.api.ui.component

Examples of net.rim.device.api.ui.component.DateField


  protected interface Execution {
    boolean execute(Object selection);
  }
 
  protected Field createDateField(String label, long date, int format) {
    Field dateField = new DateField(label, date, DateFormat.getInstance(format), DateField.DATE_TIME | DateField.READONLY | DateField.NON_FOCUSABLE);
    dateField.setPadding(5, 0, 5, 0);
    return dateField;
  }
View Full Code Here


            for (int i = 0; i < eventLogEntries.length; i++) {
              EventLogResponse eventLogEntry = eventLogEntries[i];
              long eventLogEntryDate = eventLogEntry.getDate();
              String eventLogEntryText = getEventLogDescription(eventLogEntry);
              DateField date = new DateField("",
                  eventLogEntryDate, DateFormat
                      .getInstance(DateFormat.DATE_SHORT
                          | DateFormat.TIME_SHORT),
                  DateField.DATE_TIME | DateField.READONLY);
              RichTextField text = new RichTextField(
View Full Code Here

        });
        vfm.add(_choiceField);

        final DateFormat dateFormat =
                DateFormat.getInstance(DateFormat.DATETIME_DEFAULT);
        _dateField = new DateField("", System.currentTimeMillis(), dateFormat);
        _dateField.setEnabled(false);
        vfm.add(_dateField);

        add(vfm);
View Full Code Here

        dateLabel.setBackground(background);
        fieldManager.add(dateLabel);

        // Add a typical date field to the VerticalFieldManager
        _dateField =
                new DateField("Date/time: ", System.currentTimeMillis(),
                        DateField.DATE_TIME);
        fieldManager.add(_dateField);

        fieldManager.add(new SeparatorField());
View Full Code Here

        _location = new EditField("Location: ", "");
        add(_location);

        final long currentTime = System.currentTimeMillis();
        _startTime =
                new DateField("Start: ", currentTime + 3600000,
                        DateField.DATE_TIME);
        _endTime =
                new DateField("End: ", currentTime + 7200000,
                        DateField.DATE_TIME);

        add(new SeparatorField());

        add(_startTime);
View Full Code Here

        }

        _orderRecord = orderRecord;

        _date =
                new DateField("Order Date: ", orderRecord.getDate(),
                        DateField.DATE);
        _company = new BasicEditField("Company: ", orderRecord.getCompany());
        _product = new BasicEditField("Product: ", orderRecord.getProduct());
        _numOrdered =
                new BasicEditField("Number Ordered: ", Integer
View Full Code Here

                            "Connection denied" };

            _callLog = callLog;
            _notes = new BasicEditField("Notes: ", callLog.getNotes());
            _date =
                    new DateField("Date: ", callLog.getDate().getTime(),
                            DateField.DATE_TIME);
            _duration =
                    new BasicEditField("Duration (seconds): ", Integer
                            .toString(callLog.getDuration()),
                            Integer.MAX_VALUE, BasicEditField.FILTER_INTEGER);
View Full Code Here

TOP

Related Classes of net.rim.device.api.ui.component.DateField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.