/** * Link a {@link Slot} to a container. * * @param slot the slot * @param container the container must implement HasWidgets. */ protected void bindSlot(Slot<?> slot, HasWidgets container) { internalBindSlot(slot, container); }
/** * Link a {@link IsSingleSlot} sub-type to a container. The container must implement either {@link HasOneWidget} or * {@link HasWidgets}. Here we accept {@code Object} to prevent the hassle of of casting {@code container} if it * implements both interfaces. * <p/> * {@link HasOneWidget} has checked first. * * @param slot the slot * @param container the container must implement {@link HasOneWidget}. * @throws IllegalArgumentException if {@code container} implements neither of {@link HasOneWidget} or {@link * HasWidgets}. */ protected void bindSlot(IsSingleSlot<?> slot, Object container) { internalBindSlot(slot, container); }