Package org.eclipse.nebula.widgets.nattable.group.command

Examples of org.eclipse.nebula.widgets.nattable.group.command.ColumnGroupExpandCollapseCommand


public class ColumnGroupExpandCollapseAction implements IMouseAction {

    @Override
    public void run(NatTable natTable, MouseEvent event) {
        ColumnGroupExpandCollapseCommand command = new ColumnGroupExpandCollapseCommand(
                natTable, natTable.getColumnPositionByX(event.x),
                natTable.getRowPositionByY(event.y));
        natTable.doCommand(command);
    }
View Full Code Here


            }

            public void itemsCollapsed(ColumnGroupEntry columnGroupEntry) {
                int index = columnGroupEntry.getFirstElementIndex().intValue();
                int position = selectionLayer.getColumnPositionByIndex(index);
                selectionLayer.doCommand(new ColumnGroupExpandCollapseCommand(
                        selectionLayer, position));
            }

            public void itemsExpanded(ColumnGroupEntry columnGroupEntry) {
                int index = columnGroupEntry.getFirstElementIndex().intValue();
                int position = selectionLayer.getColumnPositionByIndex(index);
                selectionLayer.doCommand(new ColumnGroupExpandCollapseCommand(
                        selectionLayer, position));
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.group.command.ColumnGroupExpandCollapseCommand

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.