|
8.7.7.3.12 Net Address Field
Field used for displaying string of any form of string with seperator chars, especially for showing mac address of form <xx:xx:xx:xx:xx:xx......>
The main properties of the bean are.
|
Property
|
Description |
|
text |
this sets the text to the fields |
|
textFields |
this sets the number of fields that are to be displayed seperated by the separator chars |
|
seperator |
the separator char to be displayed between the fields |
|
validEntries |
the entries which should be accepted by the fields |
To use this bean, to display the text "00 50 bf 0a 43 5a".
com.adventnet.beans.text.NetAddressField
field1 = new com.adventnet.beans.text.NetAddressField ();
field1.setTextFields(6);
field1.setSeperator(":");
field1.setValidEntries(new String[]{"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"});
field1.setText("00 50 bf 0a 43 5a");
|