implemented isPressed Method in AbstractButton
added interface for text button