// @@
// @@
/*
* Wi.Ser Framework
*
* LGPL Version: 1.8.1, 20-September-2007
* Copyright (C) 2005-2006 Dirk von der Weiden <dvdw@imail.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library located in LGPL.txt in the
* license directory; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
* If this agreement does not cover your requirements, please contact us
* via email to get detailed information about the commercial license
* or our service offerings!
*
*/
// @@
package de.ug2t.unifiedGui.cellRenderer.implementations.table;
import java.util.*;
import de.ug2t.unifiedGui.*;
import de.ug2t.unifiedGui.interfaces.*;
public class TableSearchCleanListener implements IUnGuiEventListener
{
public void pcmf_execListener(UnComponent xParam) throws Exception
{
IUnTable l_table = (IUnTable)xParam.pcmf_getParentNode();
Collection l_header = l_table.pcmf_getHeader();
Iterator l_it = l_header.iterator();
while (l_it.hasNext())
{
UnComponent l_hcomp = (UnComponent) l_it.next();
IUnInputField l_ipt = (IUnInputField)l_hcomp.pcmf_getNodeAt(1);
IUnButton l_but = (IUnButton)l_hcomp.pcmf_getNodeAt(0).pcmf_getNodeAt(1);
l_ipt.pcmf_setValue("");
l_ipt.pcmf_hide();
l_but.pcmf_setBgColor("#DDDDDD");
l_but.pcmf_setToolTip("");
l_hcomp.pcmf_repaint();
}
new DefaultTableSearcher().pcmf_execObj(l_table);
l_table.pcmf_repaint();
}
}
|