• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.clients
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 5546 for branches/OmeroEditor/src/fields/DateTimeParam.java

Show
Ignore:
Timestamp:
07/23/08 15:32:07 (4 months ago)
Author:
will
Message:

Actions and UndoableEdit? framework setup.
Can open Beta 3.0 XML files (not all fields rendered yet)

Files:
1 moved

  • branches/OmeroEditor/src/fields/DateTimeParam.java (moved) (moved from branches/OmeroEditor/src/fields/DateTimeValueObject.java) (4 diffs)

Legend:

Unmodified
Added
Removed
  • branches/OmeroEditor/src/fields/DateTimeParam.java

    r5543 r5546  
    3232 
    3333/**  
    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). 
    3537 * 
    3638 * @author  William Moore      
    … …  
    4244 * @since OME3.0 
    4345 */ 
    44 public class DateTimeValueObject extends AbstractValueObject { 
     46public class DateTimeParam extends AbstractParam { 
    4547 
    4648        public static final String DATE_ATTRIBUTE = DataFieldConstants.UTC_MILLISECS; 
    4749         
    4850        public static final String TIME_ATTRIBUTE = DataFieldConstants.SECONDS; 
     51         
     52        public static final String ALARM_SECONDS = DataFieldConstants.ALARM_SECONDS; 
    4953         
    5054        /** 
    … …  
    5357         * @param fieldType             The String defining the field type 
    5458         */ 
    55         public DateTimeValueObject(String fieldType) { 
     59        public DateTimeParam(String fieldType) { 
    5660                super(fieldType); 
    5761        } 
    … …  
    6468                 
    6569                return new String[] {DATE_ATTRIBUTE,  
    66                                 TIME_ATTRIBUTE}; 
     70                                TIME_ATTRIBUTE, ALARM_SECONDS}; 
    6771        } 
    6872 
    6973        /** 
    70          * This field is filled if the value isn't null, and  
     74         * This field is filled if the DATE value isn't null, and  
    7175         * is not an empty string.  
    7276         */ 
    73         public boolean isFieldFilled() { 
    74                 String timeValue = getAttribute(getValueAttributes()[0]); 
     77        public boolean isParamFilled() { 
     78                String dateValue = getAttribute(DATE_ATTRIBUTE); 
    7579                 
    76                 return (timeValue != null && timeValue.length() > 0); 
     80                return (dateValue != null && dateValue.length() > 0); 
    7781        } 
    7882 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/