我有一个方法:
public void generateLink() {
String url = com.google.gwt.user.client.Window.Location.getHref();
String[] url2 = url.split("&xmx");
url = url2[0];
float xmax = extent.getXMax();
float xmin = extent.getXMin();
float ymax = extent.getYMax();
float ymin = extent.getYMin();
int wkid2 = this.wkid;
url = url + "&xmx="+xmax+"&xmn="+xmin+"&ymx="+ ymax+"&ymn="+ymin+"&wkid=" + wkid2;
textItem_link_do_mapy.setValue(url);
textItem_link_do_mapy.setSelectOnFocus(true);
textItem_link_do_mapy.focusInItem();
}
我想在输入文本后突出显示 textitem 组件。我怎么能做到?