Package com.qspin.qtaste.controlscriptbuilder.ui.model

Examples of com.qspin.qtaste.controlscriptbuilder.ui.model.ControlActionsTableModel


    getViewport().add(builder.getPanel());
  }
 
  private void loadComponents()
  {
    mTable = new JTable(new ControlActionsTableModel());
    mTable.getColumnModel().getColumn(3).setCellRenderer(mTable.getDefaultRenderer(Boolean.class));
    mTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    mTable.getSelectionModel().addListSelectionListener(this);
   
    ButtonActions ba = new ButtonActions();
View Full Code Here


   
  private class ButtonActions implements ActionListener
  {
    public void actionPerformed(ActionEvent pEvt)
    {
      ControlActionsTableModel model = (ControlActionsTableModel) mTable.getModel();
      int idx = mTable.getSelectedRow();
      if ( pEvt.getSource() == mDeleteButton )
      {
        model.remove(idx);
      }
      else if ( pEvt.getSource() == mUpButton )
      {
        model.moveUp(idx);
        mTable.getSelectionModel().setSelectionInterval(-1, idx+1);
      }
      else if ( pEvt.getSource() == mDownButton )
      {
        model.moveDown(idx);
        mTable.getSelectionModel().setSelectionInterval(-1, idx-1);
      }
      else if ( pEvt.getSource() == mEditButton )
      {
        mEditor.loadControlAction(((ControlActionsTableModel)mTable.getModel()).getControlAction(idx));
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.controlscriptbuilder.ui.model.ControlActionsTableModel

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.