Package vg.userInterface.attributePanel.components.data

Examples of vg.userInterface.attributePanel.components.data.AttributeShower


  public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) {
    switch(column) {
      case 0:
      {
        JCheckBox checkBox = new JCheckBox();
        AttributeShower shower = (AttributeShower)table.getValueAt(row, 0);
        checkBox.setBackground(shower.getColor());
        checkBox.setSelected(shower.isShow());
        checkBox.addActionListener(new FirstColumnActionListener(shower));
        return(checkBox);
      }
      case 2:
      {
View Full Code Here


    this.table[row][col] = value;
    //checking
      if(col == 0) {
        boolean check = true;
        for(int i = 0 ; i < this.table.length ; i++) {
          AttributeShower shower = (AttributeShower)this.table[i][0];
          if(shower.getShow() == AttributeShower.DEF_UNSHOW_GREEN || shower.getShow() == AttributeShower.DEF_UNSHOW_YELLOW) {
            check = false;
            break;
          }
        }
        this.selectAll.setSelected(check);
View Full Code Here

   */
  private void apply() {
    HashSet<String>list_v = new HashSet<String>();
    HashSet<String>list_e = new HashSet<String>();
    for (int i = 0 ; i < this.tableModel.getRowCount() ; i++) {
      AttributeShower shower = (AttributeShower)this.tableModel.getValueAt(i, 0);
      if(shower.isShow() && this.tableModel.getValueAt(i, 3).equals("V")) {
        list_v.add((String)this.tableModel.getValueAt(i, 1));
      }
      if(shower.isShow() && this.tableModel.getValueAt(i, 3).equals("E")) {
        list_e.add((String)this.tableModel.getValueAt(i, 1));
      }
    }
    if(this.graphView != null) {
      this.graphView.showAttributes(list_v, list_e);
View Full Code Here

    this.selectAll.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        synchronized (theMutexObject) {
          boolean check = AttributePanel.this.selectAll.isSelected();
          for(int i = 0 ; i < AttributePanel.this.tableModel.getRowCount() ; i++) {
            AttributeShower shower = (AttributeShower)AttributePanel.this.tableModel.getValueAt(i, 0);
            if(check) {
              shower.show();
            } else {
              shower.unshow();
            }
          }
          if(SwingUtilities.isEventDispatchThread()) {
            table.editingStopped(null);
            view.updateUI();
View Full Code Here

TOP

Related Classes of vg.userInterface.attributePanel.components.data.AttributeShower

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.