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/UsersDataComponent.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/datacomponents/UsersDataComponent.java (file contents):
Revision 1.10 by ajm, Sun Feb 4 00:06:14 2001 UTC vs.
Revision 1.12 by ajm, Sun Mar 18 14:43:39 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.conient.datacomponents;
2 > package uk.org.iscream.conient.datacomponents;
3  
4   //---IMPORTS---
5   import javax.swing.JLabel;
# Line 9 | Line 9 | import java.util.StringTokenizer;
9   import javax.swing.JComboBox;
10   import java.text.DateFormat;
11   import javax.swing.SwingUtilities;
12 + import uk.org.iscream.util.XMLPacket;
13  
14   /**
15   * This component displays the users currently logged
# Line 41 | Line 42 | public class UsersDataComponent extends VisibleDataCom
42          _label = new JLabel(name + ": ");
43          _label.setHorizontalAlignment(JLabel.RIGHT);
44          setLayout(new GridLayout(1, 2));
45 <        _item.addItem("-uninitialised-");
45 >        _item.addItem("-uninitialised-");
46          add(_label);
47          add(_item);
48      }
# Line 80 | Line 81 | public class UsersDataComponent extends VisibleDataCom
81  
82   //---ACCESSOR/MUTATOR METHODS---
83      
84 <    /**
85 <     * This takes the String value of the parameter that this component
85 <     * is monitoring direct from the packet, it then performs all
84 >   /**
85 >     * This takes the packet to obtain the value from, it then performs all
86       * approriate conversions and adds this class to the Swing Event
87       * Dispatching queue.
88       *
89 <     * @param value the value for this data component
89 >     * @param packet the XMLPacket to get the data from
90       * @throws DataFormatException if there was a problem converting the data for display
91       */
92 <    public void setValue(String value) throws DataFormatException {
92 >    public void setValue(XMLPacket packet) throws DataFormatException {
93 >        String value = packet.getParam(_attribute);
94          try {
95              if (!_cache.equals(value)) {
96                  _cache = value;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines