1 package com.calipso.reportgenerator.userinterface; 2 3 import javax.swing.text.Document ; 4 5 10 11 public class UPStringTextField extends UPTextField { 12 13 public UPStringTextField() { 14 } 15 16 public UPStringTextField(String text) { 17 super(text); 18 } 19 20 public UPStringTextField(int columns) { 21 super(columns); 22 } 23 24 public UPStringTextField(String text, int columns) { 25 super(text, columns); 26 } 27 28 public UPStringTextField(Document doc, String text, int columns) { 29 super(doc, text, columns); 30 } 31 32 public boolean isLessThan(UPTextField upTextField) { 33 String text = super.getText(); 34 if(text.compareToIgnoreCase(upTextField.getComponentValue().toString()) > 0) { 35 return false; 36 } 37 return true; 38 } 39 40 public Object getComponentValue() { 41 return super.getText(); 42 } 43 } 44 | Popular Tags |