IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning - Replace/remove Deprecated API.
This commit is contained in:
parent
c84aa4c312
commit
2fd58c9bad
|
@ -23,16 +23,16 @@ import org.compiere.model.GridTable;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
import org.zkoss.zul.AbstractListModel;
|
import org.zkoss.zul.AbstractListModel;
|
||||||
import org.zkoss.zul.ListModel;
|
import org.zkoss.zul.ListModel;
|
||||||
import org.zkoss.zul.ListModelExt;
|
|
||||||
import org.zkoss.zul.ListitemComparator;
|
import org.zkoss.zul.ListitemComparator;
|
||||||
import org.zkoss.zul.event.ListDataEvent;
|
import org.zkoss.zul.event.ListDataEvent;
|
||||||
|
import org.zkoss.zul.ext.Sortable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Low Heng Sin
|
* @author Low Heng Sin
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class GridTableListModel extends AbstractListModel<Object> implements TableModelListener, ListModelExt<Object> {
|
public class GridTableListModel extends AbstractListModel<Object> implements TableModelListener, Sortable<Object> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -433,7 +433,6 @@ public class WAttributeGrid extends ADForm implements EventListener<Event>
|
||||||
for (int rowIndex = 0; rowIndex < noOfRows; rowIndex++)
|
for (int rowIndex = 0; rowIndex < noOfRows; rowIndex++)
|
||||||
{
|
{
|
||||||
Row row = new Row();
|
Row row = new Row();
|
||||||
row.setWidth("100%");
|
|
||||||
rows.appendChild(row);
|
rows.appendChild(row);
|
||||||
|
|
||||||
for (int colIndex = 0; colIndex < noOfCols; colIndex++)
|
for (int colIndex = 0; colIndex < noOfCols; colIndex++)
|
||||||
|
|
|
@ -28,9 +28,9 @@ import java.util.Vector;
|
||||||
import org.adempiere.webui.event.WTableModelEvent;
|
import org.adempiere.webui.event.WTableModelEvent;
|
||||||
import org.adempiere.webui.event.WTableModelListener;
|
import org.adempiere.webui.event.WTableModelListener;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
import org.zkoss.zul.ListModelExt;
|
|
||||||
import org.zkoss.zul.ListModelList;
|
import org.zkoss.zul.ListModelList;
|
||||||
import org.zkoss.zul.event.ListDataEvent;
|
import org.zkoss.zul.event.ListDataEvent;
|
||||||
|
import org.zkoss.zul.ext.Sortable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a ListModel to be used with Listbox.
|
* This is a ListModel to be used with Listbox.
|
||||||
|
@ -40,7 +40,7 @@ import org.zkoss.zul.event.ListDataEvent;
|
||||||
* @author Andrew Kimball
|
* @author Andrew Kimball
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class ListModelTable extends ListModelList<Object> implements ListModelExt<Object>
|
public class ListModelTable extends ListModelList<Object> implements Sortable<Object>
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -51,7 +51,7 @@ public class ListModelTable extends ListModelList<Object> implements ListModelEx
|
||||||
/** The number of columns in the table. */
|
/** The number of columns in the table. */
|
||||||
private int m_noColumns;
|
private int m_noColumns;
|
||||||
|
|
||||||
private ListModelExt<Object> sorter = null;
|
private Sortable<Object> sorter = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor.
|
* Default constructor.
|
||||||
|
@ -392,7 +392,7 @@ public class ListModelTable extends ListModelList<Object> implements ListModelEx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSorter(ListModelExt<Object> lme)
|
public void setSorter(Sortable<Object> lme)
|
||||||
{
|
{
|
||||||
sorter = lme;
|
sorter = lme;
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,11 +174,6 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel<Object> impl
|
||||||
return (DefaultTreeNode<Object>) super.getRoot();
|
return (DefaultTreeNode<Object>) super.getRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public DefaultTreeNode<Object> getChild(Object parent, int index) {
|
|
||||||
return (DefaultTreeNode<Object>) super.getChild((TreeNode<Object>)parent, index);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param treeNode
|
* @param treeNode
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -68,12 +68,12 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zk.ui.event.Events;
|
import org.zkoss.zk.ui.event.Events;
|
||||||
import org.zkoss.zk.ui.util.Clients;
|
import org.zkoss.zk.ui.util.Clients;
|
||||||
import org.zkoss.zul.ListModelExt;
|
|
||||||
import org.zkoss.zul.Listhead;
|
import org.zkoss.zul.Listhead;
|
||||||
import org.zkoss.zul.Listheader;
|
import org.zkoss.zul.Listheader;
|
||||||
import org.zkoss.zul.Listitem;
|
import org.zkoss.zul.Listitem;
|
||||||
import org.zkoss.zul.Paging;
|
import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.event.ZulEvents;
|
import org.zkoss.zul.event.ZulEvents;
|
||||||
|
import org.zkoss.zul.ext.Sortable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search Information and return selection - Base Class.
|
* Search Information and return selection - Base Class.
|
||||||
|
@ -85,7 +85,7 @@ import org.zkoss.zul.event.ZulEvents;
|
||||||
* @author Elaine
|
* @author Elaine
|
||||||
* @version Info.java Adempiere Swing UI 3.4.1
|
* @version Info.java Adempiere Swing UI 3.4.1
|
||||||
*/
|
*/
|
||||||
public abstract class InfoPanel extends Window implements EventListener<Event>, WTableModelListener, ListModelExt<Object>
|
public abstract class InfoPanel extends Window implements EventListener<Event>, WTableModelListener, Sortable<Object>
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue