Sunday, 1 September 2013

is there any filterator for JComboBox in glazedlists

is there any filterator for JComboBox in glazedlists

Glazedlists with yaml am using.In glazedlists they are providing
textfilterator for filtering the jtable.
Now I want to filter the table based on the jcombobox values .So am try to
use jcombobox as my filter.I try with the textfilterator.but its not
working. I am not clear about the matcher. So if anyone know is there any
filterator for jcombobox.
My code snippet is given below :
JPanel(name=ProductPanel,preferredSize=660x400,maximumSize=650x400,minimumSize=650x400):
-
JPanel(name=insideProductPanel,preferredSize=660x400,maximumSize=660x400,minimumSize=660x400):
- JComboBox(name=cmbSearchCategory,onAction=searchCategory):
EventComboBoxModel(source=searchComboList): -
JTextField(name=txtSearchProduct): -
JScrollPane(name=productScroll,vScrollBar=never,preferredSize=650x400,maximumSize=650x400,minimumSize=650x400):
JTable(name=productTable): -
EventTableModel(name=productModel,source=productList): -
TextFilterator(txtSearchProduct=[name]) -
TableColumn(name=id,headerValue="#",preferredWidth=300): -
TableColumn(name=productCode,headerValue="code"): -
TableColumn(name=name,headerValue="Product"): -
TableColumn(name=category,headerValue="Category"): -
TableColumn(name=unit,headerValue="UOM"): -
TableColumn(name=batchEnabled,headerValue="Batch"): -
TableColumn(name=type,headerValue="Type of Product"):
MigLayout: | [grow]

No comments:

Post a Comment