{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540 {\fonttbl\f0\fnil\fcharset0 Monaco;} {\colortbl;\red255\green255\blue255;\red127\green0\blue85;\red63\green127\blue95;\red42\green0\blue255; } \paperw11900\paperh16840\margl1440\margr1440\vieww16220\viewh19860\viewkind0 \deftab720 \pard\pardeftab720 \f0\fs22 \cf2 import\cf0 \ul com.smartgwt.client.util.SC\ulnone ;\ \cf2 import\cf0 com.smartgwt.client.widgets.form.fields.FormItemIcon;\ \cf2 import\cf0 \ul com.smartgwt.client.widgets.form.fields.PickerIcon\ulnone ;\ \cf2 import\cf0 com.smartgwt.client.widgets.form.fields.TextItem;\ \cf2 import\cf0 \ul com.smartgwt.client.widgets.form.fields.events.FormItemClickHandler\ulnone ;\ \cf2 import\cf0 \ul com.smartgwt.client.widgets.form.fields.events.FormItemIconClickEvent\ulnone ;\ \ \cf2 public\cf0 \cf2 class\cf0 TextItemAlbaran \cf2 extends\cf0 TextItem\{\ \ \cf2 public\cf0 TextItemAlbaran() \{\ \ FormItemIcon searchPicker = \cf2 new\cf0 FormItemIcon();\ FormItemIcon clearPicker = \cf2 new\cf0 FormItemIcon();\ FormItemIcon refreshPicker = \cf2 new\cf0 FormItemIcon();\ \ \cf3 /*PickerIcon clearPicker = new PickerIcon(PickerIcon.CLEAR, new FormItemClickHandler() \{\cf0 \ \pard\pardeftab720 \cf3 public void onFormItemClick(FormItemIconClickEvent event) \{\cf0 \ \cf3 SC.say("Clear Picker clicked");\cf0 \ \cf3 \}\cf0 \ \cf3 \});\cf0 \ \ \cf3 PickerIcon searchPicker = new PickerIcon(PickerIcon.SEARCH, new FormItemClickHandler() \{\cf0 \ \cf3 public void onFormItemClick(FormItemIconClickEvent event) \{\cf0 \ \cf3 SC.say("Search Picker clicked");\cf0 \ \cf3 \}\cf0 \ \cf3 \});\cf0 \ \ \cf3 PickerIcon refreshPicker = new PickerIcon(PickerIcon.REFRESH, new FormItemClickHandler() \{\cf0 \ \cf3 public void onFormItemClick(FormItemIconClickEvent event) \{\cf0 \ \cf3 SC.say("Refresh Picker clicked");\cf0 \ \cf3 \}\cf0 \ \cf3 \});*/\cf0 \ \ \cf2 this\cf0 .setName(\cf4 "albaran"\cf0 );\ \cf2 this\cf0 .setTitle(\cf4 "Albaran"\cf0 );\ \ \cf2 this\cf0 .setIcons(searchPicker, clearPicker, refreshPicker);\ \cf2 this\cf0 .setMask(\cf4 "#####/CCCCC/[12]###"\cf0 ); \ \}\ \ \}\ }