Package csa.gui

Examples of csa.gui.DoubleClickAction


        csaAttackerPanel = new CSATablePanel(t);
        csaAttackerPanel.setXMLId("AttackerSimTable");
        csaAttackerPanel.setTableStyleSwitchingEnabled(false);
        csaAttackerPanel.setTablePopupEnabled(true);

        csaAttackerPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
                mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
                mCol = csaAttackerPanel.getModel().convertEnabledColToRealCol(mCol);
                tableDoubleClicked();
            }
        });

        jPanelAttackerTab.removeAll();

        javax.swing.GroupLayout jPanelAttackerTabLayout = new javax.swing.GroupLayout(jPanelAttackerTab);
        jPanelAttackerTab.setLayout(jPanelAttackerTabLayout);
        jPanelAttackerTabLayout.setHorizontalGroup(
            jPanelAttackerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAttackerTabLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(csaAttackerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanelAttackerTabLayout.setVerticalGroup(
            jPanelAttackerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAttackerTabLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(csaAttackerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
        );

        t = CSATableModel.buildTableModel(getBlockerTableModel());
        csaBlockerPanel = new CSATablePanel(t);
        csaBlockerPanel.setXMLId("BlockerSimTable");
        csaBlockerPanel.setTableStyleSwitchingEnabled(false);
        csaBlockerPanel.setTablePopupEnabled(true);

        csaBlockerPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
                mCol = table.convertColumnIndexToModel(table.columnAtPoint(evt.getPoint()));
                mCol = csaBlockerPanel.getModel().convertEnabledColToRealCol(mCol);
                tableDoubleClicked();
            }
        });

        jPanelBlockerTab.removeAll();

        javax.swing.GroupLayout jPanelBlockerTabLayout = new javax.swing.GroupLayout(jPanelBlockerTab);
        jPanelBlockerTab.setLayout(jPanelBlockerTabLayout);
        jPanelBlockerTabLayout.setHorizontalGroup(
            jPanelBlockerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBlockerTabLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(csaBlockerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 412, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanelBlockerTabLayout.setVerticalGroup(
            jPanelBlockerTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBlockerTabLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(csaBlockerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE))
        );

        if (mBattleDone)
        {

            t = CSATableModel.buildTableModel(getCombatFormationTableModel());
            csaCombatFormationPanel = new CSATablePanel(t);
            csaCombatFormationPanel.setXMLId("CombatFormationTable");
            csaCombatFormationPanel.setTableStyleSwitchingEnabled(false);
            csaCombatFormationPanel.setTablePopupEnabled(true);

            csaCombatFormationPanel.setDoubleClickAction(new DoubleClickAction()
            {
                public void doIt()
                {
                    JTable table = (JTable) evt.getSource();
                    mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
View Full Code Here


        csaPanel = new CSATablePanel(t);
        csaPanel.setXMLId("CardShopTable");
        csaPanel.setTableStyleSwitchingEnabled(false);
        csaPanel.setTablePopupEnabled(true);

        csaPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
View Full Code Here

        CSATableModel t = CSATableModel.buildTableModel(getTableModel());
        csaPanel = new CSATablePanel(t);
        csaPanel.setXMLId("ImageAttributes");
        csaPanel.setTableStyleSwitchingEnabled(false);
        csaPanel.setTablePopupEnabled(true);
        csaPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
View Full Code Here

        CSATableModel t = CSATableModel.buildTableModel(getTableModel());
        csaPanel = new CSATablePanel(t);
        csaPanel.setXMLId("ImageAttributes");
        csaPanel.setTableStyleSwitchingEnabled(false);
        csaPanel.setTablePopupEnabled(true);
        csaPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
View Full Code Here


        CSATableModel t = CSATableModel.buildTableModel(getTableModel());

        csaPanel = new CSATablePanel(t);
        csaPanel.setDoubleClickAction(new DoubleClickAction()
        {
            public void doIt()
            {
                JTable table = (JTable) evt.getSource();
                mRow = table.convertRowIndexToModel(table.rowAtPoint(evt.getPoint()));
View Full Code Here

TOP

Related Classes of csa.gui.DoubleClickAction

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.