pl.add(conditionBox);
//
valueInput = new ObjectInput();
Inputter dtInput_;
try {
dtInput_ = ObjectType.getDefaultInputter(Class.class);
} catch (Exception e1) {
dtInput_ = new DataTypeInput();
}
final Inputter dtInput = dtInput_;
cards = new JPanel(new CardLayout());
cards.add(pvi2.getComponent(), "byVariable");
cards.add(dtInput.getComponent(), "byUser");
final JPanel dynamicPanel = new JPanel(new BorderLayout());
dynamicPanel.add(CreateRadioPanel(), BorderLayout.NORTH);
dynamicPanel.add(cards, BorderLayout.CENTER);
//pl2.add(valueInput.getComponent(), BorderLayout.WEST);
pl.add(dynamicPanel);
dtInput.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
try{
Class type = (Class)dtInput.getValue();
if(type!=null){
if(valueInput==null)
valueInput = new ObjectInput();
cards.getParent().add(valueInput.getComponent(), BorderLayout.SOUTH);
valueInput.setType(type);
dlg.pack();
}
}catch(Exception ex){}
}
});
roleExist.setLayout(new BoxLayout(roleExist, BoxLayout.X_AXIS));
roleExist.setBorder(BorderFactory.createEtchedBorder());
roleinput = new RoleInput();
roleinput.setProcessDefinition(getProcessDefinition());
roleComment = new JLabel(GlobalContext.getLocalizedMessage("conditioneditor.s_actual_binding_is_exist.label", "'s actual binding is "));
roleExistOrNotExist = new JComboBox();
roleExistOrNotExist.addItem("exist");
roleExistOrNotExist.addItem("not exist");
roleExist.add(roleinput.getComponent());
roleExist.add(roleComment);
roleExist.add(roleExistOrNotExist);
//��� v���� ��8�� ��n�1�
try{
Vector rows = ((DefaultTableModel)getModel()).getDataVector();
Vector cols = (Vector)rows.get(selectedRow);
if(cols.get(selectedColumn) instanceof Otherwise){
//outterButtonModel2.setSelected(true);
otherwiseButton.setSelected(true);
enableAll(plOther);
disableAll(pl);
disableAll(roleExist);
}else if(cols.get(selectedColumn) instanceof Evaluate){
conditionButton.setSelected(true);
enableAll(pl);
disableAll(plOther);
disableAll(roleExist);
Evaluate evaluate = (Evaluate)cols.get(selectedColumn);
if(evaluate!=null){
pvi.setValue(ProcessVariable.forName(evaluate.getKey()));
if(evaluate.getValue() instanceof ProcessVariable ){
//group.setSelected(innerButtonModel, true);
byVariable.setSelected(true);
pvi2.setValue((ProcessVariable)evaluate.getValue());
}else{
//group.setSelected(innerButtonModel2, true);
byUser.setSelected(true);
//View ��ü
CardLayout cl = (CardLayout)cards.getLayout();
cl.show(cards, "byUser");
//������
dtInput.setValue(evaluate.getValue().getClass());
valueInput.setValue(evaluate.getValue());
dlg.pack();
}