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 |
|
|
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 |
|
} |
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 |