| javax.swing.text.PlainDocument org.cougaar.util.NumericListDocument
Constructor Summary | |
public | NumericListDocument() Default constructor creates a NumericListDocument holding a single zero value. |
Method Summary | |
public int[] | getValues() Get the current value in the document. | public void | insertString(int offset, String s, AttributeSet attrs) Insert a string into the document. | public void | setValue(int value) Replace the current value in the document with a new value. | public void | setValues(int[] values) |
NumericListDocument | public NumericListDocument()(Code) | | Default constructor creates a NumericListDocument holding a single zero value.
|
getValues | public int[] getValues()(Code) | | Get the current value in the document. Converts the string in
the document to a number.
the value in the buffer as an int. |
insertString | public void insertString(int offset, String s, AttributeSet attrs) throws BadLocationException(Code) | | Insert a string into the document. The string is checked to
insure that it is a comma-separated or space separated list of numbers
Parameters: offset - the location in the document where insertion is to occur. Parameters: s - the string to insert -- all characters must be decimal digits. Parameters: attrs - the set of attributes fo the inserted characters. |
setValue | public void setValue(int value)(Code) | | Replace the current value in the document with a new value.
Parameters: value - the new value to insert. |
setValues | public void setValues(int[] values)(Code) | | |
|
|