Changeset 5546 for branches/OmeroEditor/src/fields/DateTimeParam.java
- Timestamp:
- 07/23/08 15:32:07 (4 months ago)
- Files:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/OmeroEditor/src/fields/DateTimeParam.java
r5543 r5546 32 32 33 33 /** 34 * 34 * An experimental parameter that represents a Date (with optional Time). 35 * Also an optional Alarm time can be set (in seconds before 36 * (negative value) or after the Date/Time). 35 37 * 36 38 * @author William Moore … … 42 44 * @since OME3.0 43 45 */ 44 public class DateTime ValueObject extends AbstractValueObject{46 public class DateTimeParam extends AbstractParam { 45 47 46 48 public static final String DATE_ATTRIBUTE = DataFieldConstants.UTC_MILLISECS; 47 49 48 50 public static final String TIME_ATTRIBUTE = DataFieldConstants.SECONDS; 51 52 public static final String ALARM_SECONDS = DataFieldConstants.ALARM_SECONDS; 49 53 50 54 /** … … 53 57 * @param fieldType The String defining the field type 54 58 */ 55 public DateTime ValueObject(String fieldType) {59 public DateTimeParam(String fieldType) { 56 60 super(fieldType); 57 61 } … … 64 68 65 69 return new String[] {DATE_ATTRIBUTE, 66 TIME_ATTRIBUTE };70 TIME_ATTRIBUTE, ALARM_SECONDS}; 67 71 } 68 72 69 73 /** 70 * This field is filled if the value isn't null, and74 * This field is filled if the DATE value isn't null, and 71 75 * is not an empty string. 72 76 */ 73 public boolean is FieldFilled() {74 String timeValue = getAttribute(getValueAttributes()[0]);77 public boolean isParamFilled() { 78 String dateValue = getAttribute(DATE_ATTRIBUTE); 75 79 76 return ( timeValue != null && timeValue.length() > 0);80 return (dateValue != null && dateValue.length() > 0); 77 81 } 78 82
