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;
}
}