[569] | 1 | /* |
---|
| 2 | * $Id: Attribute.java,v 1.5 2002/06/12 18:47:26 dwd Exp $ |
---|
| 3 | * |
---|
| 4 | * This software is provided by NOAA for full, free and open release. It is |
---|
| 5 | * understood by the recipient/user that NOAA assumes no liability for any |
---|
| 6 | * errors contained in the code. Although this software is released without |
---|
| 7 | * conditions or restrictions in its use, it is expected that appropriate |
---|
| 8 | * credit be given to its author and to the National Oceanic and Atmospheric |
---|
| 9 | * Administration should the software be included by the recipient as an |
---|
| 10 | * element in other product development. |
---|
| 11 | */ |
---|
| 12 | |
---|
| 13 | package gov.noaa.pmel.sgt; |
---|
| 14 | |
---|
| 15 | import java.beans.PropertyChangeListener; |
---|
| 16 | |
---|
| 17 | /** |
---|
| 18 | * Defines an interface for classes that provide rendering |
---|
| 19 | * information for <code>sgt.dm</code> classes. |
---|
| 20 | * |
---|
| 21 | * @author Donald Denbo |
---|
| 22 | * @version $Revision: 1.5 $, $Date: 2002/06/12 18:47:26 $ |
---|
| 23 | * @since 1.0 |
---|
| 24 | */ |
---|
| 25 | public interface Attribute extends java.io.Serializable { |
---|
| 26 | |
---|
| 27 | /** |
---|
| 28 | * Return a printable representation of the object. |
---|
| 29 | * |
---|
| 30 | * @return Description |
---|
| 31 | */ |
---|
| 32 | public String toString(); |
---|
| 33 | /** |
---|
| 34 | * Add listener for changes to attribute properties. The properties |
---|
| 35 | * that can be listened for depend on the implementing class. |
---|
| 36 | * |
---|
| 37 | * @since 2.0 |
---|
| 38 | */ |
---|
| 39 | public void addPropertyChangeListener(PropertyChangeListener listener); |
---|
| 40 | /** |
---|
| 41 | * Remove change listener. |
---|
| 42 | * |
---|
| 43 | * @since 2.0 |
---|
| 44 | */ |
---|
| 45 | public void removePropertyChangeListener(PropertyChangeListener listener); |
---|
| 46 | /** |
---|
| 47 | * Set attribute id. |
---|
| 48 | * |
---|
| 49 | * @since 3.0 |
---|
| 50 | */ |
---|
| 51 | public void setId(String id); |
---|
| 52 | /** |
---|
| 53 | * Get attribute id. |
---|
| 54 | * |
---|
| 55 | * @since 3.0 |
---|
| 56 | */ |
---|
| 57 | public String getId(); |
---|
| 58 | /** |
---|
| 59 | * Batch the changes to the attribute. |
---|
| 60 | * |
---|
| 61 | * @since 3.0 |
---|
| 62 | */ |
---|
| 63 | public void setBatch(boolean batch); |
---|
| 64 | /** |
---|
| 65 | * Batch the changes to the attribute and set local flag. |
---|
| 66 | * Determines whether <code>AttributeChangeEvent</code> will be set local. |
---|
| 67 | * |
---|
| 68 | * @since 3.0 |
---|
| 69 | */ |
---|
| 70 | public void setBatch(boolean batch, boolean local); |
---|
| 71 | /** |
---|
| 72 | * Is the attribute in batch mode? |
---|
| 73 | * |
---|
| 74 | * @since 3.0 |
---|
| 75 | */ |
---|
| 76 | public boolean isBatch(); |
---|
| 77 | } |
---|