gbc_lblSheet.insets = new Insets(0, 0, 5, 5);
gbc_lblSheet.gridx = 0;
gbc_lblSheet.gridy = 0;
activation.add(lblSheet, gbc_lblSheet);
this.sheet = new InstantTextField() {
@Override
protected void editEvent()
{
String text = getText();
if (!EditCondition.this.condition.sheet.equals(text))
{
EditCondition.this.condition.sheet = text;
EditCondition.this.edit.flagChange();
}
};
};
GridBagConstraints gbc_sheet = new GridBagConstraints();
gbc_sheet.fill = GridBagConstraints.HORIZONTAL;
gbc_sheet.insets = new Insets(0, 0, 5, 0);
gbc_sheet.gridx = 1;
gbc_sheet.gridy = 0;
activation.add(this.sheet, gbc_sheet);
JLabel lblIndex = new JLabel("Index");
GridBagConstraints gbc_lblIndex = new GridBagConstraints();
gbc_lblIndex.anchor = GridBagConstraints.EAST;
gbc_lblIndex.insets = new Insets(0, 0, 5, 5);
gbc_lblIndex.gridx = 0;
gbc_lblIndex.gridy = 1;
activation.add(lblIndex, gbc_lblIndex);
this.index = new InstantTextField() {
@Override
protected void editEvent()
{
String text = getText();
if (!EditCondition.this.condition.index.equals(text))
{
EditCondition.this.condition.index = text;
EditCondition.this.edit.flagChange();
}
};
};
GridBagConstraints gbc_index = new GridBagConstraints();
gbc_index.fill = GridBagConstraints.HORIZONTAL;
gbc_index.insets = new Insets(0, 0, 5, 0);
gbc_index.gridx = 1;
gbc_index.gridy = 1;
activation.add(this.index, gbc_index);
this.comboBox = new JComboBox();
this.comboBox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0)
{
if (Operator.fromSerializedForm(EditCondition.this.condition.symbol) != EditCondition.this.comboBox
.getSelectedItem())
{
EditCondition.this.condition.symbol =
((Operator) EditCondition.this.comboBox.getSelectedItem()).getSerializedForm();
EditCondition.this.edit.flagChange();
}
}
});
GridBagConstraints gbc_comboBox = new GridBagConstraints();
gbc_comboBox.fill = GridBagConstraints.HORIZONTAL;
gbc_comboBox.insets = new Insets(0, 0, 5, 0);
gbc_comboBox.gridx = 1;
gbc_comboBox.gridy = 2;
activation.add(this.comboBox, gbc_comboBox);
this.comboBox.setModel(new DefaultComboBoxModel(Operator.values()));
JLabel lblValue = new JLabel("Value");
GridBagConstraints gbc_lblValue = new GridBagConstraints();
gbc_lblValue.anchor = GridBagConstraints.EAST;
gbc_lblValue.insets = new Insets(0, 0, 0, 5);
gbc_lblValue.gridx = 0;
gbc_lblValue.gridy = 3;
activation.add(lblValue, gbc_lblValue);
this.value = new InstantTextField() {
@Override
protected void editEvent()
{
String text = getText();
if (!EditCondition.this.condition.value.equals(text))