public Object getValueAt(int row, int col) { Object ret = null; GoalInfo info = (GoalInfo)goals.get(row); if(col==0) { ret = info.getType()+"#"+info.getId(); } else if(col==1) { ret = info.getLifecycleState(); } else if(col==2) { ret = info.getProcessingState(); } return ret; }
public Component getTableCellRendererComponent(JTable table, Object value, boolean sel, boolean foc, int row, int column) { GoalInfo info = (GoalInfo)goals.get(row); Icon icon = icons.getIcon(info.getKind()); if(icon==null) icon = icons.getIcon("goal"); setIcon(icon); return super.getTableCellRendererComponent(table, value, sel, foc, row, column); } });
if(checkCapa(((GoalInfo)event.getProperty("details")).getType())) goals.add(event.getProperty("details")); GoalInfo oldinfo = (GoalInfo)allgoals.remove(index); goals.remove(newinfo); newinfo.setType(oldinfo.getType()); // Hack!!! Keep capability information which is unavailable for modified events. allgoals.add(newinfo); if(checkCapa(newinfo.getType())) goals.add(newinfo);
OAVBDIRuntimeModel.CHANGEEVENT_GOALDROPPED.equals(type)) GoalInfo info = GoalInfo.createGoalInfo(state, element, scope); event.setProperty("sourcetype", info.getType()); event.setProperty("details", info);
return new GoalInfo(id, kind, type, (String)state.getAttributeValue(goal, OAVBDIRuntimeModel.goal_has_lifecyclestate), (String)state.getAttributeValue(goal, OAVBDIRuntimeModel.goal_has_processingstate));
GoalInfo info = GoalInfo.createGoalInfo(state, goal, capa);