Package edit

Source Code of edit.EDIDHolder

package edit;

import skyproc.GRUP;
import skyproc.MajorRecord;

public class EDIDHolder implements HolderInterface {
 
  public EDIDHolder(MajorRecord record) {
  }
 
  @Override
  public String getDescription() {
    return "EditorID - EDID";
  }

  @Override
  public Object getValueAt(int index) {
    MajorRecord r = null;
    for(GRUP grup : StaticRecordHolder.masters.get(index).getGRUPs().values()) {
      if(grup.contains(StaticRecordHolder.record.getForm())) {
        r = grup.get(StaticRecordHolder.record.getForm());
      }
    }
   
    if(r != null) {
      return r.getEDID();
    }
   
    return "";
  }

  @Override
  public boolean isLeaf() {
    // TODO Auto-generated method stub
    return true;
  }

  @Override
  public Object getChild(Object parent, int index) {
    // TODO Auto-generated method stub
    return null;
  }

  @Override
  public int getChildCount() {
    // TODO Auto-generated method stub
    return 0;
  }

  @Override
  public int getIndexOfChild(Object parent, Object child) {
    // TODO Auto-generated method stub
    return 0;
  }

  @Override
  public Object getHeldObject() {
    // TODO Auto-generated method stub
    return null;
  }
 

}
TOP

Related Classes of edit.EDIDHolder

TOP
Copyright © 2018 www.massapi.com. 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.