Changeset 5546 for branches/OmeroEditor/src/fields/IField.java
- Timestamp:
- 07/23/08 15:32:07 (4 months ago)
- Files:
-
- 1 modified
-
branches/OmeroEditor/src/fields/IField.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/OmeroEditor/src/fields/IField.java
r5543 r5546 30 30 31 31 /** 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 * 35 39 * 36 40 * @author William Moore … … 42 46 * @since OME3.0 43 47 */ 44 public interface IField { 48 public interface IField 49 extends IAttributes { 45 50 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(); 53 53 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); 61 55 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(); 69 61 70 62 }
