home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / browser / net_linx / jae40.jar / sun / beans / editors / ByteEditor.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-11-03  |  875 b   |  14 lines

  1. package sun.beans.editors;
  2.  
  3. import java.beans.PropertyEditorSupport;
  4.  
  5. public class ByteEditor extends NumberEditor {
  6.    public String getJavaInitializationString() {
  7.       return "((byte)" + ((PropertyEditorSupport)this).getValue() + ")";
  8.    }
  9.  
  10.    public void setAsText(String var1) throws IllegalArgumentException {
  11.       ((PropertyEditorSupport)this).setValue(Byte.valueOf(var1));
  12.    }
  13. }
  14.