In a contact-density chain-growth study we investigate the solubility-temperature pseudophase diagram of a lattice polymer in a cavity with an attractive surface. In addition to the main phases of adsorbed and desorbed conformations we find numerous subphases of collapsed and expanded structures.