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.eventBus.publish(e)
|
||||||
model.collections.remove(row)
|
model.collections.remove(row)
|
||||||
view.collectionsTable.model.fireTableDataChanged()
|
view.collectionsTable.model.fireTableDataChanged()
|
||||||
|
view.clearFilesTable()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
|
|
@ -108,6 +108,11 @@ class CollectionsToolView {
|
||||||
selectedRow
|
selectedRow
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void clearFilesTable() {
|
||||||
|
model.files.clear()
|
||||||
|
filesTable.model.fireTableDataChanged()
|
||||||
|
}
|
||||||
|
|
||||||
void mvcGroupInit(Map<String,String> args) {
|
void mvcGroupInit(Map<String,String> args) {
|
||||||
def centerRenderer = new DefaultTableCellRenderer()
|
def centerRenderer = new DefaultTableCellRenderer()
|
||||||
centerRenderer.setHorizontalAlignment(JLabel.CENTER)
|
centerRenderer.setHorizontalAlignment(JLabel.CENTER)
|
||||||
|
|
Loading…
Reference in New Issue