class AvailableFormatsBinder extends BaseComboBoxBinder {

    @Override
    public void update(Observable o, Object arg)
    {
        if (ColumnDefinitionModel.AVAILABLE_FORMATS_PROPERTY.equals(arg))
        {
            String selectedItem = null;

            if (myModel.getSelectedDefinition() != null)
            {
                selectedItem = myModel.getSelectedDefinition().getFormat();
            }

            super.updateComboBox(myModel.getAvailableFormats(), selectedItem);
        }
        else if (ColumnDefinitionModel.CAN_ADD_FORMATS_PROPERTY.equals(arg))
        {
            myComboBox.setEditable(myModel.canAddFormats());
        }
    }

    public  AvailableFormatsBinder(JComboBox<String> comboBox, ColumnDefinitionModel model);

}