public class DirDiffTableModel extends javax.swing.table.AbstractTableModel implements DirDiffModel, Disposable
Modifier and Type | Class and Description |
---|---|
static class |
DirDiffTableModel.ColumnType |
class |
DirDiffTableModel.TableSelectionConfig |
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static Key<JBLoadingPanel> |
DECORATOR_KEY |
static java.lang.String |
EMPTY_STRING |
Constructor and Description |
---|
DirDiffTableModel(Project project,
DiffElement<?> source,
DiffElement<?> target,
DirDiffSettings settings) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final Key<JBLoadingPanel> DECORATOR_KEY
public static final java.lang.String EMPTY_STRING
public DirDiffTableModel(Project project, DiffElement<?> source, DiffElement<?> target, DirDiffSettings settings)
public void stopUpdating()
public void applyRemove()
public void selectFirstRow()
public void setPanel(DirDiffPanel panel)
public void updateFromUI()
public boolean isOperationsEnabled()
public java.util.List<DirDiffElementImpl> getElements()
getElements
in interface DirDiffModel
public void setReplacement(DirDiffElementImpl source, DirDiffElementImpl target)
public void setReplacement(java.lang.String path, java.lang.String sourceName, java.lang.String targetName)
public java.lang.String getReplacementName(DirDiffElementImpl source)
public void reloadModel(boolean userForcedRefresh)
reloadModel
in interface DirDiffModel
public void reloadModelSynchronously()
public void applySettings()
applySettings
in interface DirDiffModel
public void clear()
public java.lang.String getTitle()
public DirDiffElementImpl getElementAt(int index)
public DiffElement getSourceDir()
getSourceDir
in interface DirDiffModel
public DiffElement getTargetDir()
getTargetDir
in interface DirDiffModel
public void setSourceDir(DiffElement src)
setSourceDir
in interface DirDiffModel
public void setTargetDir(DiffElement trg)
setTargetDir
in interface DirDiffModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public JBTable getTable()
public void setTable(JBTable table)
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface javax.swing.table.TableModel
public java.util.List<DirDiffElementImpl> getSelectedElements()
public DirDiffTableModel.ColumnType getColumnType(int column)
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public Project getProject()
public boolean isShowEqual()
public void setShowEqual(boolean show)
public boolean isShowDifferent()
public void setShowDifferent(boolean show)
public boolean isShowNewOnSource()
public void setShowNewOnSource(boolean show)
public boolean isShowNewOnTarget()
public void setShowNewOnTarget(boolean show)
public boolean isUpdating()
public DirDiffSettings.CompareMode getCompareMode()
public void setCompareMode(DirDiffSettings.CompareMode mode)
public void dispose()
Disposable
dispose
in interface Disposable
public DirDiffSettings getSettings()
getSettings
in interface DirDiffModel
public void performCopyTo(DirDiffElementImpl element)
public void performCopyFrom(DirDiffElementImpl element)
public void performDelete(DirDiffElementImpl element)
public void synchronizeSelected()
public void synchronizeAll()
public void rememberSelection()