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

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/datacomponents/StringDataComponent.java (file contents):
Revision 1.10 by ajm, Mon Jan 29 13:58:45 2001 UTC vs.
Revision 1.11 by ajm, Sun Feb 4 00:06:15 2001 UTC

# Line 28 | Line 28 | public class StringDataComponent extends VisibleDataCo
28      /**
29       * The default length of the JTextField
30       */
31 <    private final int DEFAULT_TEXT_LENGTH = 20;
31 >    protected final int DEFAULT_TEXT_LENGTH = 20;
32  
33   //---STATIC METHODS---
34  
# Line 49 | Line 49 | public class StringDataComponent extends VisibleDataCo
49          _label = new JLabel(_name + ": ");
50          _label.setHorizontalAlignment(JLabel.RIGHT);
51          setLayout(new GridLayout(1, 2));
52 <        _item.setText("-uninitialised-");
52 >        _item.setText("-uninitialised-");
53          add(_label);
54          add(_item);
55      }
# Line 98 | Line 98 | public class StringDataComponent extends VisibleDataCo
98          } catch (Exception e) {
99              throw new DataFormatException(value + " is an invalid data type for " + toString());
100          }
101 <    }        
101 >    }
102 >    
103 >    /**
104 >     * Returns the string showing the packet
105 >     * attribute that the component is looking after
106 >     *
107 >     * @return the packet reference
108 >     */
109 >    public String getPacketAttribute() {
110 >        return _attribute;
111 >    }
112  
113   //---ATTRIBUTES---
114  
115      /**
116       * The friendly name of this component
117       */
118 <    private String _name;
118 >    protected String _name;
119      
120      /**
121       * The attribute that this component is concerned with
122       */
123 <    private String _attribute;
123 >    protected String _attribute;
124  
125      /**
126       * The friendly label for this component

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines