• 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/IField.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 modified

  • branches/OmeroEditor/src/fields/IField.java (modified) (2 diffs)

Legend:

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

    r5543 r5546  
    3030 
    3131/**  
    32  * This interface specifies the minimum methods needed to save and  
    33  * retrieve data.  
    34  * It also has a convenience method for querying boolean attributes.  
     32 * This interface specifies methods of a Field, which corresponds to a node 
     33 * in the data tree. 
     34 * IField extends the IValue interface, which has getAttribute() and setAttribute()  
     35 * methods. 
     36 * A field may contain several values, so the IField has methods to get the  
     37 * count of values, and to get a value by index. 
     38 *  
    3539 * 
    3640 * @author  William Moore      
    … …  
    4246 * @since OME3.0 
    4347 */ 
    44 public interface IField { 
     48public interface IField  
     49        extends IAttributes { 
    4550         
    46         /** 
    47          * Returns the string value of the named attribute. 
    48          *  
    49          * @param name  Name of the attribute 
    50          * @return              The value of the attribute 
    51          */ 
    52         public String getAttribute(String name); 
     51 
     52        public int getParamCount(); 
    5353         
    54         /** 
    55          * Sets the value of the named attribute. 
    56          *  
    57          * @param name  The name of the attribute        
    58          * @param value The value of the attribute 
    59          */ 
    60         public void setAttribute(String name, String value); 
     54        public IParam getParamAt(int index); 
    6155         
    62         /** 
    63          * A method for querying the value of a boolean attribute 
    64          *  
    65          * @param attributeName         The name of the attribute 
    66          * @return              True if the attribute value is "true".  
    67          */ 
    68         public boolean isAttributeTrue(String attributeName); 
     56        public void addParam(IParam param); 
     57         
     58        public boolean removeParam(IParam param); 
     59         
     60        public boolean isFieldFilled(); 
    6961 
    7062} 

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/