I need to update my custom nodes and while doing so I want to really get rid of any deprecated classes/methods. First list on the item is
org.knime.core.node.util.ColumnFilterPanel;
used as below:
addDialogComponent(new DialogComponentColumnNameSelection (
new SettingsModelString(
CustomNodeModel.CFGKEY_BASE64,
CustomNodeModel.DEFAULT_BASE64),
"Structure Column:", CustomNodeModel.IN_PORT,
new ColumnFilterPanel.ValueClassFilter(StringValue.class)));
I was wondering what the upgrade Path is from ColumnFilterPanel?
And also were to find information with what to replace deprecated classes (it’s not in the source code).
gab1one
February 13, 2023, 5:19pm
2
Hi @kienerj ,
The ColumnFilterPanel tells you which class you should use instead:
import org.knime.core.node.util.filter.NameFilterPanel;
import org.knime.core.node.util.filter.NameFilterTableModel;
/**
* Panel is used to select/filter a certain number of columns.
*
* <p>
* You can add a property change listener to this class that is notified when the include list changes.
*
* @deprecated A new column filter panel with more options is available in
* {@link org.knime.core.node.util.filter.column.DataColumnSpecFilterPanel}
* @author Thomas Gabriel, University of Konstanz
*/
@Deprecated
@SuppressWarnings("serial")
public class ColumnFilterPanel extends JPanel {
/** Settings key for the excluded columns. */
public static final String INCLUDED_COLUMNS = "included_columns";
/** Settings key for the excluded columns. */
It mentions this one:
/*
* ------------------------------------------------------------------------
* Copyright by KNIME AG, Zurich, Switzerland
* Website: http://www.knime.com; Email: contact@knime.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, Version 3, as
* published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses>.
*
* Additional permission under GNU GPL version 3 section 7:
*
* KNIME interoperates with ECLIPSE solely via ECLIPSE's plug-in APIs.
This file has been truncated. show original
best,
Gabriel
1 Like
system
Closed
May 14, 2023, 5:20pm
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.