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, setValueAtpublic 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 DirDiffModelpublic 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 DirDiffModelpublic void reloadModelSynchronously()
public void applySettings()
applySettings in interface DirDiffModelpublic void clear()
public java.lang.String getTitle()
public DirDiffElementImpl getElementAt(int index)
public DiffElement getSourceDir()
getSourceDir in interface DirDiffModelpublic DiffElement getTargetDir()
getTargetDir in interface DirDiffModelpublic void setSourceDir(DiffElement src)
setSourceDir in interface DirDiffModelpublic void setTargetDir(DiffElement trg)
setTargetDir in interface DirDiffModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic JBTable getTable()
public void setTable(JBTable table)
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelpublic java.util.List<DirDiffElementImpl> getSelectedElements()
public DirDiffTableModel.ColumnType getColumnType(int column)
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic 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()
Disposabledispose in interface Disposablepublic DirDiffSettings getSettings()
getSettings in interface DirDiffModelpublic void performCopyTo(DirDiffElementImpl element)
public void performCopyFrom(DirDiffElementImpl element)
public void performDelete(DirDiffElementImpl element)
public void synchronizeSelected()
public void synchronizeAll()
public void rememberSelection()