Package org.springframework.richclient.command

Examples of org.springframework.richclient.command.AbstractCommand$ButtonEnablingListener


    }

    @Override
    protected AbstractCommand createAddCommand()
    {
        AbstractCommand addRow = new ActionCommand("addrow")
        {

            @Override
            protected void doExecuteCommand()
            {
                add(viewControllerObject);
            }
        };
        addRow.setSecurityControllerId(getAddCommandSecurityControllerId());
        RcpSupport.configure(addRow);
        return addRow;
    }
View Full Code Here


    }

    @Override
    protected AbstractCommand createRemoveCommand()
    {
        AbstractCommand removeRow = new ActionCommand("removerow")
        {

            @Override
            protected void doExecuteCommand()
            {
                remove(viewControllerObject, table.getSelectedRows());
            }
        };
        removeRow.setSecurityControllerId(getRemoveCommandSecurityControllerId());
        RcpSupport.configure(removeRow);
        return removeRow;
    }
View Full Code Here

    }

    @Override
    protected AbstractCommand createDetailCommand()
    {
        AbstractCommand detail = new ActionCommand("detailrow")
        {

            @Override
            protected void doExecuteCommand()
            {
View Full Code Here

    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()
            {
View Full Code Here

TOP

Related Classes of org.springframework.richclient.command.AbstractCommand$ButtonEnablingListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.