private void initializeSelectColumnCommands()
{
final WritableTableFormat writableTableFormat = (WritableTableFormat) this.tableModel
.getTableFormat();
AbstractCommand selectAll = new ActionCommand(SELECT_ALL_ID)
{
@Override
protected void doExecuteCommand()
{
shownList.getReadWriteLock().writeLock().lock();
Iterator i = shownList.iterator();
while (i.hasNext())
{
writableTableFormat.setColumnValue(i.next(), Boolean.TRUE, 0);
}
shownList.getReadWriteLock().writeLock().unlock();
theTable.repaint();
fireUserSelectionChangedEvent();
}
};
this.commandConfigurer.configure(selectAll);
AbstractCommand selectNone = new ActionCommand(SELECT_NONE_ID)
{
@Override
protected void doExecuteCommand()
{
shownList.getReadWriteLock().writeLock().lock();
Iterator i = shownList.iterator();
while (i.hasNext())
{
writableTableFormat.setColumnValue(i.next(), Boolean.FALSE, 0);
}
shownList.getReadWriteLock().writeLock().unlock();
theTable.repaint();
fireUserSelectionChangedEvent();
}
};
this.commandConfigurer.configure(selectNone);
AbstractCommand selectInverse = new ActionCommand(SELECT_INVERSE_ID)
{
@Override
protected void doExecuteCommand()
{