Search in sources :

Example 6 with ListModel

use of javax.swing.ListModel in project adempiere by adempiere.

the class VTreeMaintenance method action_treeDeleteAll.

//	action_treeAddAll
/**
	 * 	Action: Delete All Nodes from Tree
	 */
private void action_treeDeleteAll() {
    log.info("");
    ListModel model = centerList.getModel();
    int size = model.getSize();
    int index = -1;
    for (index = 0; index < size; index++) {
        ListItem item = (ListItem) model.getElementAt(index);
        action_treeDelete(item);
    }
}
Also used : DefaultListModel(javax.swing.DefaultListModel) ListModel(javax.swing.ListModel)

Aggregations

ListModel (javax.swing.ListModel)6 DefaultListModel (javax.swing.DefaultListModel)5 FileNotFoundException (java.io.FileNotFoundException)1 MTreeNode (org.compiere.model.MTreeNode)1