mirror of https://github.com/zlatinb/muwire
clear files table when deleting collection
parent
9fbedbcdb5
commit
c52ffc2671
|
@ -30,6 +30,7 @@ class CollectionsToolController {
|
|||
model.eventBus.publish(e)
|
||||
model.collections.remove(row)
|
||||
view.collectionsTable.model.fireTableDataChanged()
|
||||
view.clearFilesTable()
|
||||
}
|
||||
|
||||
@ControllerAction
|
||||
|
|
|
@ -108,6 +108,11 @@ class CollectionsToolView {
|
|||
selectedRow
|
||||
}
|
||||
|
||||
void clearFilesTable() {
|
||||
model.files.clear()
|
||||
filesTable.model.fireTableDataChanged()
|
||||
}
|
||||
|
||||
void mvcGroupInit(Map<String,String> args) {
|
||||
def centerRenderer = new DefaultTableCellRenderer()
|
||||
centerRenderer.setHorizontalAlignment(JLabel.CENTER)
|
||||
|
|
Loading…
Reference in New Issue