ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/datacomponents/DataComponent.java
Revision: 1.9
Committed: Tue May 29 17:41:32 2001 UTC (22 years, 11 months ago) by tdb
Branch: MAIN
Changes since 1.8: +4 -4 lines
Log Message:
The last of the central monitoring system packages to be changed to the newer
structure. It has changed from;

uk.org.iscream.conient.*

to;

uk.org.iscream.cms.conient.*

This is in keeping with the new style of packaging.

File Contents

# Content
1 //---PACKAGE DECLARATION---
2 package uk.org.iscream.cms.conient.datacomponents;
3
4 //---IMPORTS---
5 import uk.org.iscream.cms.server.util.XMLPacket;
6
7 /**
8 * This interface is used by all
9 * components that will be used to display
10 * inbound data. The HostDisplayPanel class
11 * uses it as a generic way to tell a specific
12 * class that holds data to update its data with
13 * a given packet.
14 *
15 * A related class is the VisibleDataComponent
16 * abstract class, this is specifically for components
17 * that will display data and thus implements this
18 * interface.
19 *
20 * @author $Author: ajm4 $
21 * @version $Id: DataComponent.java,v 1.8 2001/03/18 14:43:39 ajm4 Exp $
22 */
23 public interface DataComponent {
24
25 //---FINAL ATTRIBUTES---
26
27 /**
28 * The current CVS revision of this class
29 */
30 public final String REVISION = "$Revision: 1.8 $";
31
32 //---STATIC METHODS---
33
34 //---CONSTRUCTORS---
35
36 //---PUBLIC METHODS---
37
38 //---PRIVATE METHODS---
39
40 //---ACCESSOR/MUTATOR METHODS---
41
42 /**
43 * This takes an XMLPacket so that the reading
44 * component can extract the data it needs to update
45 * the display.
46 *
47 * @param packet the packet
48 * @throws DataFormatException if there was a problem converting the data for display
49 */
50 public void setValue(XMLPacket packet) throws DataFormatException;
51
52 /**
53 * Returns the string showing the packet
54 * attribute that the component is looking after
55 *
56 * @return the packet reference
57 */
58 public String getPacketAttribute();
59
60 //---ATTRIBUTES---
61
62 //---STATIC ATTRIBUTES---
63
64 }